/* =========================================================
   THE ENGINEERS GROUP
   HOME CATEGORY SECTION
   ========================================================= */

.categories-section {
    padding: 85px 0;
    background: #f8f9fc;
    overflow: hidden;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.categories-section .section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.categories-section .section-heading span {
    display: inline-block;

    margin-bottom: 12px;
    padding: 7px 16px;

    background: #fff7df;
    color: #b88600;

    border-radius: 30px;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.categories-section .section-heading h2 {
    margin: 0 0 12px;

    color: #0d2d73;

    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;
}

.categories-section .section-heading p {
    margin: 0;

    color: #6b7280;

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   CATEGORY GRID
   ========================================================= */

.categories-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 25px;

    width: 100%;
}


/* =========================================================
   CATEGORY CARD
   ========================================================= */

.category-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    background: #ffffff;

    border: 1px solid #e8edf5;
    border-radius: 20px;

    overflow: hidden;

    text-decoration: none;

    box-shadow: 0 12px 35px rgba(13, 45, 115, 0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


/* TOP GOLD LINE */

.category-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: #d4a017;

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.35s ease;

    z-index: 5;
}


/* HOVER */

.category-card:hover {
    transform: translateY(-8px);

    border-color: #d4a017;

    box-shadow: 0 22px 50px rgba(13, 45, 115, 0.14);
}

.category-card:hover::before {
    transform: scaleX(1);
}


/* =========================================================
   CATEGORY IMAGE
   ========================================================= */

.category-image {
    position: relative;

    width: 100%;
    height: 220px;

    background: #ffffff;

    overflow: hidden;
}


/* IMAGE */
.category-image img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: contain;
    object-position: center;

    background: #f5f7fb;

    transition: transform 0.5s ease;
}

/* IMAGE HOVER */

.category-card:hover .category-image img {
    transform: scale(1.06);
}


/* IMAGE OVERLAY */

.category-image::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 45%;

    background: linear-gradient(
        to top,
        rgba(13, 45, 115, 0.22),
        transparent
    );

    pointer-events: none;
}


/* =========================================================
   PLACEHOLDER
   ========================================================= */

.category-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #0d2d73,
        #1747b8
    );

    color: #d4a017;

    font-size: 55px;
}


/* =========================================================
   CATEGORY CONTENT
   ========================================================= */

.category-content {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* TITLE */

.category-content h3 {
    margin: 0 0 7px;

    color: #0d2d73;

    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
}

/* COUNT */

.category-content p {
    margin: 0;

    color: #777f8e;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   EXPLORE LINK
   ========================================================= */

.category-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 18px;

    color: #b88600;

    font-size: 14px;
    font-weight: 800;

    transition:
        color 0.3s ease,
        gap 0.3s ease;
}

.category-explore i {
    font-size: 12px;
}

.category-card:hover .category-explore {
    color: #0d2d73;
    gap: 12px;
}

.category-explore i {
    font-size: 12px;
}

.category-card:hover .category-explore {
    color: #0d2d73;

    gap: 12px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 22px;
    }

    .category-image {
    width: 100%;
    height: 205px;
    background: #f5f7fb;
    overflow: hidden;
}
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .categories-section {
        padding: 60px 0;
    }

    .categories-section .section-heading {
        margin-bottom: 30px;

        padding: 0 15px;
    }

    .categories-section .section-heading span {
        font-size: 11px;

        padding: 6px 12px;

        letter-spacing: 1.2px;
    }

    .categories-section .section-heading h2 {
        font-size: 30px;
    }

    .categories-section .section-heading p {
        font-size: 14px;
    }


    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;

        padding: 0 10px;
    }


    .category-card {
        border-radius: 15px;
    }


    .category-image {
    width: 100%;
    height: 205px;
    background: #f5f7fb;
    overflow: hidden;
}

    .category-content {
        padding: 14px 13px 16px;
    }


    .category-content h3 {
        font-size: 16px;

        line-height: 1.35;

        margin-bottom: 6px;
    }


    .category-content p {
        font-size: 12px;
    }


    .category-explore {
        margin-top: 12px;

        font-size: 11px;

        gap: 5px;
    }


    .category-explore i {
        font-size: 9px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .categories-section {
        padding: 50px 0;
    }

    .categories-section .section-heading h2 {
        font-size: 27px;
    }

    .categories-grid {
        gap: 9px;

        padding: 0 8px;
    }

    .category-image {
    width: 100%;
    height: 205px;
    background: #f5f7fb;
    overflow: hidden;
}
    .category-content {
        padding: 12px 10px 14px;
    }

    .category-content h3 {
        font-size: 14px;
    }

    .category-content p {
        font-size: 11px;
    }

    .category-explore {
        font-size: 10px;
    }

}