/* =========================
   HERO STYLE 5
========================= */
.hero_hero_style5 {
    --cm-w: min(calc(((100vw - 14vw) / 4) - 15px), 333px);
}

/* ---------- Hero Slider ---------- */
.hero_hero_style5 .hero-slider {
    direction: ltr;
}

@media (max-width: 992px) {
    .hero_hero_style5 .hero-slider {
        padding-top: 3px;
    }
}

/* ---------- Slider Images ---------- */
.hero_hero_style5 .__slide-img {
    width: 100%;
    object-fit: cover;
    object-position: left center;
}

@media (min-width: 768px) {
    .hero_hero_style5 .__slide-img {
        height: 340px;
    }
}

@media (min-width: 992px) {
    .hero_hero_style5 .__slide-img {
        height: 386px;
    }
}

@media (min-width: 1280px) {
    .hero_hero_style5 .__slide-img {
        max-height: 420px;
    }
}

/* ---------- Category Menu ---------- */
.hero_hero_style5 .category-menu-wrap {
    position: relative;
}

.hero_hero_style5 .category-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    width: var(--cm-w);
    padding: 0.5rem 10px 0.5rem 15px;
    margin: 1rem 0 0;
    font-size: 13px;
    background: #fff;
    border: 1px solid #eef6ff;
    border-radius: 5px;
    max-height: 386px;
    overflow-y: auto;
    box-shadow:
        0 0 2px rgba(0,113,220,0.05),
        0 2px 5px -4px rgba(27,127,237,0.05);
}

.hero_hero_style5 .category-menu > li {
    padding: 10px 0;
}

.hero_hero_style5 .category-menu > li:not(:last-child) {
    border-bottom: 1px solid rgba(185,185,185,0.2);
}

.hero_hero_style5 .category-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.hero_hero_style5 .category-menu > li > a i {
    font-size: 12px;
    color: #ddd;
    transition: color 200ms ease;
}

.hero_hero_style5 .category-menu > li > a:hover i {
    color: #f58300;
}

/* ---------- Mega Menu ---------- */
.hero_hero_style5 .mega_menu {
    position: absolute;
    top: 0;
    left: var(--cm-w);
    width: calc(100% - var(--cm-w));
    background: #f8fafc;
    padding: 1.25rem 1.25rem 1.25rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    row-gap: 1.5rem;
    min-height: calc( 100% - 30px );
    max-height: calc( 100% - 30px );
    overflow: auto;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translate(0.5rem, 0.5rem);
    transform-origin: left;
    transition: all 300ms ease;
}

.hero_hero_style5 li.has-sub-item:hover .mega_menu {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
}

@media (min-width: 1200px) {
    .hero_hero_style5 .mega_menu {
        padding: 2.5rem 1.5rem;
    }
}

.hero_hero_style5 .mega_menu_inner {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-inline: 1.25rem;
}

.hero_hero_style5 .mega_menu_inner:not(:nth-child(4n)) {
    border-right: 1px solid #e2e8f0;
}

.hero_hero_style5 .mega_menu h6 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ---------- Scrollbar (Scoped) ---------- */
.hero_hero_style5 ::-webkit-scrollbar {
    width: 3px;
}

.hero_hero_style5 ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px #fff;
    border-radius: 5px;
}

.hero_hero_style5 ::-webkit-scrollbar-thumb {
    background: rgba(194,194,194,0.38);
    border-radius: 5px;
}

.hero_hero_style5 ::-webkit-scrollbar-thumb:hover {
    background: #000;
}

/* ---------- Selection ---------- */
.hero_hero_style5 ::selection {
    background: rgba(78,84,200,0.15);
}



.hero_hero_style5 .slick-dots li button {
    background: #f58300;
    opacity: 1;
    border-radius: 6px;
    width: 12px;
    height: 12px;
}


.hero_hero_style5 .slick-dots li.slick-active button {
    background: var(--primary-color);
    width: 30px;


}
.hero_hero_style5 .slick-next{
    right: -01vw;
    z-index: 1;

}
.hero_hero_style5 .slick-prev{
    left: -1vw;
    z-index: 1;
}

