/* ERP Failure Reasons Styles */
.article-intro .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

/* Statistics Box */
.statistics-box {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    border-left: 5px solid #dc3545;
}

.stat-item {
    text-align: center;
    padding: 0 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    max-width: 120px;
    margin: 0 auto;
}

/* Failure Reasons Grid */
.failure-reasons-grid {
    margin: 40px 0;
}

.reason-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.reason-header {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.reason-number {
    background: rgba(255,255,255,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.reason-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.reason-body {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
}

.reason-image {
    flex: 1;
    min-width: 300px;
}

.reason-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.reason-content {
    flex: 2;
    min-width: 300px;
    padding: 25px;
}

.reason-content h4 {
    color: #dc3545;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.reason-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.reason-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.solution-box {
    background: #f8f9fa;
    border-left: 4px solid #28a745;
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 5px 5px 0;
}

.solution-box h5 {
    color: #28a745;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.solution-box p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* Reason Summary */
.reason-summary {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-top: 30px;
}

.reason-summary h3 {
    color: #dc3545;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reason-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.reason-item:last-child {
    border-bottom: none;
}

.reason-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.reason-num {
    background: #dc3545;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.reason-title h4 {
    margin: 0;
    color: #333;
}

.reason-item p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.reason-item strong {
    color: #dc3545;
}

/* Prevention Framework */
.prevention-framework {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.framework-phase {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    border-top: 4px solid #0078b0;
}

.phase-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #0078b0;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.framework-phase h3 {
    margin-top: 5px;
    color: #0078b0;
    font-size: 1.2rem;
}

.framework-phase ul {
    padding-left: 20px;
    margin-top: 15px;
}

.framework-phase li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Case Studies */
.case-studies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.case-study {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.case-header {
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.case-header.success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.case-header.failure {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
}

.case-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.case-tag {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.case-content {
    padding: 20px;
}

.case-content p {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Key Takeaways */
.key-takeaways {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.takeaway-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.takeaway-card:hover {
    transform: translateY(-5px);
}

.takeaway-card i {
    font-size: 2rem;
    color: #0078b0;
    margin-bottom: 15px;
}

.takeaway-card h3 {
    margin: 10px 0;
    color: #004466;
    font-size: 1.1rem;
}

.takeaway-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #004466 0%, #0078b0 100%);
    border-radius: 10px;
    padding: 30px;
    color: white;
    margin: 40px 0;
    text-align: center;
}

.cta-box h3 {
    margin-top: 0;
    color: white;
    font-size: 1.5rem;
}

.cta-box p {
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 20px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Resources List */
.resources-list {
    margin-top: 15px;
}

.resource-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

.resource-item:hover {
    background: #e9ecef;
}

.resource-item i {
    font-size: 1.5rem;
    color: #dc3545;
    margin-right: 15px;
}

.resource-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.resource-item span {
    font-size: 0.8rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .statistics-box {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .reason-body {
        flex-direction: column;
    }
    
    .reason-image,
    .reason-content {
        min-width: 100%;
    }
    
    .reason-image img {
        height: 200px;
    }
    
    .prevention-framework,
    .case-studies,
    .key-takeaways {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .reason-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .reason-header h3 {
        font-size: 1.1rem;
    }
    
    .framework-phase,
    .case-study {
        padding: 15px;
    }
}