/* Updated Team Section Styles with Light Orange Theme */

/* Define brand colors using your website's orange theme */
:root {
    --primary-orange: #ff7a59;
    --light-orange: #fff9f5;
    --hover-orange: #ff8f73;
}

/* Team Section Styles */
.team-card .card-text {
    max-height: 4.5em;  /* Approximately 3 lines of text */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;  /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 122, 89, 0.15);
    background-color: var(--light-orange);
}

.team-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.team-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.7s ease;
    filter: grayscale(20%);
}

.team-card:hover .team-img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

.team-social-icons {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 15px 0;
    background: linear-gradient(to top, rgba(255, 122, 89, 0.8), transparent);
    transition: all 0.3s ease;
    opacity: 0;
}

.team-card:hover .team-social-icons {
    bottom: 0;
    opacity: 1;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-orange);
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.team-card:hover .social-icon {
    transform: translateY(0);
    opacity: 1;
}

.team-card:hover .social-icon:nth-child(1) { transition-delay: 0.1s; }
.team-card:hover .social-icon:nth-child(2) { transition-delay: 0.15s; }
.team-card:hover .social-icon:nth-child(3) { transition-delay: 0.2s; }
.team-card:hover .social-icon:nth-child(4) { transition-delay: 0.25s; }

.social-icon:hover {
    background-color: var(--primary-orange);
    color: white;
    transform: translateY(-3px);
}

.team-card .card-body {
    padding: 1.8rem 1.2rem;
    transition: background-color 0.3s ease;
}

.team-card:hover .card-body {
    background-color: var(--light-orange);
}

.team-card .card-title {
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.team-card:hover .card-title {
    color: var(--primary-orange);
}

.text-primary-orange {
    color: var(--primary-orange);
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .team-img {
        height: 280px;
    }
}

@media (max-width: 767px) {
    .team-img {
        height: 250px;
    }
    
    .team-social-icons {
        bottom: 0;
        opacity: 1;
        background: linear-gradient(to top, rgba(255, 122, 89, 0.7), transparent);
    }
    
    .social-icon {
        transform: translateY(0);
        opacity: 1;
        width: 32px;
        height: 32px;
    }
}



/* Tools Carousel - Fixed CSS */

/* Main carousel wrapper */
.tools-carousel-wrapper {
    position: relative;
    margin: 0 auto;
    padding: 0 50px; /* Space for arrows */
}

/* Carousel container */
.tools-carousel-container {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

/* Carousel track */
.tools-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

/* Carousel items */
.tools-carousel-item {
    flex: 0 0 auto;
    padding: 0 10px;
}

/* Navigation arrows */
.tools-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
}

.tools-carousel-arrow:hover {
    background-color: var(--primary-color, #ff7a59);
    color: white;
}

.tools-carousel-prev {
    left: 0;
}

.tools-carousel-next {
    right: 0;
}

.tools-carousel-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Indicators/dots */
.tools-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.tools-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tools-indicator.active {
    background-color: var(--primary-color, #ff7a59);
    transform: scale(1.2);
}

/* Preserve your existing card styles */
.featured-tool-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.featured-tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .tools-carousel-wrapper {
        padding: 0 40px;
    }
}

@media (max-width: 575px) {
    .tools-carousel-wrapper {
        padding: 0 30px;
    }
    
    .tools-carousel-arrow {
        width: 35px;
        height: 35px;
    }
}