.services-archive {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
    width: 100%;
}

.services-archive h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
	font-family: 'Cairo';
}

.services-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Ensures the layout adapts to smaller screens */
}

.service-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 32%; /* Default card width */
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: space-between; /* Push the button to the bottom */
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
   /* height: 100%; /* Ensure consistent card heights */
}

.service-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-item img {
    width: 95%;
    height: auto;
    margin: 10px 10px 10px 10px;
}

.service-item p {
    font-size: 16px;
    margin: 4px 15px;
    color: #333;
    font-weight: bold;
    text-align: center;
	font-family: 'Cairo';
}

.service-item button {
    margin: 15px auto; /* Center the button horizontally */
    padding: 10px 20px;
    background-color: #b58b4c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    width: 90%;
    position: relative;
    bottom: 0;
    align-self: center;
}

.service-item button:hover {
    background-color: #925f23;
    color: #fff;
}

.service-item a {
    text-decoration: none;
    color: inherit;
	font-family: 'Cairo';
}

/* Responsive Styles */
@media (max-width: 768px) {
    .service-item {
        width: 100%; /* Cards take full width on tablets */
    }

    .services-archive h1 {
        font-size: 20px; /* Adjust heading size */
    }

    .service-item p {
        font-size: 14px; /* Reduce text size for smaller screens */
    }
}

@media (max-width: 480px) {
    .service-item {
        width: 100%; /* Full-width on smaller devices */
    }

    .service-item button {
        font-size: 12px; /* Smaller button text for mobile */
        padding: 8px 15px;
    }

    .services-archive h1 {
        font-size: 18px; /* Smaller heading for mobile */
    }
}
