/* ================================================================
   مختبر كاوزا — تنسيقات شاشات التحليل (Methodologies)
   ================================================================ */

.methodology-body {
    background: #F4F6F9;
    font-family: 'Tajawal', system-ui, sans-serif;
    margin: 0;
    color: #1F2937;
    direction: rtl;
}

/* ===== الشريط العلوي ===== */
.method-header {
    background: linear-gradient(135deg, #1C3F60 0%, #142D45 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.method-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}
.method-breadcrumb .breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    font-size: 0.88rem;
    transition: all 0.15s;
}
.method-breadcrumb .breadcrumb-link:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}
.method-breadcrumb .case-code {
    font-family: monospace;
    color: #C19447;
    font-weight: 700;
}

.method-title-block {
    text-align: center;
}
.method-tag {
    display: inline-block;
    background: rgba(193, 148, 71, 0.2);
    color: #E6C77C;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.method-title-block h1 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
}

.method-status {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
}
.status-badge {
    padding: 0.25rem 0.7rem;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 600;
}
.status-draft { background: rgba(255,255,255,0.15); color: white; }
.status-completed { background: #3B82F6; color: white; }
.status-promoted { background: #16A34A; color: white; }
.counter {
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
}

/* ===== منطقة العمل ===== */
.method-workspace {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    align-items: flex-start;
}

.fishbone-workspace {
    grid-template-columns: 1fr;
}

/* ===== اللوحة الجانبية ===== */
.method-sidebar {
    position: sticky;
    top: 1.5rem;
}
.sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid #D6DCE4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sidebar-section-title {
    font-weight: 700;
    color: #1C3F60;
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #D6DCE4;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
}
.sidebar-cta {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-color: #FBBF24;
}
.sidebar-cta p {
    margin: 0.5rem 0 1rem;
    font-size: 0.88rem;
    color: #92400E;
}
.quick-guide {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: #4B5563;
    line-height: 1.7;
}
.quick-guide li {
    padding: 0.3rem 0;
    padding-right: 1.4rem;
    position: relative;
}
.quick-guide li::before {
    content: '◀';
    color: #C19447;
    position: absolute;
    right: 0;
    top: 0.4rem;
    font-size: 0.7rem;
}
.save-status {
    display: inline-block;
    margin-right: 0.7rem;
    font-size: 0.82rem;
    transition: opacity 0.3s;
}
.save-status.saving { color: #6B7280; }
.save-status.saved { color: #16A34A; }
.save-status.error { color: #DC2626; }

/* ===== الكانفس (شجرة خمسة لماذا) ===== */
.method-canvas {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #D6DCE4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    min-height: 600px;
}

.problem-anchor {
    background: #1C3F60;
    color: white;
    padding: 1.2rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    position: relative;
}
.problem-anchor::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 50px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #1C3F60;
}
.problem-anchor-label {
    font-size: 0.78rem;
    color: #C19447;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}
.problem-anchor-content {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
}

.why-tree {
    padding-right: 1rem;
    border-right: 3px solid #C19447;
    margin-right: 60px;
}

.why-node {
    background: #F4F6F9;
    border: 1px solid #D6DCE4;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.7rem;
    position: relative;
    transition: all 0.15s;
    margin-right: -16px;
}
.why-node::before {
    content: '';
    position: absolute;
    right: -16px;
    top: 24px;
    width: 13px;
    height: 2px;
    background: #C19447;
}
.why-node:hover {
    border-color: #C19447;
    box-shadow: 0 2px 8px rgba(28, 63, 96, 0.08);
}
.why-node.is-candidate {
    border-color: #C19447;
    background: linear-gradient(135deg, #FFFBEB 0%, white 100%);
    border-width: 2px;
}
.why-node.is-promoted {
    border-color: #16A34A;
    background: linear-gradient(135deg, #F0FDF4 0%, white 100%);
}
.why-node-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.why-level-badge {
    background: #1C3F60;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-size: 0.74rem;
    font-weight: 700;
}
.candidate-badge {
    background: #C19447;
    color: #1C3F60;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-size: 0.74rem;
    font-weight: 700;
}
.promoted-badge {
    background: #16A34A;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-size: 0.74rem;
    font-weight: 700;
}
.why-node-content {
    font-size: 0.95rem;
    color: #1F2937;
    line-height: 1.7;
    margin-bottom: 0.6rem;
    padding: 0.3rem 0;
    outline: none;
    min-height: 1.5em;
}
.why-node-content[contenteditable="true"]:focus {
    background: white;
    border: 1px dashed #C19447;
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
}
.why-node-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px dashed #D6DCE4;
}
.node-action-btn {
    background: white;
    border: 1px solid #D6DCE4;
    color: #1C3F60;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.12s;
}
.node-action-btn:hover {
    background: #1C3F60;
    color: white;
    border-color: #1C3F60;
}
.node-action-btn.danger:hover {
    background: #DC2626;
    border-color: #DC2626;
}
.why-node-meta {
    font-size: 0.72rem;
    color: #9CA3AF;
    margin-top: 0.5rem;
}
.why-children {
    margin-right: 30px;
    margin-top: 0.5rem;
    padding-right: 1.2rem;
    border-right: 2px solid #D6DCE4;
}

.empty-tree {
    text-align: center;
    padding: 3rem 1rem;
}
.add-root-btn {
    margin-top: 1rem;
    text-align: right;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}
.modal-content {
    background: white;
    border-radius: 12px;
    padding: 1.8rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.modal-content.modal-wide { max-width: 700px; }
.modal-content h3 {
    margin: 0 0 0.4rem;
    color: #1C3F60;
}
.modal-context {
    color: #6B7280;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}
.modal-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

/* ===== شاشة إيشيكاوا ===== */
.view-toggle {
    background: white;
    border-bottom: 1px solid #D6DCE4;
}
.view-toggle-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.view-btn {
    background: transparent;
    border: none;
    color: #6B7280;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.15s;
}
.view-btn.active {
    background: #1C3F60;
    color: white;
}
.view-toggle-meta {
    margin-right: auto;
    display: flex;
    gap: 0.5rem;
}

.fishbone-view {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #D6DCE4;
}
.fishbone-canvas {
    width: 100%;
    overflow: auto;
}
.fishbone-canvas svg {
    width: 100%;
    min-width: 1100px;
    height: auto;
}
.fishbone-problem {
    background: #1C3F60;
    color: white;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-family: 'Tajawal', sans-serif;
    line-height: 1.4;
}
.fishbone-problem .problem-label {
    font-size: 0.7rem;
    color: #C19447;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}
.fishbone-problem .problem-text {
    font-size: 0.82rem;
    font-weight: 600;
}
.branch-label {
    background: white;
    border: 2px solid;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.branch-label:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.branch-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.branch-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: #1C3F60;
    line-height: 1.2;
}
.branch-count {
    font-size: 0.72rem;
    color: #6B7280;
}
.sub-cause-bubble {
    background: white;
    border: 1px solid #D6DCE4;
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.75rem;
    color: #1F2937;
    cursor: pointer;
    text-align: right;
    line-height: 1.3;
    transition: all 0.12s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.sub-cause-bubble:hover {
    background: #F4F6F9;
    border-color: #C19447;
}
.sub-cause-bubble.is-candidate {
    background: #FFFBEB;
    border-color: #C19447;
    font-weight: 600;
}
.fishbone-help {
    margin-top: 0.8rem;
    padding: 0.6rem 0.9rem;
    background: #EFF6FF;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #1E40AF;
}

/* ===== عرض القائمة (إيشيكاوا) ===== */
.table-view {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}
.category-panel {
    background: white;
    border: 2px solid;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s;
}
.category-panel.highlight {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.category-panel-header {
    color: white;
    padding: 0.7rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.category-panel-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.category-panel-header h3 {
    margin: 0;
    font-size: 1rem;
    color: white;
}
.category-panel-header i {
    font-size: 1.1rem;
}
.cat-count {
    background: rgba(255,255,255,0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
}
.btn-add-in-cat {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.12s;
}
.btn-add-in-cat:hover {
    background: rgba(255,255,255,0.3);
}
.category-panel-body {
    padding: 1rem;
}
.category-desc {
    color: #6B7280;
    font-size: 0.82rem;
    margin: 0 0 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed #D6DCE4;
}
.empty-cat {
    color: #9CA3AF;
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem;
    font-style: italic;
}
.cat-cause-item {
    background: #F4F6F9;
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.6rem;
    border-right: 3px solid #28709E;
}
.cat-cause-item.is-candidate {
    background: #FFFBEB;
    border-right-color: #C19447;
}
.cat-cause-content {
    font-weight: 600;
    color: #1F2937;
    line-height: 1.5;
    outline: none;
    padding: 0.2rem 0;
}
.cat-cause-content[contenteditable="true"]:focus {
    background: white;
    border: 1px dashed #C19447;
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
}
.cat-cause-subs {
    margin-top: 0.5rem;
    padding-right: 1rem;
    border-right: 2px dotted #D6DCE4;
}
.sub-cause-line {
    font-size: 0.85rem;
    color: #4B5563;
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}
.sub-cause-line.is-candidate {
    color: #92400E;
    font-weight: 600;
}
.cat-cause-actions {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #D6DCE4;
    flex-wrap: wrap;
}
.mini-btn {
    background: white;
    border: 1px solid #D6DCE4;
    color: #1C3F60;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.12s;
}
.mini-btn:hover {
    background: #1C3F60;
    color: white;
}
.mini-btn.danger:hover {
    background: #DC2626;
    border-color: #DC2626;
}

/* ===== صفحة الترقية ===== */
.promote-card {
    border-right: 3px solid #C19447;
}
.promote-card.already-promoted {
    border-right-color: #16A34A;
    opacity: 0.65;
}
.promote-original {
    background: #F4F6F9;
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    margin-bottom: 1rem;
    border-right: 3px solid #6B7280;
}
.promote-label {
    font-size: 0.75rem;
    color: #6B7280;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.promote-text {
    font-size: 0.95rem;
    color: #1F2937;
    line-height: 1.5;
    margin-bottom: 0.3rem;
    font-style: italic;
}
.promote-context {
    font-size: 0.78rem;
    color: #9CA3AF;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px dashed #D6DCE4;
}

/* ===== الاستجابة ===== */
@media (max-width: 1024px) {
    .method-workspace { grid-template-columns: 1fr; }
    .method-sidebar { position: static; }
    .method-header-inner { grid-template-columns: 1fr; gap: 0.8rem; text-align: center; }
    .method-status { align-items: center; }
}
@media (max-width: 768px) {
    .fishbone-canvas svg { min-width: 900px; }
    .table-view { grid-template-columns: 1fr; }
    .why-children { margin-right: 15px; padding-right: 0.8rem; }
}

/* ================================================================
   تنسيقات 5W-2H
   ================================================================ */

.w2h-card {
    margin-bottom: 1rem;
    transition: all 0.2s;
}
.w2h-card.w2h-completed {
    border-right-width: 6px !important;
}
.w2h-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.w2h-field {
    resize: vertical;
    min-height: 100px;
    font-family: 'Tajawal', sans-serif;
    line-height: 1.7;
}
.field-save-status {
    font-size: 0.78rem;
    margin-right: 0.5rem;
}

/* ================================================================
   تنسيقات باريتو
   ================================================================ */

.candidate-badge {
    background: #C19447;
    color: #1C3F60;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ================================================================
   بطاقات المنهجيات البارزة (Methodology Cards)
   ================================================================ */

.methodologies-hero {
    background: linear-gradient(135deg, #FAFBFC 0%, #F4F6F9 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.methodologies-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.methodologies-hero-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.methodologies-hero-subtitle {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.7;
}

.methodologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.method-card {
    background: white;
    border-radius: 10px;
    padding: 1.1rem;
    border: 1px solid var(--border);
    border-top: 4px solid var(--gold);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(28, 63, 96, 0.12);
    border-top-color: var(--navy);
}

.method-card.framing { border-top-color: #28709E; }
.method-card.framing:hover { border-top-color: #1C3F60; }
.method-card.depth { border-top-color: #C19447; }
.method-card.depth:hover { border-top-color: #92400E; }
.method-card.priority { border-top-color: #059669; }
.method-card.priority:hover { border-top-color: #065F46; }

.method-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}
.method-card.framing .method-card-icon { background: #E0EBF3; color: #28709E; }
.method-card.depth .method-card-icon   { background: #FFFBEB; color: #C19447; }
.method-card.priority .method-card-icon { background: #F0FDF4; color: #059669; }

.method-card-stage {
    font-family: 'Cairo', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.method-card-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 0.4rem;
}

.method-card-desc {
    color: var(--ink);
    font-size: 0.83rem;
    line-height: 1.65;
    margin: 0 0 0.8rem;
    flex: 1;
}

.method-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.7rem;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--muted);
}

.method-card-action {
    color: var(--navy);
    font-weight: 700;
}

.method-card-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.method-stage-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 700;
    margin: 1.2rem 0 0.6rem;
    padding-right: 0.5rem;
}
.method-stage-label .stage-num {
    background: var(--navy);
    color: var(--gold);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 0.78rem;
}

/* ================================================================
   الكاروسيل التعليمي (Methodology Guide Modal)
   ================================================================ */

.guide-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 45, 69, 0.7);
    backdrop-filter: blur(3px);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: guideFadeIn 0.2s ease;
}
.guide-overlay.visible { display: flex; }
@keyframes guideFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.guide-modal {
    background: white;
    border-radius: 14px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

.guide-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: white;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.guide-header-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: white;
}
.guide-close {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.guide-close:hover { background: rgba(255,255,255,0.25); }

.guide-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

.guide-slide {
    display: none;
    animation: slideIn 0.3s ease;
}
.guide-slide.active { display: block; }
@keyframes slideIn {
    from { opacity: 0; transform: translateX(15px); }
    to { opacity: 1; transform: translateX(0); }
}

.guide-slide-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--gold);
    color: var(--navy);
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.guide-slide-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 0.7rem;
}

.guide-slide-content {
    color: var(--ink);
    line-height: 1.85;
    font-size: 0.95rem;
}
.guide-slide-content p { margin: 0 0 0.8rem; }
.guide-slide-content ul,
.guide-slide-content ol {
    padding-right: 1.2rem;
    margin: 0.5rem 0;
}
.guide-slide-content li {
    margin-bottom: 0.4rem;
}

.guide-slide-example {
    background: #FFFBEB;
    border-right: 4px solid var(--gold);
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
}
.guide-slide-example strong {
    color: #92400E;
    display: block;
    margin-bottom: 0.3rem;
}

.guide-slide-warning {
    background: #FEF2F2;
    border-right: 4px solid #DC2626;
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #7F1D1D;
}

.guide-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--lighter);
}

.guide-dots {
    display: flex;
    gap: 0.4rem;
}
.guide-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.2s;
}
.guide-dot.active {
    background: var(--gold);
    width: 28px;
    border-radius: 5px;
}

.guide-nav-btns {
    display: flex;
    gap: 0.5rem;
}
.guide-nav-btns button {
    background: white;
    color: var(--navy);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.guide-nav-btns button:hover:not(:disabled) {
    background: var(--lighter);
}
.guide-nav-btns button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.guide-nav-btns button.primary {
    background: var(--navy);
    color: var(--gold);
    border-color: var(--navy);
}
.guide-nav-btns button.primary:hover {
    background: var(--navy-dark);
}

/* ================================================================
   صفحة دليل المنهجيات (Methodologies Guide Page)
   ================================================================ */

.guide-page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: white;
    border-radius: 14px;
    padding: 2rem 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
.guide-page-hero::before {
    content: '';
    position: absolute;
    left: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    background: rgba(193, 148, 71, 0.1);
    border-radius: 50%;
}
.guide-page-hero h1 {
    color: white;
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
    position: relative;
}
.guide-page-hero p {
    color: rgba(255,255,255,0.85);
    margin: 0;
    line-height: 1.8;
    font-size: 1rem;
    max-width: 700px;
    position: relative;
}

.guide-method-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 1.8rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--border);
    border-right: 5px solid var(--gold);
}
.guide-method-section.framing { border-right-color: #28709E; }
.guide-method-section.depth { border-right-color: #C19447; }
.guide-method-section.priority { border-right-color: #059669; }

.guide-method-header {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}
.guide-method-icon-lg {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: var(--lighter);
    color: var(--navy);
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.guide-method-section.framing .guide-method-icon-lg { background: #E0EBF3; color: #28709E; }
.guide-method-section.depth .guide-method-icon-lg   { background: #FFFBEB; color: #C19447; }
.guide-method-section.priority .guide-method-icon-lg { background: #F0FDF4; color: #059669; }

.guide-method-titles {
    flex: 1;
    min-width: 200px;
}
.guide-method-titles h2 {
    font-family: 'Cairo', sans-serif;
    margin: 0 0 0.3rem;
    color: var(--navy);
    font-size: 1.4rem;
}
.guide-method-titles .stage-tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--lighter);
    color: var(--navy);
    margin-bottom: 0.4rem;
}

.guide-method-content {
    color: var(--ink);
    line-height: 1.85;
}
.guide-method-content h3 {
    color: var(--navy);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    margin: 1.2rem 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.guide-method-content h3 i { color: var(--gold); }
