/* Services Section */
.all-services {
    padding: 50px 5%;
    text-align: center;
    background-color: #fff;
}

/* Section Heading */
.all-services h2 {
    font-family: "IBM Plex Sans", serif;
    font-weight: bold;
    font-size: 2rem;
}

/* Service Grid Layout */
.service-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates three equal columns */
    gap: 20px; 
}

/* Remove default link styling */
.service-details a {
    text-decoration: none;
}

/* Individual Service Card */
.service {
    position: relative;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
}

/* Service Title */
.service h3 {
    font-size: 1.5rem;
    margin: 15px 0 10px;
}

/* Service Description */
.service p {
    font-size: 0.9rem;
    color: #C59D5F;
    margin: 0 10px;
    text-align: left;
}

.image-container {
    position: relative;
    display: inline-block; /* Ensures container size matches the image */
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Overlay button for clickable action */
.click-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.click-overlay:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Ensures entire link area is clickable */
.clickable-area {
    display: inline-block;
    text-decoration: none;
}

.image-container:hover img {
    filter: brightness(80%);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.click-overlay:hover {
    background: rgba(255, 215, 0, 0.9); /* Gold color on hover */
    color: black;
}

/* Initially hides overlay; appears on hover */
.click-overlay {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.image-container:hover .click-overlay {
    opacity: 1;
}

/* Mobile View (Max 768px) */
@media (max-width: 768px) {
    .service-row {
        grid-template-columns: 1fr; /* Single column for smaller screens */
    }
    .service {
        margin-bottom: 30px;
    }
    .click-overlay {
        opacity: 1; /* Always visible on mobile */
        color: #000;
        background: rgba(255, 215, 0, 0.9);
    }
}