/* =========================================
   LUPOS CASE STUDY - TOTAL SPECIFICITY FIX
   ========================================= */

.lupos-case-study {
    --lp-doc-bg: #fdfbf7;
    --lp-text: #2c3e50;
    --lp-border: #d1d5da;
    margin-top: 2em;
}

/* 1. DEFINE SECTION THEME COLORS */
.section-overview    { --theme-clr: #008080; --theme-bg: #e0f2f2; }
.section-challenge   { --theme-clr: #d35400; --theme-bg: #fadbd8; }
.section-service     { --theme-clr: #5D6D7E; --theme-bg: #eaeded; }
.section-achievement { --theme-clr: #b7950b; --theme-bg: #fcf3cf; }
.section-outcome     { --theme-clr: #27ae60; --theme-bg: #d5f5e3; }

/* 2. APPLY TO TITLES & ICONS */
.lupos-case-study .case-section .section-title {
    color: var(--theme-clr) !important;
    border-left: 5px solid var(--theme-bg) !important;
    display: flex; align-items: center; gap: 10px;
    font-size: 1.4rem; font-weight: 700; padding-left: 0.8rem;
}

.lupos-case-study .case-section .icon-box svg {
    width: 24px; height: 24px;
    stroke: var(--theme-clr) !important;
}

/* 3. APPLY TO LIST BULLETS */
.lupos-case-study .case-section ul li::before {
    color: var(--theme-clr) !important;
}

/* 4. THE DOCUMENT FIX (FORCE BORDER COLOR) */
/* This specific selector forces the border based on the parent section class */
.lupos-case-study .case-section .doc-snippet {
    border-left: 4px solid var(--theme-clr) !important; 
    position: relative; background: var(--lp-doc-bg);
    padding: 2rem; font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* Jagged Paper Edges */
.lupos-case-study .doc-snippet::before,
.lupos-case-study .doc-snippet::after {
    content: ""; position: absolute; left: 0; width: 100%; height: 10px;
    background-size: 20px 20px; background-repeat: repeat-x;
}
.lupos-case-study .doc-snippet::before {
    top: -10px;
    background-image: linear-gradient(135deg, var(--lp-doc-bg) 25%, transparent 25%), 
                      linear-gradient(225deg, var(--lp-doc-bg) 25%, transparent 25%);
}
.lupos-case-study .doc-snippet::after {
    bottom: -10px;
    background-image: linear-gradient(315deg, var(--lp-doc-bg) 25%, transparent 25%), 
                      linear-gradient(45deg, var(--lp-doc-bg) 25%, transparent 25%);
}

/* 5. DOCUMENT INTERNAL STYLING */
.lupos-case-study .doc-header {
    display: flex; justify-content: space-between; font-size: 0.75rem;
    border-bottom: 1px dashed var(--lp-border); padding-bottom: 0.5rem; margin-bottom: 1rem;
}

.lupos-case-study .doc-divider {
    border: 0; border-top: 1px solid #ddd; margin: 1rem 0;
}

.lupos-case-study .doc-data {
    margin-top: 1rem; font-weight: 700; padding-top: 0.5rem;
    border-top: 1px solid var(--lp-border);
}

.lupos-case-study .doc-footer {
    margin-top: 1.5rem; font-size: 0.7rem; font-style: italic;
    text-align: center; color: #888; border-top: 1px solid #eee; padding-top: 0.5rem;
}

/* Layout logic */
.lupos-case-study .case-section {
    display: flex; flex-direction: column; gap: 2rem;
    margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid #eee;
}

@media (min-width: 900px) {
    .lupos-case-study .case-section { flex-direction: row; }
    .lupos-case-study .content-text { flex: 1; }
    .lupos-case-study .doc-wrapper { flex: 0 0 45%; }
}

/* Generic Utilities */
.status-ok { color: #27ae60; font-weight: bold; }
.status-success { color: #27ae60; font-weight: bold; }
.case-generic-list, .case-service-list { list-style: none; padding: 0; }
.case-generic-list li, .case-service-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; }
.case-generic-list li::before { content: "○"; position: absolute; left: 0; }
.case-service-list li::before { content: "✓"; position: absolute; left: 0; }