.tools__section {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: visible;
}

.tools {
    width: 100%;
    margin-bottom: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tools__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.tools__shapes {
    position: absolute;
    width: 100vw;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: -1;
}

.tools__shape {
    position: absolute;
    opacity: 0.6;
    max-width: 100%;
}

.tools__shape--1 {
    top: 200px;
    left: -350px;
    width: 800px;
    height: auto;
}

.tools__shape--2 {
    top: 600px;
    right: -380px;
    width: 850px;
    height: auto;
}

.tools__description {
    margin-bottom: 40px;
    position: relative;
}

.tools__description p {
    margin: 0;
}

.tools__description p:first-child {
    margin-bottom: 10px;
}

.tools__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    width: 100%;
    margin: 0 auto;
}

.tools__card {

    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    text-decoration: none;
}

/* Position cards in hexagonal grid */
.tools__card:nth-child(1) { grid-column: 2 / span 1; grid-row: 1; }
.tools__card:nth-child(2) { grid-column: 4 / span 1; grid-row: 1; }
.tools__card:nth-child(3) { grid-column: 1 / span 1; grid-row: 2; }
.tools__card:nth-child(4) { grid-column: 3 / span 1; grid-row: 2; }
.tools__card:nth-child(5) { grid-column: 5 / span 1; grid-row: 2; }

.tools__card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 132, 115, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.tools__card-icon i {
    font-size: 24px;
    color: #FF8473;
}

.tools__card-title {
    margin: 10px 0;
    font-size: 16px;
    color: #141414;
    font-weight: 600;
}

.tools__card-description {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.tools__card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Add hover glow effect */
.tools__card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FF8473, #FFE588);
    opacity: 0;
    transition: opacity 0.3s ease;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    z-index: -1;
}

.tools__card:hover::after {
    opacity: 0.1;
}

@media (max-width: 992px) {
    .tools__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .tools__card:nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }
    .tools__card:nth-child(2) { grid-column: 3 / span 2; grid-row: 1; }
    .tools__card:nth-child(3) { grid-column: 2 / span 2; grid-row: 2; }
    .tools__card:nth-child(4) { grid-column: 1 / span 2; grid-row: 3; }
    .tools__card:nth-child(5) { grid-column: 3 / span 2; grid-row: 3; }

    .tools__description p {
        margin-bottom: 5px;
    }

    .tools__shape--1 {
        width: 700px;
        top: 150px;
        left: -300px;
    }

    .tools__shape--2 {
        width: 850px;
        top: 1050px;
        right: -320px;
    }

    /* Fix line break behavior on smaller screens */
    .mil-tac.mil-lh-150 br {
        display: none;
    }
    .mil-tac.mil-lh-150 {
        white-space: normal;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .tools__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tools__card {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .tools__shape--1 {
        width: 700px;
        top: 200px;
        left: -200px;
    }

    .tools__shape--2 {
        width: 1050px;
        top: 1550px;
        right: -200px;
    }
}

.mil-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    width: 100%;
}
