/*******************************************************************************
  File Name : root/assets/css/hero-category.css
  Purpose   : Hero for Blog Category Page
*******************************************************************************/

/* =====================================================
   CATEGORY HERO
===================================================== */

.category-hero {

    position: relative;

    display: flex;

    align-items: flex-end;

    min-height: 340px;

    padding: 50px 0;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(7,17,31,.12),
            rgba(7,17,31,.12)
        ),
        var(--hero-bg) center center / cover no-repeat;

}

/* =====================================================
   OVERLAY
===================================================== */

.category-hero-overlay {

    position: absolute;

    inset: 0;

    z-index: 1;

    background:

        linear-gradient(

            90deg,

            rgba(0,0,0,.64) 0%,

            rgba(0,0,0,.48) 45%,

            rgba(0,0,0,.26) 100%

        ),

        linear-gradient(

            180deg,

            rgba(0,0,0,.10) 0%,

            rgba(0,0,0,.18) 100%

        );

}

/* =====================================================
   CONTAINER
===================================================== */

.category-hero .container {

    position: relative;

    z-index: 2;

}

/* =====================================================
   CONTENT
===================================================== */

.category-hero-content {

    width: 1000px;

    max-width: 100%;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

}

/* =====================================================
   BADGE
===================================================== */

.category-hero-badge {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    width: fit-content;

    padding: 9px 20px;

    margin-bottom: 22px;

    border: 1px solid rgba(255,255,255,.14);

    background: rgba(255,255,255,.06);

    backdrop-filter: blur(12px);

    color: #ffffff;

    font-size: .74rem;

    font-weight: 700;

    letter-spacing: 1.3px;

    text-transform: uppercase;

}

.category-hero-badge i {

    color: #0d6efd;

    font-size: .90rem;

}

/* =====================================================
   TITLE
===================================================== */

.category-hero-content h1 {

    margin: 0 0 16px;

    max-width: 980px;

    font-size: clamp(2rem,3vw,3.2rem);

    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -1px;

    color: #ffffff;

    text-shadow:
        0 4px 12px rgba(0,0,0,.45),
        0 12px 32px rgba(0,0,0,.35);

}

/* =====================================================
   SUBTITLE
===================================================== */

.category-hero-content p {

    margin: 0;

    max-width: 760px;

    font-size: 1rem;

    font-weight: 400;

    line-height: 1.75;

    color: rgba(255,255,255,.92);

}

/* =====================================================
   BREADCRUMB
===================================================== */

.category-hero-breadcrumb {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 22px;

    font-size: .88rem;

    font-weight: 500;

}

.category-hero-breadcrumb a {

    color: rgba(255,255,255,.88);

    text-decoration: none;

    transition: .25s ease;

}

.category-hero-breadcrumb a:hover {

    color: #ffffff;

}

.category-hero-breadcrumb span {

    color: rgba(255,255,255,.70);

}

.category-hero-breadcrumb span:last-child {

    color: #ffffff;

    font-weight: 600;

}

/* =====================================================
   BOTTOM ACCENT
===================================================== */

.category-hero::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 0;

    width: 100%;

    height: 4px;

    background: linear-gradient(

        90deg,

        #0d6efd,

        #4dabff,

        #74c0fc

    );

    z-index: 3;

}

/* =====================================================
   RESPONSIVE - TABLET
===================================================== */

@media (max-width:991px) {

    .category-hero {

        min-height: 310px;

        padding: 40px 0;

    }

    .category-hero-content {

        width: 100%;

    }

    .category-hero-content h1 {

        font-size: 2.6rem;

        max-width: 100%;

    }

    .category-hero-content p {

        max-width: 100%;

        font-size: .98rem;

    }

}

/* =====================================================
   RESPONSIVE - MOBILE
===================================================== */

@media (max-width:768px) {

    .category-hero {

        min-height: 280px;

        padding: 34px 0;

    }

    .category-hero-content {

        width: 100%;

    }

    .category-hero-badge {

        margin-bottom: 18px;

        padding: 8px 16px;

        font-size: .70rem;

    }

    .category-hero-content h1 {

        font-size: 2rem;

        margin-bottom: 12px;

        line-height: 1.12;

        letter-spacing: 0;

    }

    .category-hero-content p {

        max-width: 100%;

        font-size: .94rem;

        line-height: 1.60;

    }

    .category-hero-breadcrumb {

        margin-top: 18px;

        font-size: .82rem;

    }

}

/* =====================================================
   RESPONSIVE - SMALL MOBILE
===================================================== */

@media (max-width:576px) {

    .category-hero {

        min-height: 250px;

        padding: 28px 0;

    }

    .category-hero-badge {

        padding: 7px 12px;

        margin-bottom: 14px;

        font-size: .66rem;

    }

    .category-hero-content h1 {

        font-size: 1.7rem;

        margin-bottom: 10px;

        line-height: 1.12;

    }

    .category-hero-content p {

        font-size: .88rem;

        line-height: 1.55;

    }

    .category-hero-breadcrumb {

        margin-top: 14px;

        gap: 6px;

        font-size: .76rem;

    }

}