/* GRID LAYOUT */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* MAIN CARD */
.service-card {
    position: relative;           /* REQUIRED */
    height: 330px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    overflow: hidden;             /* KEEP CONTENT INSIDE */
    cursor: pointer;
    transition: 0.3s ease;
    z-index: 1;
}

/* OVERLAY */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    transition: 0.3s ease;
    z-index: 2;
}

/* NORMAL CONTENT (BOTTOM BOX) */
.service-normal {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    padding: 15px 18px;
    border-radius: 8px;
    text-align: center;

    background: rgba(0,0,0,0.40);
    z-index: 3;

    transition: 0.3s ease;
}

.service-normal h3 {
    color: #fff;
    font-size: 22px;
    margin: 0 0 5px;
    font-weight: 700;
}

.service-normal p {
    color: #fff;
    margin: 0;
    font-size: 15px;
}

/* HOVER CONTENT — CENTERED PERFECTLY */
.service-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;                 /* CENTER FIX */
    justify-content: center;       /* CENTER Y */
    align-items: center;           /* CENTER X */
    flex-direction: column;
    gap: 12px;

    background: rgba(0,0,0,0.65);
    opacity: 0;
    pointer-events: none;

    z-index: 4;                    /* ABOVE OVERLAY + NORMAL BOX */
    transition: 0.3s ease;
}

.service-hover a {
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
}

.service-hover a:hover {
    color: #D9992F;
}

/* SHOW HOVER VIEW */
.service-card:hover .service-hover {
    opacity: 1;
    pointer-events: auto;
}

/* HIDE NORMAL ON HOVER */
.service-card:hover .service-normal {
    opacity: 0;
}
