/* assets/css/home.css */

/* ------------------------------
   Front Page / Home Layout
   ------------------------------ */

.site-main--home {
    padding: 40px 0 60px;
    background-color: #f3f4f6;
}

/* ------------------------------
   HOME NOTICE BAR
   ------------------------------ */

.site-main--home .mmn_home_notice_bar {
    width: 100%;
    padding: 0 15px 24px;
}

.site-main--home .mmn_home_notice_bar_inner {
    position: relative;
    max-width: 1220px;
    margin: 0 auto;
    padding: 18px 24px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.16);
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.34) 0%, rgba(250, 204, 21, 0) 34%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.22) 0%, rgba(249, 115, 22, 0) 38%),
        linear-gradient(135deg, #fff7ed 0%, #ffffff 42%, #ffedd5 100%);
    isolation: isolate;
}

.site-main--home .mmn_home_notice_bar_inner::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #facc15 0%, #f97316 100%);
    z-index: 0;
}

.site-main--home .mmn_home_notice_bar_inner::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, rgba(249, 115, 22, 0) 72%);
    pointer-events: none;
    z-index: 0;
}

.site-main--home .mmn_home_notice_bar_text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    text-align: center;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #7c2d12;
    text-wrap: balance;
}

@media (max-width: 767px) {
    .site-main--home .mmn_home_notice_bar {
        padding: 0 15px 20px;
    }

    .site-main--home .mmn_home_notice_bar_inner {
        padding: 16px 18px;
        border-radius: 16px;
    }

    .site-main--home .mmn_home_notice_bar_text {
        font-size: 13px;
        line-height: 1.65;
    }
}

/* ------------------------------
   HERO WRAPPER
   ------------------------------ */

.home-hero {
    width: 100%;
    padding-bottom: 50px;
    /* ekhane kono background / radius nai,
       sudhu layout container */
}

.home-hero__inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    column-gap: 25px;
}

/* ✅ Categories OFF hole slider full width nibe */
.home-hero--no-categories .home-hero__inner {
    grid-template-columns: minmax(0, 1fr);
}

.home-hero--no-categories .home-hero__slider {
    width: 100%;
}

/* device wise hide (options) */
@media (min-width: 1024px) {
    .home-hero--hide-desktop .home-hero__categories {
        display: none;
    }

    .home-hero--hide-desktop .home-hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .home-hero--hide-tablet .home-hero__categories {
        display: none;
    }

    .home-hero--hide-tablet .home-hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .home-hero--hide-mobile .home-hero__categories {
        display: none;
    }

    .home-hero--hide-mobile .home-hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ------------------------------
   LEFT: CATEGORIES PANEL
   ------------------------------ */

.home-hero__categories {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

/* bottom yellow underline */
.home-hero__categories::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #facc15, #f97316);
}

/* header bar */
.home-hero__categories-header {
    padding: 16px 22px;
    background: linear-gradient(90deg, #020617, #0f172a);
    border-bottom: 1px solid rgba(15, 23, 42, 0.85);

    /* line + text ke vertically center korar jonno */
    display: flex;
    align-items: center;
}

.home-hero__categories-title {
    font-size: 13px;
    font-weight: 600;
    color: #f9fafb;
    text-transform: uppercase;
    letter-spacing: 0.16em;

    /* line er jonno left e jayga */
    position: relative;
    padding-left: 42px;
}

/* ✅ screenshot moto left side e holud line */
.home-hero__categories-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #facc15, #f97316);
}

/* scrollable list – screenshot style (single column rows) */
.home-hero__categories-list {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 45%, #ffffff 100%);
}

/* custom scrollbar */
.home-hero__categories-list::-webkit-scrollbar {
    width: 6px;
}
.home-hero__categories-list::-webkit-scrollbar-track {
    background: transparent;
}
.home-hero__categories-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.7);
    border-radius: 999px;
}

/* category item row – full width card */
.home-hero__category-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    background-color: #ffffff;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.12s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.home-hero__category-item:last-child {
    border-bottom: none;
}

.home-hero__category-label {
    white-space: nowrap;
    color: #111827;
}

