/**
 * Homepage Case Studies Section Styles
 * Geo-targeted case studies with compact SEO keywords
 */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Case Studies Section */
.case-studies-section {
    padding: 60px 0;
}

.case-studies-header {
    margin-bottom: 3rem;
}

/* Card Styles */
.news-item.item-style {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-item.item-style:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(24, 89, 180, 0.15);
    border-color: #1859B4;
}

/* Image Container */
.news-item-img {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    aspect-ratio: 16 / 10;
}

.news-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item.item-style:hover .news-item-img img {
    transform: scale(1.05);
}

/* Industry Badge */
.industry-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #1859B4;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Content */
.news-item-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-item-heading a {
    color: #333;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.news-item-heading a:hover {
    color: #1859B4;
}

/* Meta Information */
.case-study-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.case-study-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.case-study-meta-item .material-icons {
    font-size: 16px;
    color: #1859B4;
}

/* Description */
.news-item-desc {
    flex: 1;
    margin-bottom: 1rem;
}

.news-item-desc p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* CTA Button Container */
.case-study-cta {
    margin-top: 15px;
}

/* CTA Section at Bottom */
.case-studies-cta {
    margin-top: 3rem;
}

.case-studies-cta-inner {
    background: linear-gradient(135deg, #1859B4 0%, #0467F1 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    color: white;
    text-align: center;
}

.case-studies-cta-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.case-studies-cta-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.case-studies-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.case-studies-cta-primary {
    background: white;
    color: #1859B4;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.case-studies-cta-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.case-studies-cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.case-studies-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Empty State */
.case-studies-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #999;
}

.case-studies-empty-icon {
    font-size: 48px;
    color: #ddd;
    display: block;
    margin-bottom: 1rem;
}

.case-studies-empty-text {
    margin-bottom: 1.5rem;
}

.case-studies-empty-cta {
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-item-info {
        padding: 1rem;
    }

    .news-item-heading a {
        font-size: 1.1rem;
    }

    .case-studies-cta-title {
        font-size: 1.5rem;
    }

    .case-studies-cta-description {
        font-size: 1rem;
    }

    .case-studies-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .case-studies-cta-primary,
    .case-studies-cta-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .case-studies-cta-inner {
        padding: 2rem 1rem;
    }

    .news-item-heading a {
        font-size: 1rem;
    }

    .industry-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
}
