/* Home "Festivals and Events" slider (Event block list-event, layouts/search/loop-grid-full).
   Everything is scoped to .bm-evs-section / .bm-evs; behaviour lives in js/bm-event-slider.js.
   Plain section (no gradients, blobs or glows), site brand blue var(--bm-brand,#0A73B0) / var(--bm-brand-strong,#0a73b0), Poppins, 44px controls. */
.bm-evs-section {
    --bm-evs-brand: var(--bm-brand,#0A73B0);
    --bm-evs-brand-ink: var(--bm-brand-strong,#0a73b0);
    --bm-evs-brand-dark: #106a97;
    --bm-evs-tint: #eaf6fd;
    --bm-evs-navy: #12233a;
    --bm-evs-grey: #566273;
    --bm-evs-line: #d9e1ea;
    --bm-evs-star: #f5b301;
    position: relative;
}

.bm-evs-container { margin-top: 24px; }
.bm-evs { position: relative; }
.bm-evs--static + .bm-evs--static { margin-top: 48px; }
.bm-evs .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* all slides share one grid cell, so the block is as tall as its tallest slide and never jumps */
.bm-evs__track { display: grid; }
.bm-evs__slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 48px;
    align-items: center;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease, visibility 0s linear .45s;
}
.bm-evs__slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity .45s ease, visibility 0s;
}
.bm-evs__slide .bm-evs__text { transform: translateY(6px); transition: transform .45s ease; }
.bm-evs__slide.is-active .bm-evs__text { transform: none; }

/* ---------- left: text ---------- */
.bm-evs__text { min-width: 0; font-family: Poppins, sans-serif; }
.bm-evs__text p, .bm-evs__text a, .bm-evs__text span { font-family: Poppins, sans-serif; }
.bm-evs__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--bm-evs-tint);
    color: var(--bm-evs-brand-ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}
.bm-evs .bm-evs__title {
    margin: 12px 0 8px;
    font-family: Poppins, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.38;          /* room for Bangla vowel signs above/below the line */
    letter-spacing: 0;
    color: var(--bm-evs-navy);
    text-transform: none;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    padding-bottom: 2px;
}
.bm-evs .bm-evs__title a { color: inherit; text-decoration: none; }
.bm-evs .bm-evs__title a:hover { color: var(--bm-evs-brand-ink); }
.bm-evs .bm-evs__where {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    color: var(--bm-evs-grey);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}
.bm-evs .bm-evs__where i { color: var(--bm-evs-brand-ink); font-size: 14px; }
/* the event date: first fact under the title, bold so it stands out */
.bm-evs .bm-evs__when { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #d6ecfb; color: #0B2A4A; font-weight: 600; font-size: 15px; line-height: 1.3; }
.bm-evs .bm-evs__when i { color: var(--bm-evs-brand-ink); font-size: 15px; }
.bm-evs .bm-evs__rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--bm-evs-grey);
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
}
.bm-evs__stars { display: inline-flex; gap: 2px; color: var(--bm-evs-star); font-size: 14px; }
.bm-evs__stars .fa-regular { color: #cfd6df; }
.bm-evs .bm-evs__rating:hover .bm-evs__count { color: var(--bm-evs-brand-ink); text-decoration: underline; }
.bm-evs .bm-evs__excerpt {
    margin: 0 0 24px;
    color: var(--bm-evs-grey);
    font-size: 15px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}
.bm-evs__actions { display: flex; align-items: center; gap: 12px; }
.bm-evs .bm-evs__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: var(--bm-evs-brand-ink);
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
    transition: background-color .2s ease;
}
.bm-evs .bm-evs__cta:hover,
.bm-evs .bm-evs__cta:focus-visible {
    background: var(--bm-evs-brand-dark);
    color: #fff;
}
.bm-evs__cta i { font-size: 12px; transition: transform .2s ease; }
.bm-evs .bm-evs__cta:hover i { transform: translateX(2px); }

