﻿/*=====================================================
    CATEGORY HERO
======================================================*/

.category-banner {
    margin: 12px 0;
}

/*=====================================================
    CARD
======================================================*/

.hero-category {
    position: relative;
    overflow: hidden;
    height: 100%;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 8px 24px rgba(0,0,0,.05), 0 18px 45px rgba(0,0,0,.05);
    transition: .3s ease;
}

    .hero-category:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 32px rgba(0,0,0,.08), 0 24px 55px rgba(0,0,0,.08);
    }

    .hero-category::before {
        content: "";
        position: absolute;
        left: -80px;
        bottom: -90px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: radial-gradient(circle,rgba(72,150,255,.08),transparent 70%);
    }

    .hero-category::after {
        content: "";
        position: absolute;
        top: -30px;
        right: -30px;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: radial-gradient(circle,rgba(255,255,255,.6),transparent 70%);
    }

/*=====================================================
    CONTENT
======================================================*/

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 360px;
    height: 100%;
}

/*=====================================================
    IMAGE
======================================================*/

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 190px;
    margin-bottom: 18px;
}

    .hero-image a {
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        position: relative;
        z-index: 2;
    }

.hero-blob {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 45% 55% 52% 48% / 46% 42% 58% 54%;
    background: linear-gradient(145deg,#edf7ff,#d7eafc);
    box-shadow: inset 0 4px 18px rgba(255,255,255,.9), 0 12px 30px rgba(80,130,180,.12);
}

.hero-image img {
    width: 165px;
    height: 165px;
    object-fit: contain;
    transition: .3s;
    filter: drop-shadow(0 12px 20px rgba(0,0,0,.15));
}

.hero-category:hover .hero-image img {
    transform: scale(1.08);
}

/*=====================================================
    TITLE
======================================================*/

.hero-title {
    display: block;
    text-decoration: none;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #19344d;
    margin-bottom: 20px;
    transition: .25s;
}

    .hero-title:hover {
        color: #0066cc;
    }

/*=====================================================
    SUB CATEGORIES
======================================================*/

.hero-children {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    width: 100%;
    margin-top: auto;
}

.hero-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    padding: 12px 8px;
    min-height: 92px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #edf1f5;
    transition: .25s;
}

    .hero-child:hover {
        transform: translateY(-3px);
        border-color: #b9d8ff;
        background: #f8fbff;
        box-shadow: 0 8px 18px rgba(0,0,0,.06);
    }

    .hero-child img {
        width: 40px;
        height: 40px;
        object-fit: contain;
        margin-bottom: 8px;
    }

    .hero-child span {
        display: block;
        font-size: 13px;
        font-weight: 700;
        color: #444;
        line-height: 1.45;
    }

/*=====================================================
    LARGE DESKTOP
======================================================*/

@media (max-width:1399px) {

    .hero-children {
        grid-template-columns: repeat(4,1fr);
    }
}

/*=====================================================
    TABLET
======================================================*/

@media (max-width:991px) {

    .hero-inner {
        min-height: 340px;
    }

    .hero-image {
        min-height: 170px;
    }

        .hero-image img {
            width: 145px;
            height: 145px;
        }

    .hero-blob {
        width: 170px;
        height: 170px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-children {
        grid-template-columns: repeat(3,1fr);
        gap: 10px;
    }
}

/*=====================================================
    MOBILE
======================================================*/

@media (max-width:767px) {

    .hero-category {
        padding: 15px;
        border-radius: 18px;
    }

    .hero-inner {
        min-height: 300px;
    }

    .hero-image {
        min-height: 145px;
        margin-bottom: 14px;
    }

        .hero-image img {
            width: 125px;
            height: 125px;
        }

    .hero-blob {
        width: 145px;
        height: 145px;
    }

    .hero-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .hero-children {
        grid-template-columns: repeat(2,1fr);
        gap: 8px;
    }

    .hero-child {
        min-height: 82px;
        padding: 10px 6px;
    }

        .hero-child img {
            width: 34px;
            height: 34px;
            margin-bottom: 6px;
        }

        .hero-child span {
            font-size: 12px;
        }
}

/*=====================================================
    SMALL MOBILE
======================================================*/

@media (max-width:480px) {

    .hero-inner {
        min-height: 280px;
    }

    .hero-image {
        min-height: 130px;
    }

        .hero-image img {
            width: 110px;
            height: 110px;
        }

    .hero-blob {
        width: 130px;
        height: 130px;
    }

    .hero-title {
        font-size: 17px;
    }

    .hero-child {
        min-height: 76px;
    }

        .hero-child img {
            width: 30px;
            height: 30px;
        }

        .hero-child span {
            font-size: 11px;
        }
}
