/* team-benefits.css */

.team-benefits {
    text-align: center;
    padding: 2em;
   border-width: 3px;
   border-color: #3D52A0;
   border-style: solid;
    max-width: 900px;
    margin: 200px auto; /* Center the container */
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}



.team-benefits-title {
    font-size: 1.8em;
    color: #3D52A0; /* Primary theme color */
    margin-bottom: 1.5em;
}

.team-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
    gap: 1.5em;
    padding: 1em;
}

.team-benefit-item {
    padding: 1em;
    border: 1px solid #ADBBDA; /* Subtle border with theme color */
    border-radius: 8px;
    background-color: #FFF;
    transition: transform 0.3s;
    opacity: 1; /* Ensure opacity is set to 1 for visibility */
    animation: fadeIn 0.5s forwards; /* Add fade-in animation */
   
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.team-benefit-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}

.team-benefit-item .icon img {
    width: 40px;
    height: 40px;
    margin-bottom: 1em;
   
}

.team-benefit-item p {
    margin-top:10px;
    color: #3D52A0;
    font-size: 0.8em;
    line-height: 1.4;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-benefits {
        padding: 1.5em; /* Reduce padding on smaller screens */
        margin: 100px auto; /* Reduce margin for mobile */
    }

    .team-benefits-title {
        font-size: 1.5em; /* Slightly smaller title font size */
        margin-bottom: 1em; /* Reduce margin for the title */
    }

    .team-benefit-item {
        padding: 0.8em; /* Reduce padding in benefit items */
    }

    .team-benefit-item p {
        font-size: 0.85em; /* Adjust font size for descriptions */
    }
}

@media (max-width: 480px) {
    .team-benefits {
        padding: 1em; /* Further reduce padding */
        margin: 50px auto; /* Adjust margin for mobile */
    }

    .team-benefits-title {
        font-size: 1.2em; /* Smaller title font size */
    }

    .team-benefit-item {
        padding: 0.5em; /* Further reduce padding in benefit items */
    }

    .team-benefit-item p {
        font-size: 0.8em; /* Adjust font size for smaller screens */
    }
}
