/* --- Why Us Section Styles --- */
.why-us-section {
    padding: 6rem 1rem;
    background-color: #f7f7f7;
    text-align: center;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #5d4037;
    margin-bottom: 3rem;
    position: relative;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #38a169;
    border-radius: 2px;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next row */
    justify-content: center;
    gap: 1.5rem;
}

.feature-item {
    flex: 1 1 200px; /* Base width for items on large screens */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

/* .feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
} */

.icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #ffcc80;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

/*.feature-item:hover .icon-circle {*/
/*    transform: scale(1.5);*/
/*    border-color: #ff9800;*/
/*}*/

.icon-circle img {
    width: 90%;
    height: 100%;
    object-fit: cover;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5d4037;
    margin-top: 1.5rem;
    line-height: 1.4;
    text-align: center;
}

/* --- Tooltip Styling for Big Screens --- */
@media (min-width: 1300px) {
    .feature-grid {
        flex-wrap: nowrap; /* All items in one row on big screens */
    }

    .feature-item {
        flex: 1 1 0;
        min-height: 250px;
    }

    .tooltip-content {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        bottom: -2.5rem;
        left: 50%;
        transform: translateX(-50%);
        padding: 1rem;
        background-color: #333;
        color: #fff;
        border-radius: 8px;
        z-index: 10;
        width: 120%;
        max-width: 300px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }

    .tooltip-content::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
        width: 20px;
        height: 20px;
        background-color: #333;
    }

    .feature-item:hover .tooltip-content {
        visibility: visible;
        opacity: 1;
        bottom: -3rem;
    }
}

/* --- Tablet Layout (Two per row) --- */
@media (min-width: 481px) and (max-width: 768px) {
    .feature-item {
        flex: 1 1 40%;
    }
}

/* --- Mobile Layout (One per row) --- */
@media (max-width: 480px) {
    .feature-grid {
        gap: 1.5rem;
    }

    .feature-item {
        flex: 1 1 100%; /* Full width cards on mobile */
        min-height: auto;
    }
    
    .tooltip-content {
        position: static;
        width: auto;
        padding: 0;
        margin-top: 1rem;
        background: none;
        color: #555;
        box-shadow: none;
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .tooltip-content::before {
        display: none;
    }
}