.ai-use-cases-section {
    padding: 80px 20px;
}

.ai-section-heading {
    text-align: center;
    font-family: sans-serif;
    margin-bottom: 15px;
    font-weight: 700;
}

.ai-section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto; /* 30px bottom margin */
    font-size: 1.1rem;
    line-height: 1.6;
}

.ai-cards-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .ai-cards-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    }
    
    /* Center the last item if the total number of items is odd */
    .ai-cards-grid > .ai-card:nth-child(odd):last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 15px); /* Matches the width of one column plus half the gap */
        margin: 0 auto;
        width: 100%;
    }
}

.ai-card {
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease backwards;
    text-align: left;
}

.ai-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.ai-card-icon {
    margin-bottom: 20px;
    display: inline-block;
}

.ai-card-title {
    font-size: 1.15rem; /* Smaller font size to fit cleaner */
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.ai-card-desc {
    line-height: 1.6;
    margin: 0;
}

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