  /* Main container styles */
.services-archive {
    width: 100%;  /* Changed from 95% to 100% for wider cards */
    max-width: 1800px;  /* Increased from 1400px for even wider content */
    margin: auto;
    padding: 2rem 1rem;  /* Added horizontal padding */
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
.services-archive .wp-block-query {
    max-width:1800px;
    padding:0 30px;
 }
 
/* Card styles */
.service-card {
    display: flex;
    min-height: 400px;  /* Reduced from 250px to maintain better proportions */
    border-radius: 12px;
    border:3px solid #d8613c;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: transform 0.3s ease;
    max-width: 1800px;  /* Added max-width to match container */
    margin: 0 auto;     /* Center the card */
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Image styles */
.service-card-image {
    flex: 0 0 45%;  /* Reduced from 45% to keep image proportion with wider card */
    position: relative;
    min-height: 100%;
 }

.service-card-image .wp-block-post-featured-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.service-card-image .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border-radius:0;
}

/* Content styles */
.service-card-content {
    flex: 1;
    padding: 2rem 3rem;  /* Increased horizontal padding for better text placement in wider card */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.service-card-title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin: 0;
    color: #333;
    line-height: 1.2;
}

.service-card-description {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.6;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Number of lines you want to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Button styles */
.service-card-button {
    display: inline-block;
    background-color: #d8613c;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    align-self: flex-end;
    transition: background-color 0.3s ease;
}

.service-card-button:hover {
    background-color: #b94e2f;
    color: white;
}

/* Responsive styles */
@media (max-width: 768px) {
    .services-archive .wp-block-query {
         
        padding: 0 5px;
    }
    .service-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .service-card-image {
        flex: 0 0 200px;
        width: 100%;
    }
    
    .service-card-content {
        padding: 1.5rem;
    }
    .service-card-button { 
        align-self: center;
        height: 20px;
        width: auto;
        font-size: 12px;
        padding: 10px;
    }
}