/*==================================================
    CATEGORIES
==================================================*/

.categories{

    padding:8px 0 60px;

    background:#ffffff;

}

/*==================================================
    SECTION HEADING
==================================================*/

.section-heading{

    display:flex;

    align-items:center;

    gap:18px;

    margin-bottom:30px;

}

.section-heading__title{

    flex-shrink:0;

    margin:0;

    color:#082C6C;

    font-size:20px;

    font-weight:800;

    text-transform:uppercase;

    letter-spacing:1px;

    line-height:1.2;

}

.section-heading__line{

    flex:1;

    height:2px;

    background:#e6e6e6;

    position:relative;

}

.section-heading__line::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:70px;

    height:2px;

    background:#F5B51D;

}

/*==================================================
    GRID
==================================================*/

.categories__grid{

    display:grid;

    grid-template-columns:repeat(8,1fr);

    gap:16px;

}

/*==================================================
    CATEGORY CARD
==================================================*/

.category-card{

    position:relative;

    display:block;

    aspect-ratio:1 / 1;

    overflow:hidden;

    border-radius:10px;

    text-decoration:none;

    background:#f5f5f5;

    box-shadow:0 8px 18px rgba(0,0,0,.08);

    transition:.3s ease;

}

.category-card:hover{

    transform:translateY(-4px);

    box-shadow:0 12px 28px rgba(0,0,0,.12);

}

/*==================================================
    IMAGE
==================================================*/

.category-card img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:transform .5s ease;

}

.category-card:hover img{

    transform:scale(1.08);

}

/*==================================================
    CATEGORY NAME
==================================================*/

.category-card span{

    position:absolute;

    left:0;

    right:0;

    bottom:0;

    padding:12px 10px;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.75),
        rgba(0,0,0,.15),
        transparent
    );

    color:#ffffff;

    font-size:15px;

    font-weight:700;

    text-align:center;

}

/*==================================================
    VIEW ALL CATEGORY
==================================================*/

.category-card--all{

    display:flex;

    justify-content:center;

    align-items:center;

    background:linear-gradient(
        135deg,
        #082C6C,
        #0B57B7
    );

}

.category-card__all{

    text-align:center;

    color:#ffffff;

}

.category-card__all i{

    font-size:34px;

    color:#F5B51D;

    margin-bottom:14px;

    transition:.3s;

}

.category-card__all h3{

    margin:0;

    font-size:17px;

    font-weight:700;

    line-height:1.4;

}

.category-card--all:hover{

    background:linear-gradient(
        135deg,
        #F5B51D,
        #F0A800
    );

}

.category-card--all:hover i,

.category-card--all:hover h3{

    color:#082C6C;

}
/*==================================================
    RESPONSIVE
==================================================*/

@media (max-width:1200px){

    .categories{

        padding:8px 0 50px;

    }

    .categories__grid{

        grid-template-columns:repeat(4,1fr);

        gap:14px;

    }

}


/*==================================================
    TABLET
==================================================*/

@media (max-width:992px){

    .categories{

        padding:8px 0 45px;

    }

    .section-heading{

        gap:15px;

        margin-bottom:24px;

    }

    .section-heading__title{

        font-size:18px;

    }

    .categories__grid{

        gap:14px;

    }

    .category-card span{

        padding:10px 8px;

        font-size:14px;

    }

}


/*==================================================
    SMALL TABLET
==================================================*/

@media (max-width:768px){

    .categories{

        padding:5px 0 40px;

    }

    .section-heading{

        gap:12px;

        margin-bottom:20px;

    }

    .section-heading__title{

        font-size:17px;

        letter-spacing:.7px;

    }

    .section-heading__line::before{

        width:55px;

    }

    .categories__grid{

        grid-template-columns:repeat(2,1fr);

        gap:14px;

    }

    .category-card span{

        padding:11px 8px;

        font-size:14px;

    }

}


/*==================================================
    MOBILE
==================================================*/

@media (max-width:576px){

    .categories{

        padding:5px 0 35px;

    }

    .section-heading{

        gap:10px;

        margin-bottom:18px;

    }

    .section-heading__title{

        font-size:15px;

        letter-spacing:.5px;

    }

    .section-heading__line::before{

        width:45px;

    }

    .categories__grid{

        gap:12px;

    }

    .category-card{

        border-radius:8px;

    }

    .category-card span{

        padding:9px 7px;

        font-size:13px;

    }

    .category-card__all i{

        font-size:28px;

        margin-bottom:10px;

    }

    .category-card__all h3{

        font-size:15px;

    }

}


/*==================================================
    SMALL MOBILE
==================================================*/

@media (max-width:400px){

    .categories{

        padding:5px 0 30px;

    }

    .categories__grid{

        gap:10px;

    }

    .category-card{

        border-radius:7px;

    }

    .category-card span{

        padding:8px 6px;

        font-size:12px;

    }

    .category-card__all i{

        font-size:25px;

        margin-bottom:8px;

    }

    .category-card__all h3{

        font-size:14px;

    }

}