/* Custom CSS for Services Section Modification */

.features-item {
    position: relative;
    overflow: hidden;
    isolation: isolate; /* Create a new stacking context */
    border: none !important; /* Remove default border if any */
}

.features-item-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.7; /* Default opacity as requested */
    z-index: -2;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

/* Hover effect for background image */
.features-item:hover .features-item-bg {
    transform: scale(1.1);
    opacity: 0.8;
}

.features-item-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%; /* Gradient height */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
}

/* Light mode adjustments */
html:not(.dark) .features-item-gradient {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
}

.features-item .title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    margin: 0;
    z-index: 1;
    color: white; /* Default text color for dark mode/dark gradient */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Light mode text color */
html:not(.dark) .features-item .title {
    color: #1a1a1a; /* Dark text for light mode */
    text-shadow: none;
}

/* Remove the icon box styles if they interfere, though we are removing the HTML element */
