.tools-section {
    padding: 30px 0;
    max-width: 1400px;
    margin: 0 auto;
    width: calc(100% - 140px);
    margin-bottom: 70px;
}

.tools-header {
    text-align: center;
    margin-bottom: 50px;
}

.tools-header h2 {
    font-size: var(--ssbond-d-h2);
    font-weight: 600;
    margin-bottom: var(--ssbond-d-b1);
}

.tools-header p {
    font-size: var(--ssbond-m-desc1);
    color: var(--sf-gray);
    margin-bottom: var(--ssbond-d-b1);
}

.tools-cards {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 20px;
}

.tools-cards::-webkit-scrollbar {
    display: none;
}

.tools-card {
    flex: 0 0 calc(25% - 19px); /* 4 cards per view */
    min-width: 250px;
    background: var(--ssbond-whiteGray);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.tools-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.tools-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tools-card h3 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.tools-btn {
    padding: 8px 20px;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--ssbond-blue);
    font-size: var(--ssbond-d-desc2);
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* Default state */
    background: transparent;
    color: var(--ssbond-black);
}
/* Hover state */
.tools-btn:hover {
    background: var(--ssbond-primaryLinear);
    color: var(--ssbond-white);
    border-color: transparent;
}
/* Active/Clicked state */
.tools-btn:active,
.tools-btn.active {
    background: var(--ssbond-primaryLinear);
    color: var(--ssbond-white);
    border-color: transparent;
}

.tools-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.tools-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tools-dot.active {
    background: #007bff;
}

/* Responsive breakpoints matching products-section */
@media (max-width: 1400px) {
    .tools-section {
        width: calc(100% - 95px);
    }
}

@media (max-width: 1200px) {
    .tools-card {
        flex: 0 0 calc(33.333% - 17px); /* 3 cards per view */
    }
}

@media (max-width: 992px) {
    .tools-section {
        width: calc(100% - 40px);
        overflow: hidden;
    }
    
    .tools-cards {
        display: flex;
        flex-wrap: nowrap;
        gap: 25px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        cursor: grab;
        padding: 10px 0 20px;
        margin: -10px 10px 10px;
        /* Enable hardware acceleration */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: scroll-position;
    }

    .tools-card {
        flex: 0 0 300px;
        min-width: 300px;
        scroll-snap-align: center;
        user-select: none;
        -webkit-user-select: none;
    }

    .tools-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }

    .tools-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        padding: 0;
        background: rgba(0, 0, 0, 0.2);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .tools-dot.active {
        background: #06c;
        transform: scale(1);
    }

    .tools-dot:not(.active) {
        transform: scale(0.75);
        opacity: 0.5;
    }
}

@media (max-width: 576px) {
    .tools-section {
        width: calc(100% - 8px);
        margin-left: 5px;
    }
    
    .tools-card {
        flex: 0 0 250px;
        min-width: 250px;
    }
    .tools-header h2{
        font-size: var(--ssbond-m-h2);
        margin-top: var(--ssbond-space-t3);
    }
    .tools-header p{
        font-size: var(--ssbond-m-desc3);
    }
}