
/* Reset and Base Styles for ueeshop Compatibility */
.infinity-case-study {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #000000;
    line-height: 1.7;
    font-size: 16px;
}

.infinity-case-study * {
    box-sizing: border-box;
}

/* Hero Banner */
.case-hero {
    background: #223777;
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
    margin-bottom: 50px;
}

.case-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.3;
    color: #ffffff;
}

.case-hero p {
    font-size: 18px;
    margin: 0;
    opacity: 0.95;
    color: #ffffff;
}

/* Section Spacing */
.case-section {
    padding: 40px 0;
    margin-bottom: 30px;
}

.case-section-alt {
    background: #f8f9fb;
    padding: 50px 20px;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 30px;
}

/* Typography */
.case-title {
    font-size: 32px;
    color: #223777;
    margin: 0 0 25px 0;
    font-weight: 700;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid #223777;
    display: inline-block;
    width: auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.case-subtitle {
    font-size: 24px;
    color: #223777;
    margin: 30px 0 15px 0;
    font-weight: 700;
}

.case-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 20px;
    text-align: justify;
}

.case-text strong {
    color: #223777;
    font-weight: 700;
}

/* Links */
.case-link {
    color: #223777;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid #223777;
    transition: color 0.3s ease;
}

.case-link:hover {
    color: #1a2a5e;
    border-bottom-color: #1a2a5e;
}

/* Highlight Box */
.case-highlight {
    background: #223777;
    color: #ffffff;
    padding: 35px 30px;
    border-radius: 8px;
    margin: 35px 0;
}

.case-highlight h3 {
    font-size: 24px;
    margin: 0 0 20px 0;
    font-weight: 700;
    color: #ffffff;
}

.case-highlight ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-highlight li {
    padding: 10px 0 10px 30px;
    position: relative;
    font-size: 16px;
    line-height: 1.7;
    color: #ffffff;
}

.case-highlight li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    background: #ffffff;
    color: #223777;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
}

/* Process Cards Grid */
.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.case-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border-top: 3px solid #223777;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(34, 55, 119, 0.2);
}

.case-card h3 {
    color: #223777;
    font-size: 20px;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.case-card p {
    color: #333333;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Images Section */
.case-images {
    margin: 40px 0;
}

.case-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.case-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(34, 55, 119, 0.25);
}

.case-image-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.case-image-item:hover img {
    transform: scale(1.05);
}

.case-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(34, 55, 119, 0.9);
    color: #ffffff;
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

/* Testimonial */
.case-testimonial {
    background: #f8f9fb;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #223777;
    margin: 30px 0;
    font-style: italic;
    font-size: 17px;
    line-height: 1.8;
    color: #333333;
    position: relative;
}

.case-testimonial:before {
    content: '"';
    font-size: 60px;
    color: #223777;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 15px;
    font-family: Georgia, serif;
    line-height: 1;
}

.case-testimonial p {
    margin: 0;
    padding-left: 30px;
}

/* Contact Inline Box */
.case-contact {
    background: #f0f3f8;
    border-left: 4px solid #223777;
    padding: 30px 25px;
    margin: 35px 0;
    border-radius: 6px;
}

.case-contact h3 {
    color: #223777;
    font-size: 22px;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.case-contact p {
    font-size: 16px;
    color: #333333;
    margin: 0 0 20px 0;
    line-height: 1.7;
}

.case-contact-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.case-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #223777;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.case-contact-btn:hover {
    background: #1a2a5e;
    transform: translateX(3px);
    color: #ffffff;
}

.case-contact-btn:before {
    content: '📧';
    margin-right: 8px;
    font-size: 16px;
}

.case-contact-btn.whatsapp:before {
    content: '📱';
}

/* CTA Section */
.case-cta {
    background: #223777;
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
    margin: 50px -20px 0 -20px;
    border-radius: 0;
}

.case-cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.case-cta p {
    font-size: 17px;
    margin: 0 auto 30px auto;
    max-width: 700px;
    opacity: 0.95;
    line-height: 1.7;
    color: #ffffff;
}

.case-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.case-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 35px;
    background: #ffffff;
    color: #223777;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.case-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #f0f3f8;
    color: #223777;
}

.case-cta-link {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 700;
    font-size: 16px;
}

.case-cta-link:hover {
    color: #f0f3f8;
}

/* Brand Highlight */
.brand-text {
    color: #223777;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .case-hero h1 {
        font-size: 28px;
    }
    
    .case-hero p {
        font-size: 16px;
    }
    
    .case-title {
        font-size: 26px;
    }
    
    .case-subtitle {
        font-size: 20px;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .case-image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .case-image-item img {
        height: 220px;
    }
    
    .case-section-alt {
        padding: 40px 15px;
    }
    
    .case-highlight {
        padding: 25px 20px;
    }
    
    .case-contact-buttons {
        flex-direction: column;
    }
    
    .case-contact-btn {
        width: 100%;
    }
    
    .case-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .case-cta-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .case-hero {
        padding: 40px 15px;
    }
    
    .case-hero h1 {
        font-size: 24px;
    }
    
    .case-title {
        font-size: 22px;
    }
    
    .case-text {
        font-size: 15px;
    }
    
    .case-image-item img {
        height: 180px;
    }
    
    .case-contact {
        padding: 20px 15px;
    }
}
