/* Add this to your theme's style.css or a custom stylesheet */

.service-block-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between; /* Adjusted to space evenly between blocks */
    max-width: 100%;
}

    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-block {
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    color: #333333;
    overflow: hidden; /* Ensure content doesn't overflow the box */
}

.service-block img {
    width: 100px; /* Set the width to 60px */
    height: 100px; /* Set the height to 60px */
    max-height: 100px; /* Ensure the max-height is 60px */
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

    width: 100%;
    height: auto;
    max-height: 150px; /* Limit the height to prevent overlap with text */
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px; /* Add some space below the image */
}

.service-block-small {
    width: 18%; /* Adjusted width to fit five blocks in a row */
    min-height: 270px;
}

    width: 300px;
    min-height: 270px; /* Minimum height, but allows expansion */
}

.service-block-medium {
    width: 18%; /* Adjusted width to fit five blocks in a row */
    min-height: 360px;
}

    width: 400px;
    min-height: 360px;
}

.service-block-large {
    width: 500px;
    min-height: 450px;
}

.service-block:hover {
    transform: translateY(-10px);
}

.service-block .icon {
    font-size: 50px;
    color: inherit;
    margin-bottom: 20px;
}

.service-block .description {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
    flex-grow: 1;
    display: block; /* Ensure the description is always displayed */
}

.service-block .title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.service-block .subtitle {
    font-size: 16px;
    color: #666666;
    margin-bottom: 10px;
}

/* --- Force icon size to 60x60 --- */

.service-block i {
    font-size: 60px !important; /* Ensure the icon is sized correctly */
    width: 60px !important;
    height: 60px !important;
    line-height: 60px !important; /* Align the icon vertically within the container */
}

/* --- Allow icon color to be changeable --- */

.service-block i {
    font-size: 60px !important; /* Ensure the icon is sized correctly */
    width: 60px !important;
    height: 60px !important;
    line-height: 60px !important; /* Align the icon vertically within the container */
    color: inherit !important; /* Inherit the color from parent or inline style */
}

/* --- Set icon size to 55x55, add 5px space above icon --- */

.service-block i {
    font-size: 55px !important; /* Set the icon size to 55x55 pixels */
    width: 55px !important;
    height: 55px !important;
    line-height: 55px !important; /* Align the icon vertically within the container */
    color: inherit !important; /* Inherit the color from parent or inline style */
    margin-top: 5px; /* Add 5px space above the icon */
}
