/* Section Styling */
.service-section {
    padding: 5rem 2rem;
    text-align: center;
}

.service-container {
    max-width: 1200px;
    margin: auto;
    
}

.service-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
    margin-top:5rem;
}

.service-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Services Grid */
.service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    height: 100%;
}

.service-card {
    background-color: var(--accent-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 30%;
    height: 100%;
    margin: auto;
    transition: transform 0.3s, box-shadow 0.3s;
}


.service-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px #6cff64;
}

.service-image {
    flex: 0 0 60%;
    width: 100%;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 218px; 
    object-fit: cover;
    display: block;
    border-bottom: 2px solid var(--brand-color);
}


/* Details section - 30% height */
.service-details {
    flex: 1;
    padding: 1rem;
    background-color: var(--accent-color);
    display: block;
    flex-direction: column;
    justify-content: space-between; /* Adjust spacing */
    text-align: left; 
    height: 30%;
}

.service-details h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}

.service-details p {
    font-size: 0.90rem;
    color: #ccc;
    flex-wrap: wrap;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Know More Button */
.service-know-more-btn {
    margin-top: 0.8rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #6cff64;
    color: rgb(0, 0, 0);
    font-size: 0.9rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    align-self: flex-start; /* Fixes it to the left */
}

.service-know-more-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgb(255, 255, 255);
}


/* Mobile Responsive */
@media (min-width: 100px) and (max-width: 655px) {
  
    .service-grid {
        align-items: center;
        gap: 1.5rem;
    }

    .service-card {
        width: 100%;
        max-width: 300px;
        min-height: auto;
    }

    .service-details {
        text-align: center;
        align-items: center;
        padding: 1rem;
        gap: 0.5rem;
    }

    .service-know-more-btn {
        align-self: center;
    }
}
