/* --- Guide Layout & Grid --- */
.guide-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: -40px auto 40px; /* Pulls up slightly over the hero wave */
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

@media (min-width: 992px) {
    .guide-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* --- Sticky Sidebar --- */
.guide-sidebar {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #eee;
}

@media (min-width: 992px) {
    .guide-sidebar {
        width: 280px;
        flex-shrink: 0;
        position: sticky;
        top: 100px; /* Height of your navbar + padding */
    }
}

.guide-sidebar h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--dark);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.guide-sidebar ul {
    list-style: none;
    padding: 0; margin: 0;
}

.guide-sidebar li a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    transition: 0.3s;
}

.guide-sidebar li a:hover, .guide-sidebar li a.active {
    background: #f9fafb;
    color: var(--primary);
}

/* --- Timeline Main Content --- */
.guide-main {
    flex-grow: 1;
    max-width: 800px;
}

.timeline {
    position: relative;
    padding-right: 35px; /* RTL spacing */
    border-right: 2px dashed #e2e8f0;
}

.timeline-step {
    position: relative;
    margin-bottom: 50px;
}

/* The Circle Number */
.timeline-icon {
    position: absolute;
    right: -52px; /* Pull it over the dashed line */
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    border: 4px solid var(--bg-light);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-content {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
}

.timeline-content h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--dark);
}

/* --- Expandable Image Toggle --- */
.image-toggle-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    margin-top: 15px;
}

.image-toggle-btn:hover {
    background: #e2e8f0;
}

.image-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-wrapper.expanded {
    max-height: 600px; /* High enough to fit the image */
    margin-top: 20px;
    opacity: 1;
}

.image-wrapper img {
    width: 100%;
    max-width: 350px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: block;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* --- Note / Callout Bar --- */
.guide-note {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 16px 20px;
    line-height: 1.7;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

.guide-note i {
    min-width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
}

.guide-note span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #92400e;
}