/* icon box (left square) */
.home-hero__category-icon {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #f9fafb;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* fallback icon jodi SVG na thake */
.home-hero__category-icon-fallback {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e5e7eb, #cbd5f5);
}

/* ✅ HOVER STATE – screenshot moto:
   - background bright orange
   - text white
   - svg icon white
*/
.home-hero__category-item:hover {
    background-color: #fbbf24;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
    border-color: transparent;
}

.home-hero__category-item:hover .home-hero__category-label {
    color: #ffffff;
}

.home-hero__category-item:hover .home-hero__category-icon {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

/* SVG ke force white fill/stroke korar try */
.home-hero__category-item:hover .home-hero__category-icon svg {
    fill: #ffffff;
    stroke: #ffffff;
}

/* empty state */
.home-hero__category-item--empty {
    justify-content: center;
}

/* ------------------------------
   RIGHT: HERO SLIDER CONTAINER
   ------------------------------ */

.home-hero__slider {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    min-width: 0;
}

/* slider-track: image + dark overlay (screenshot moto) */
.home-hero__slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* image er upor dark overlay */
.home-hero__slider-track::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        150deg,
        rgba(15, 23, 42, 0.45) 0%,
        rgba(15, 23, 42, 0.22) 40%,
        rgba(15, 23, 42, 0.5) 100%
    );
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

/* each slide */
.home-hero__slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr;
    padding: 60px 80px 80px;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    z-index: 1;
}

.home-hero__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

/* slide content (text side) – CENTER aligned */
.home-hero__slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* badge – background komano, text er kase */
.home-hero__slide-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.2);
    background-color: rgba(15, 23, 42, 0.75);
    color: #e5e7eb;
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-bottom: 16px;
    white-space: nowrap;
}

/* title */
.home-hero__slide-title {
    margin: 0 0 24px;
    font-size: 64px;
    line-height: 1.05;
    color: #f9fafb;
}

.home-hero__slide-title-line {
    display: inline-block;
}

.home-hero__slide-title-line--primary {
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-right: 6px;
}

.home-hero__slide-title-line--accent {
    font-weight: 800;
    color: #facc15;
    letter-spacing: 0.03em;
}

/* button */
.home-hero__slide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0b1120;
    background-color: #facc15;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        background-color 0.12s ease;
}

.home-hero__slide-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.7);
    background-color: #fbbf24;
}

/* ------------------------------
   SLIDER NAV ARROWS
   ------------------------------ */

.home-hero__slider-nav {
    position: absolute;
    left: 40px;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.home-hero__nav-button {
    pointer-events: auto;
    border: 1px solid rgba(248, 250, 252, 0.45);
    outline: none;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #f9f9fb;
    background-color: rgba(15, 23, 42, 0.4);
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.12s ease;
}

.home-hero__nav-button:hover {
    background-color: rgba(15, 23, 42, 0.75);
    border-color: rgba(248, 250, 252, 0.85);
    transform: translateY(-1px);
}

.home-hero__nav-icon {
    display: inline-block;
    transform: translateY(-1px);
}

/* ------------------------------
   SLIDER DOTS
   ------------------------------ */

.home-hero__slider-dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.home-hero__dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: none;
    padding: 0;
    cursor: pointer;
    background-color: rgba(248, 250, 252, 0.45);
    transition:
        background-color 0.18s ease,
        transform 0.12s ease,
        width 0.18s ease;
}

.home-hero__dot.is-active {
    width: 18px;
    background-color: #facc15;
    transform: translateY(-1px);
}

/* ------------------------------
   RESPONSIVE
   ------------------------------ */

@media (max-width: 1199px) {
    .home-hero__slide {
        padding: 40px 40px 60px;
    }

    .home-hero__slide-title {
        font-size: 48px;
    }
}

@media (max-width: 991px) {
    .home-hero__inner {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    .home-hero__categories {
        order: 2;
    }

    .home-hero__slider {
        order: 1;
        min-height: 380px;
    }

    .home-hero__slide {
        padding: 34px 28px 56px;
    }

    .home-hero__slider-nav {
        left: 24px;
        right: 24px;
    }
}

@media (max-width: 767px) {
    .site-main--home {
        padding-top: 24px;
    }

    .home-hero__slide-title {
        font-size: 34px;
    }

    .home-hero__slide-button {
        padding: 14px 32px;
    }

    .home-hero__slider-nav {
        left: 18px;
        right: 18px;
    }

    .home-hero__slider-dots {
        bottom: 20px;
    }
}