/* ---------- right: photo ---------- */
.bm-evs__media { position: relative; min-width: 0; }
.bm-evs__frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: #e7ebef;
    box-shadow: 0 2px 10px rgba(18, 35, 58, .08);
    touch-action: pan-y;
}
.bm-evs__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    max-width: none;
}
/* no photo: the shared box (Layout::parts.bm-noimg, css/bm-noimg.css), full frame size */
.bm-evs__ph { height: 100%; }

/* place card, top-left of the photo: short name + region, full address in its tooltip */
.bm-evs__place {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: min(300px, calc(100% - 28px));
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 1px 4px rgba(18, 35, 58, .12);
    font-family: Poppins, sans-serif;
}
.bm-evs__place-ico { flex: 0 0 auto; margin-top: 3px; color: var(--bm-evs-brand-ink); font-size: 13px; }
.bm-evs__place-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.bm-evs__place-txt strong,
.bm-evs__place-txt small {
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}
.bm-evs__place-txt strong { color: var(--bm-evs-navy); font-size: 13.5px; font-weight: 600; }
.bm-evs__place-txt small { color: var(--bm-evs-grey); font-size: 12px; -webkit-line-clamp: 1; line-clamp: 1; }

/* controls under the photo: dots left, arrows right */
.bm-evs__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
}
.bm-evs__dots { display: flex; align-items: center; gap: 0; margin-left: -8px; }
.bm-evs__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}
.bm-evs__dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #c5d0dc;
    transition: background-color .2s ease, width .2s ease;
}
.bm-evs__dot:hover::before { background: #9fb0c2; }
.bm-evs__dot[aria-current="true"]::before { width: 20px; background: var(--bm-evs-brand-ink); }
.bm-evs__dot[aria-current="true"] { width: 32px; }

.bm-evs__arrows { display: flex; gap: 8px; }
.bm-evs__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--bm-evs-line);
    border-radius: 50%;
    background: #fff;
    color: var(--bm-evs-navy);
    font-size: 13px;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.bm-evs__arrow:hover {
    border-color: var(--bm-evs-brand-ink);
    background: var(--bm-evs-brand-ink);
    color: #fff;
}

.bm-evs button:focus-visible,
.bm-evs a:focus-visible {
    outline: 2px solid var(--bm-evs-brand-ink);
    outline-offset: 2px;
}

/* side by side: centre the text on the photo, not on photo + controls row (40px + 14px) */
@media (min-width: 992px) {
    .bm-evs[data-bm-evs] .bm-evs__text { padding-bottom: 54px; }
}

/* ---------- laptop / small desktop ---------- */
@media (max-width: 1199px) {
    .bm-evs__slide { gap: 36px; }
}

/* ---------- tablet: photo above the text ---------- */
@media (max-width: 991px) {
    .bm-evs__slide {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .bm-evs__text { max-width: 680px; }
    .bm-evs .bm-evs__title { font-size: 24px; }
}

/* ---------- phone ---------- */
@media (max-width: 575px) {
    .bm-evs-container { margin-top: 16px; }
    .bm-evs__slide { gap: 16px; }
    .bm-evs__frame { aspect-ratio: 4 / 3; border-radius: 12px; }
    .bm-evs__nav { margin-top: 10px; }
    .bm-evs__place { top: 10px; left: 10px; max-width: calc(100% - 20px); padding: 6px 10px; }
    .bm-evs__place-txt strong { font-size: 13px; }
    .bm-evs .bm-evs__title { font-size: 22px; line-height: 1.4; margin: 10px 0 6px; }
    .bm-evs .bm-evs__where { font-size: 14px; }
    .bm-evs .bm-evs__excerpt { font-size: 14.5px; margin-bottom: 18px; }
    .bm-evs .bm-evs__cta { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .bm-evs__slide,
    .bm-evs__slide.is-active,
    .bm-evs__slide .bm-evs__text,
    .bm-evs .bm-evs__cta,
    .bm-evs__cta i,
    .bm-evs__dot::before { transition: none; }
    .bm-evs__slide .bm-evs__text { transform: none; }
}
