.features-section {
    background: #f8f0ff; /* Light purple background */
    position: relative;
    overflow: hidden;
    padding: 60px 0; /* Standard padding */
    margin-top: 0; /* Remove any top margin */
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,240,255,0.85) 100%);
    z-index: 1;
}

.features-section .container {
    position: relative;
    z-index: 2;
}

.main-heading {
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 3rem;
}

.main-heading .highlight {
    color: #f7a442;
    position: relative;
}

.main-heading .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f7a442;
}

/* Add row spacing control */
.feature-cards {
    margin: 0 -15px; /* Negative margin to counter container padding */
}

.feature-cards .col-lg-3 {
    padding: 15px; /* Equal padding around cards */
}

/* Update card width and spacing */
.feature-cards .col-lg-4 {
    width: 30%; /* Decrease from 33.33% */
    padding: 15px;
}
.feature-cards .col-lg-4, 
.feature-cards .col-md-6 {
    display: flex;
    padding: 15px; /* Equal padding around cards */
}


/* Update base feature card styles */
.feature-card {
    background: white;
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%; /* Slightly reduced height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #f7a442;
    opacity: 1;
    width: 100%; /* Ensure cards take full width of column */
    max-width: 350px; /* Add maximum width */
    margin: 0 auto; /* Center the card */
}
.rental-line {
    font-size: 1.2rem;
    color: #555;
    font-weight: 500;
}


/* Remove duplicate media queries and consolidate animations */
@media (min-width: 769px) {
    .feature-card {
        transform: translateX(100px);
    }

    .feature-card.aos-animate {
        opacity: 1;
        transform: translateX(0);
    }

    .feature-card:hover {
        transform: translateY(-10px);
        border-color: #ffd700;
        box-shadow: 0 15px 35px rgba(247, 164, 66, 0.2);
    }

    .feature-cards .col-lg-3 {
        width: 25%; /* Force 4 columns on desktop */
        flex: 0 0 25%;
    }
}

@media (max-width: 992px) {
    .feature-cards .col-lg-4 {
        width: 45%; /* Two cards per row on medium screens */
    }
}

@media (max-width: 768px) {
    .main-heading {
        font-size: 2rem;
    }

    .feature-card {
        height: auto;
        min-height: 250px;
        transform: translateY(50px);
        max-width: 300px; /* Smaller max-width on mobile */
    }

    .feature-card.aos-animate {
        opacity: 1;
        transform: translateY(0);
    }

    .features-section {
        padding: 40px 0; /* Slightly less padding on mobile */
    }

    [data-aos="fade-right"] {
        transform: translateY(50px) !important;
    }

    .feature-card.aos-animate {
        transform: translateY(0) !important;
    }

    .feature-cards {
        margin: 0 -10px; /* Smaller negative margin on mobile */
    }

    .feature-cards .col-lg-3 {
        padding: 10px; /* Smaller padding on mobile */
    }

    .features-container {
        padding: 10px;
    }
    .feature-cards .col-md-6 {
        width: 100%;
        flex: 0 0 100%;
        padding: 10px; /* Smaller padding on mobile */
  }
}

.features-container {
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
}

.icon-wrapper {
    width: 80px; /* Fixed width */
    height: 80px; /* Fixed height */
    background: linear-gradient(135deg, #f7a442 0%, #ffd700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px; /* Reduced from 25px */
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(247, 164, 66, 0.2);
    position: relative;
    overflow: hidden;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    border-radius: 50%;
}

.icon-wrapper i {
    font-size: 32px; /* Fixed icon size */
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    line-height: 1; /* Ensure consistent height */
    display: flex; /* Center icon perfectly */
    align-items: center;
    justify-content: center;
    width: 40px; /* Fixed width */
    height: 40px; /* Fixed height */
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(247, 164, 66, 0.3);
}

.feature-card:hover .icon-wrapper i {
    transform: scale(1.1);
    color: #fff;
}

/* Custom icon colors for each card */
.feature-card:nth-child(1) .icon-wrapper {
    background: linear-gradient(135deg, #f7a442 0%, #ffd700 100%);
}

.feature-card:nth-child(2) .icon-wrapper {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.feature-card:nth-child(3) .icon-wrapper {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.feature-card:nth-child(4) .icon-wrapper {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.icon-container {
    padding: 5px;
    margin-bottom: 0px; /* Reduced from 15px */
}

.content-container {
    padding:0px 15px 10px; /* Reduced bottom padding from 20px */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.content-container h3 {
    margin-bottom: 5px; /* Reduced from 15px */
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.content-container p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}