/* ==========================================================================
   KARIGAR JI PROCESS CENTER & CHECKLIST STYLES
   ========================================================================== */

/* ── BASE & UTILITIES ── */
.process-container {
    background: #f8fafc;
    min-height: 100vh;
}

/* ── HERO BANNER ── */
.process-hero {
    background: radial-gradient(circle at top right, rgba(230, 60, 53, 0.12), transparent 40%), 
                radial-gradient(circle at bottom left, rgba(17, 19, 94, 0.18), transparent 45%),
                var(--ink);
    color: white;
    padding: 60px 24px 80px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.process-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.process-hero .container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.process-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.process-hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 40%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.process-hero p {
    font-size: clamp(14px, 1.8vw, 16px);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ── SEARCH & FILTERS ── */
.search-filter-wrap {
    max-width: 800px;
    margin: -35px auto 40px;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.search-box-inner {
    background: #ffffff;
    border-radius: 20px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(10, 15, 30, 0.08), 
                0 0 0 1px rgba(17, 19, 94, 0.05);
}

.search-icon {
    font-size: 18px;
    color: var(--muted);
    padding-left: 12px;
}

.search-input {
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--ink);
    width: 100%;
    padding: 12px 4px;
}

.search-input::placeholder {
    color: var(--muted);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--txt);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover {
    border-color: var(--navy);
    color: var(--navy);
    background: rgba(17, 19, 94, 0.02);
}

.filter-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(17, 19, 94, 0.15);
}

/* ── GRID & CARDS ── */
.process-grid-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.category-group {
    margin-bottom: 48px;
}

.category-title {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, #e2e8f0, transparent);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.process-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 10px 25px rgba(17, 19, 94, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--mid);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px rgba(17, 19, 94, 0.06);
    border-color: rgba(17, 19, 94, 0.1);
}

.process-card:hover::before {
    opacity: 1;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.card-icon {
    font-size: 24px;
    background: var(--lite);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
}

.badge-active { background: #e0f2fe; color: #0369a1; }
.badge-soon { background: #f1f5f9; color: #64748b; }
.badge-safety { background: #fef3c7; color: #b45309; }

.card-title {
    font-family: 'Syne', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.card-desc {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.5;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    font-size: 12px;
    color: var(--muted);
}

.tags-wrap {
    display: flex;
    gap: 6px;
}

.tag {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.card-action {
    font-weight: 600;
    color: var(--mid);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── CHECKLIST LAYOUT ── */
.checklist-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 24px;
}

/* ── STICKY SIDEBAR NAVIGATION ── */
.checklist-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.progress-widget {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 15px 30px rgba(17, 19, 94, 0.03);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-widget-left {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
}

.progress-widget-count {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.progress-text {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    color: var(--navy);
    line-height: 1;
}

.progress-bar-bg {
    background: #f1f5f9;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--mid), #ff6b6b);
    width: 0%;
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-nav-list {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 16px;
    box-shadow: 0 15px 30px rgba(17, 19, 94, 0.03);
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 10px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-nav-item a:hover {
    color: var(--navy);
    background: rgba(17, 19, 94, 0.03);
    padding-left: 16px;
}

.sidebar-nav-item.active a {
    color: var(--navy);
    background: var(--lite);
    border-left-color: var(--mid);
    padding-left: 16px;
}

.phase-dot-count {
    font-size: 11px;
    background: #f1f5f9;
    color: var(--muted);
    padding: 2px 6px;
    border-radius: 100px;
    font-weight: 700;
}

.sidebar-nav-item.active .phase-dot-count {
    background: var(--navy);
    color: #ffffff;
}

/* ── CHECKLIST CONTENT ── */
.checklist-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.checklist-phase {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 32px;
    box-shadow: 0 15px 35px rgba(17, 19, 94, 0.02);
    scroll-margin-top: 110px;
}

.phase-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ── SOP INFOGRAPHIC IMAGES ── */
.sop-overview-banner {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 16px;
    margin-bottom: 28px;
    box-shadow: 0 12px 30px rgba(17, 19, 94, 0.04);
}

.sop-overview-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.step-infographic-card {
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(17, 19, 94, 0.05);
    background: #f8fafc;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-infographic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(17, 19, 94, 0.09);
}

.step-infographic-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.phase-num {
    font-family: 'Syne', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: rgba(17, 19, 94, 0.12);
    line-height: 1;
}

.phase-info {
    display: flex;
    flex-direction: column;
}

.phase-title {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
}

.phase-desc {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checklist-row {
    position: relative;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    padding: 18px 20px 18px 56px;
    background: #fafcff;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.checklist-row:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

/* Custom Checkbox Design */
.checklist-row input[type="checkbox"] {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-custom::after {
    content: '✓';
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.checklist-row input[type="checkbox"]:checked ~ .checkbox-custom {
    background: var(--mid);
    border-color: var(--mid);
}

.checklist-row input[type="checkbox"]:checked ~ .checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

/* Checked States */
.checklist-row.checked {
    background: #f8fafc;
    border-color: rgba(17, 19, 94, 0.05);
    opacity: 0.85;
}

.checklist-row.checked .item-text {
    text-decoration: line-through;
    color: var(--muted);
}

.checklist-row.checked .checkbox-custom {
    background: var(--success);
    border-color: var(--success);
}

.item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-text {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--navy);
    transition: color 0.2s ease;
}

.item-hint {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.4;
}

.importance-badge {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    text-transform: uppercase;
}
.importance-high { background: #fee2e2; color: #ef4444; }
.importance-medium { background: #ffedd5; color: #f97316; }
.importance-standard { background: #f1f5f9; color: #475569; }

/* ── PREVIEW OVERLAY / WIDGET ── */
.reset-btn {
    width: 100%;
    margin-top: 16px;
    background: #f1f5f9;
    border: none;
    color: var(--txt);
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-btn:hover {
    background: #e2e8f0;
    color: var(--navy);
}

/* ── RESPONSIVE ── */
/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .checklist-grid {
        display: block; /* Change from grid to block layout to let sticky container float over entire checklist height */
    }
    
    /* UNIFIED STICKY CONTROL HEADER */
    .checklist-sidebar {
        position: sticky;
        position: -webkit-sticky;
        top: 72px; /* Sticky right below main navbar */
        z-index: 95;
        background: #f8fafc; /* Match page body bg */
        padding-top: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e2e8f0;
        margin: 0 -24px 20px -24px; /* Bleed background to screen edge */
        padding-left: 24px;
        padding-right: 24px;
        box-shadow: 0 4px 12px rgba(17, 19, 94, 0.02);
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* COMPACT SINGLE-ROW PROGRESS WIDGET */
    .progress-widget {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 10px 16px;
        margin-bottom: 12px;
        border-radius: 12px;
        background: #ffffff;
        border: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: 0 4px 15px rgba(17, 19, 94, 0.02);
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .progress-widget-left {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .progress-widget .progress-text {
        font-size: 18px;
        font-weight: 800;
        color: var(--navy);
        line-height: 1.1;
        margin-bottom: 0;
        white-space: nowrap;
    }
    
    .progress-widget-count {
        font-size: 10px;
        font-weight: 700;
        color: var(--muted);
        white-space: nowrap;
    }
    
    .progress-widget .progress-bar-bg {
        flex-grow: 1;
        height: 6px;
        background: #f1f5f9;
        border-radius: 10px;
        overflow: hidden;
        position: relative;
    }
    
    .progress-widget .reset-btn {
        margin-top: 0;
        width: auto;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap;
        background: #f1f5f9;
        border: none;
        color: var(--txt);
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .progress-widget .reset-btn:hover {
        background: #e2e8f0;
        color: var(--navy);
    }

    /* HORIZONTAL TABS NAVIGATION */
    .sidebar-nav-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 2px 0;
        margin: 0;
        gap: 8px;
        scrollbar-width: none; /* Firefox */
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    
    .sidebar-nav-list::-webkit-scrollbar {
        display: none; /* Safari & Chrome */
    }
    
    .sidebar-nav-item {
        flex: 0 0 auto;
    }
    
    .sidebar-nav-item a {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 100px;
        font-size: 12px;
        color: var(--txt);
        transition: all 0.2s ease;
        border-left: 1px solid #e2e8f0;
        text-decoration: none;
    }
    
    .sidebar-nav-item a:hover {
        background: #f1f5f9;
        color: var(--navy);
        padding-left: 12px;
    }
    
    .sidebar-nav-item.active a {
        background: var(--navy);
        color: #ffffff;
        border-color: var(--navy);
        padding-left: 12px;
    }
    
    .sidebar-nav-item.active .phase-dot-count {
        background: var(--mid);
        color: #ffffff;
    }
}

@media (max-width: 640px) {
    .process-hero {
        padding: 40px 16px 60px;
    }
    
    .search-filter-wrap {
        margin: -25px auto 30px;
    }
    
    .process-card {
        padding: 20px;
    }
    
    .checklist-grid {
        padding: 0 16px;
        margin: 15px auto 40px;
    }
    
    .checklist-phase {
        padding: 20px;
    }
    
    .checklist-row {
        padding: 14px 14px 14px 44px;
    }
    
    .checkbox-custom, .checklist-row input[type="checkbox"] {
        left: 12px;
    }
    
    /* MINI ADJUSTMENTS FOR PHONES */
    .checklist-sidebar {
        margin: 0 -16px 16px -16px;
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .progress-widget {
        padding: 8px 12px;
        gap: 8px;
        border-radius: 10px;
        margin-bottom: 10px;
    }
    
    .progress-widget .progress-text {
        font-size: 15px;
    }
    
    .progress-widget-count {
        font-size: 9px;
    }
    
    .progress-widget .progress-bar-bg {
        height: 5px;
    }
    
    .progress-widget .reset-btn {
        padding: 5px 8px;
        font-size: 10px;
        border-radius: 6px;
    }
}
