/* ========== CASE STUDY PAGES SPECIFIC STYLES - ULTRA COMPACT ========== */

/* Hero */
.case-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.case-hero h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.case-hero .highlight {
    font-size: 1rem;
    margin-top: 8px;
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 18px;
    border-radius: 50px;
}

/* Stats Banner */
.stats-banner {
    background: #2d3436;
    color: white;
    padding: 20px 0;
}

.stats-banner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    text-align: center;
}

.stat-badge {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ff6b6b;
}

.stat-badge-label {
    font-size: 0.7rem;
    margin-top: 3px;
    opacity: 0.9;
}

/* Content Sections - COMPACT */
.section {
    padding: 10px 0 !important;
}

.bg-light {
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #2d3436;
}

/* Content Box - COMPACT */
.content-box {
    background: white;
    border-radius: 10px;
    padding: 12px 15px !important;
    margin-bottom: 8px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.content-box h3 {
    font-size: 1rem !important;
    margin-bottom: 5px !important;
    color: #ff6b6b;
}

.content-box h4 {
    font-size: 0.9rem !important;
    margin: 5px 0 3px !important;
    color: #2d3436;
}

.content-box p {
    color: #444;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
    font-size: 0.85rem;
}

.content-box ul, 
.content-box ol {
    margin: 3px 0 3px 18px !important;
    color: #444;
    line-height: 1.3;
}

.content-box li {
    margin-bottom: 2px !important;
    font-size: 0.85rem;
}

.content-box > :last-child {
    margin-bottom: 0 !important;
}

/* Result Grid - COMPACT */
.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 5px;
    margin-bottom: 0;
}

.result-card {
    background: #f8f9fa;
    padding: 8px 12px !important;
    border-radius: 8px;
    border-left: 3px solid #ff6b6b;
}

.result-card .percentage {
    font-size: 0.9rem !important;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 2px;
}

.result-card .before {
    font-size: 0.65rem;
    color: #888;
    text-decoration: line-through;
}

.result-card .after {
    font-size: 0.7rem;
    color: #4CAF50;
    font-weight: 500;
}

/* Service Tags */
.service-tag {
    display: inline-block;
    background: #ff6b6b10;
    color: #ff6b6b;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    margin: 2px;
}

/* Pricing Table - COMPACT */
.pricing-table {
    overflow-x: auto;
    margin-top: 5px;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7rem;
}

.pricing-table th, 
.pricing-table td {
    padding: 4px 6px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pricing-table th {
    background: #ff6b6b;
    color: white;
    font-weight: 600;
}

.pricing-table tr:hover {
    background: #f8f9fa;
}

.total-row {
    background: #2d3436;
    color: white;
    font-weight: bold;
}

.total-row td {
    color: white;
}

/* CTA Box - COMPACT */
.cta-box {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    margin-top: 5px;
}

.cta-box h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: white;
}

.btn-white {
    background: white;
    color: #ff6b6b;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* On-Premises Cost Box */
.onprem-box {
    margin-top: 8px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #ff6b6b;
}

.onprem-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.onprem-row:last-child {
    margin-bottom: 0;
}

/* Case Study Responsive */
@media (max-width: 992px) {
    .stats-banner-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .result-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .result-grid {
        grid-template-columns: 1fr;
    }
    .case-hero {
        padding: 20px 0;
    }
    .case-hero h1 {
        font-size: 1.5rem;
    }
    .case-hero .highlight {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    .content-box {
        padding: 8px 12px !important;
    }
    .content-box h3 {
        font-size: 0.9rem !important;
    }
    .content-box p {
        font-size: 0.8rem;
    }
    .section-title h2 {
        font-size: 1.3rem;
    }
    .stat-badge {
        font-size: 1.2rem;
    }
    .stat-badge-label {
        font-size: 0.6rem;
    }
    .pricing-table {
        font-size: 0.6rem;
    }
    .pricing-table th, 
    .pricing-table td {
        padding: 3px 4px;
    }
    .cta-box {
        padding: 15px;
    }
    .cta-box h2 {
        font-size: 1.1rem;
    }
}