body {
    padding: 0;
    margin: 0;
    font-family: "poppins";
}

h1, h2, h3, h4, h5, h6 {
    font-family: "outfit"
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    background-color: #001c55;
    color: #fff;
}

.hero-section h1 {
    text-align: center;
    font-size: 32px;
    margin-top: 80px;
}

.hero-section p {
    text-align: center;
    
}

/* HERO BUTTONS */

.hero-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: -10px;
}

.hero-section a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background-color: #0e6ba8;
    color: #fff;
    padding: 0px 20px;
    border-radius: 4px;
    font-size: 14px;
}

.hero-section .btn-secondry-0 {
    background-color: transparent;
    color: #fff;
    border: 1px solid #ccc;
    margin-left: 20px;
}


.hero-btns .add {
    background-color: #0e6ba8;
    color: #fff;
    margin-left: 10px;
    font-size: 12px;
    border-radius: 50%;
    display: flex;
    justify-content:  center;
    align-items: center;
    width: 20px;
    height: 20px;

}

/* FILTER SECTION */
.filter-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-width: 800px;
    padding: 25px;
    background-color: #0e6ba8;
    border-radius: 8px;
    margin-top: 30px;

}

.filter-section select {
    background-color: #fff;
    outline: none;
    /* color: #fff; */
    padding: 5px;
    border: none;
    border-radius: 2px;
    font-family: "poppins";
    font-weight: 500;
    cursor: pointer;
}

.filter-section button {
    background-color: #001c55;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 2px;
    cursor: pointer;
    font-family: "poppins";
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 40px 20px;
    }

    .hero-section h1 {
        font-size: 28px;
        margin-top: 50px;
    }

    /* .hero-btns {
        flex-direction: column;
        gap: 10px;
        max-width: 100%;
    } */

    .filter-section {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .filter-section select,
    .filter-section button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 24px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 8px;
    }

    .filter-section {
        padding: 15px;
    }
}

/* CATEGORY */
.category-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.category {
    background-color: #001c55;
    color: #fff;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 4px;
    text-align: center;
}

.category-container .category p {
    font-size: 12px;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
    .category-container {
        gap: 10px; /* Reduces gap for better fit on tablets */
    }

    .category {
        padding: 5px 15px; /* Adjusts padding slightly */
    }
}

@media (max-width: 480px) {
    .category-container {
        flex-direction: column; /* Stacks categories on smaller screens */
        gap: 8px;
    }

    .category {
        width: 80%; /* Makes categories take most of the screen width */
        max-width: 250px;
        padding: 10px;
    }
}


/* TOOL SECTION START */
.tool-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 100px;
    justify-content: center;
    align-items: center;
    background: #f9f9f9;
}

/* TOOL BOX */
.tool-box {
    background: #ffffff;
    border-radius: 8px;
    height: 350px;
    border: 1px solid #ccc;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.08);
}

/* TOOL IMAGE */
.tool-box img {
    width: 300px;
    max-width: 100%;
    margin-bottom: 15px;
}

/* TOOL TITLE */
.tool-box h2 {
    font-size: 20px;
    color: #000;
    margin-bottom: 8px;
}

/* TOOL DESCRIPTION */
.tool-box p {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* BUTTONS CONTAINER */
.tool-box .buttons {
    display: flex;
    /* justify-content: center; */
    gap: 10px;
}

/* PRIMARY BUTTON */
.tool-box .buttons a {
    text-decoration: none;
    background-color: #001c55;
    color: #fff;
    padding: 7px 15px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.tool-box .buttons a:hover {
    background-color: #0a2472;
}

/* SECONDARY BUTTON */
.tool-box .buttons .btn-secondary {
    background: transparent;
    color: #001c55;
    border: 2px solid #001c55;
    transition: all 0.3s ease;
}

.tool-box .buttons .btn-secondary:hover {
    background: #001c55;
    color: #fff;
}

/* RESPONSIVENESS */
@media (max-width: 1024px) {
    .tool-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        padding: 80px 3%;
    }
}

@media (max-width: 768px) {
    .tool-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        padding: 50px;
    }
    
    .tool-box {
        padding: 30px;
    }

    .tool-box h2 {
        font-size: 18px;
    }

    .tool-box p {
        font-size: 14px;
    }

    .tool-box .buttons a {
        font-size: 14px;
        padding: 8px 14px;
    }
}

@media (max-width: 480px) {
    .tool-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        padding: 40px 10px;
    }

    .tool-box {
        padding: 12px;
    }

    .tool-box h2 {
        font-size: 16px;
    }

    .tool-box p {
        font-size: 13px;
    }

    .tool-box .buttons {
        flex-direction: column;
        gap: 5px;
    }

    .tool-box .buttons a {
        font-size: 13px;
        padding: 6px 12px;
    }
}