.services-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: url('../img/makkah-mosque.jpg') no-repeat center center / cover;
    z-index: 0;
    /* base layer */
}

/* Soft black overlay BEHIND content */
.services-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    /* Adjust 0.45 = opacity */
    z-index: 0;
    /* keep behind content */
}

/* Ensure all inner content stays above */
.services-section .container {
    position: relative;
    z-index: 1;
}

@keyframes floatPattern {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-25px, -20px) scale(1.03);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* ---------- Heading ---------- */
.services-section .section-heading {
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    z-index: 2;
    border-radius: 50px;
    padding: 8px 24px;
    transition: all 0.4s ease;
    text-align: center;
    background: #fff;
    color: #0e8a72;
    box-shadow: #0e8a72 0px 4px 10px rgba(14, 138, 114, 0.2);
}

.services-section .section-heading:hover {
    background: #0e8a72;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

.services-section .container {
    text-align: center;
}

/* ---------- Service Box ---------- */
.service-box {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 45px 30px;
    border-bottom: 15px solid #0e8a72;
    box-shadow: 0 28px 24px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    z-index: 1;
    overflow: hidden;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-box * {
    position: relative;
    z-index: 1;
}

/* .service-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, #0e8a72, #ffd66b);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
    opacity: 0;
    transition: opacity 0.4s ease;
} */
.service-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    /* background: linear-gradient(135deg, #0e8a72, #ffd66b); */
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}
.service-box:hover::before {
    opacity: 1;
}

/* Hover animation */
.service-box:hover {
    background: #0e8a72;
    color: #fff;
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(14, 138, 114, 0.25);
    border-bottom: 15px solid #fff;
}

/* ---------- Icons ---------- */
.service-box .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 15px rgba(14, 138, 114, 0.25);
}

/* .service-box:hover .icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(14, 138, 114, 0.35);
} */
.service-box:hover .icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
}
.service-box .umrah {
    background-image: url('../img/umrah-service.jpg');
    background-size: cover;
    background-position: center;
}

.service-box .hajj {
    background-image: url('../img/hajj-service.jpg');
    background-size: cover;
    background-position: center;
}

.service-box .hotels-transport {
    background-image: url('../img/hotel-transport-service.jpg');
    background-size: cover;
    background-position: center;
}

/* ---------- Titles & Text ---------- */
.service-box h5 {
    font-weight: 600;
    color: #0e8a72;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.service-box:hover h5,
.service-box:hover p {
    color: #fff;
}

.service-box p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.services-section .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.services-section .col-md-4 {
    display: flex;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .services-section {
        padding: 70px 0;
    }

    .service-box {
        margin-bottom: 30px;
    }
}