/**
 * Services and Solutions Grid Styles
 * 
 * Styles for the 3x2 grid layout of services and solutions
 * with images, titles, subtitles, and descriptions
 * 
 * @package AISBKnowledgeNetworks
 * @since 1.0.0
 */

/* Service Cards */
.service-card {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Service Images */
.service-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.service-image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px 10px 10px 10px !important;
    min-height: 350px;
}

/* Service Content */
.service-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-category {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2a548c;
    line-height: 31px;
    text-align: center;
}

.service-title {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 8px;
    color: #2a548c;
    line-height: 26px;
    letter-spacing: -1px;
    text-align: center;
}

.service-description {
    font-size: 18px;
    letter-spacing: -1px;
    line-height: 23px;
    color: #2e2b2b;
    font-weight: 300;
    text-align: center;
}

.service-description p {
    margin: 0 0 15px 0;
}

.service-description p:last-child {
    margin-bottom: 0;
}

/* Grid Layout */
.services-solutions-grid .row {
    margin: 0 -15px;
}

.services-solutions-grid .col-md-4,
.services-solutions-grid .col-sm-6 {
    padding: 0 15px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .services-solutions-grid {
        margin: 40px 0;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    .service-content {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .services-solutions-grid {
        margin: 30px 0;
    }
    
    .service-card {
        margin-bottom: 25px;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-content {
        padding: 18px;
    }
}

@media (max-width: 575px) {
    .services-solutions-grid .row {
        margin: 0 -10px;
    }
    
    .service-content {
        padding: 15px;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .service-subtitle {
        font-size: 0.9rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
}

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

/* No services message */
.no-services {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 40px 0;
}

.no-services p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}
