/* ================================================================
   PoliticalLeaderPortal - HOME HERO SLIDER v3
   One dedicated Hero CSS. Admin content / colors / font sizes / position bind here.
   Random motion is assigned by hero-slider.js.
   ================================================================ */

.public-home-layout .home-hero-stack {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: 0 0 54px;
    overflow: visible;
}

.public-home-layout .home-hero-slot {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 !important;
    overflow: visible;
    background: #17110c;
}

.public-home-layout .home-hero {
    position: relative;
    width: 100%;
    height: var(--home-hero-desktop-height, 500px);
    min-height: 430px;
    margin: 0;
    overflow: hidden;
    color: #fff;
    background: #17110c;
    isolation: isolate;
}

.public-home-layout .home-hero__swiper,
.public-home-layout .home-hero__swiper > .swiper-wrapper,
.public-home-layout .home-hero__slide {
    width: 100%;
    height: 100%;
}

.public-home-layout .home-hero__slide {
    position: relative;
    overflow: hidden;
    background: var(--home-hero-bg, #17110c);
}

.public-home-layout .home-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--home-hero-bg, #17110c);
}

.public-home-layout .home-hero__media picture,
.public-home-layout .home-hero__media img,
.public-home-layout .home-hero__video {
    display: block;
    width: 100%;
    height: 100%;
}

.public-home-layout .home-hero__media img,
.public-home-layout .home-hero__video {
    object-fit: var(--home-hero-fit, cover);
    object-position: var(--home-hero-focus, center center);
    filter:
        brightness(var(--home-hero-brightness, 100%))
        contrast(var(--home-hero-contrast, 100%));
    transform: scale(1.001);
    transform-origin: center center;
    will-change: transform, opacity, filter;
}

/* No overlay on public Home hero. */

.public-home-layout .home-hero__leader {
    position: absolute;
    z-index: 2;
    right: clamp(2%, 6vw, 9%);
    bottom: 0;
    width: min(38vw, 530px);
    max-height: 97%;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(-12px 12px 18px rgba(0,0,0,.18));
    pointer-events: none;
}

.public-home-layout .home-hero__leader--left {
    right: auto;
    left: clamp(2%, 6vw, 9%);
    object-position: left bottom;
}

.public-home-layout .home-hero__leader--center {
    right: 50%;
    transform: translateX(50%);
}

/* Content rail is the admin-controlled position engine.
   Supported values already present in Admin:
   Center Left, Center, Center Right,
   Top Left, Top Center, Top Right,
   Bottom Left, Bottom Center, Bottom Right. */
.public-home-layout .home-hero__content-rail {
    position: relative;
    z-index: 4;
    width: min(1280px, calc(100% - 72px));
    height: 100%;
    margin: 0 auto;
    padding: 48px 0 116px;
    display: flex;
    pointer-events: none;
}

.public-home-layout .home-hero__content-rail[data-position="center-left"] {
    align-items: center;
    justify-content: flex-start;
}

.public-home-layout .home-hero__content-rail[data-position="center"] {
    align-items: center;
    justify-content: center;
}

.public-home-layout .home-hero__content-rail[data-position="center-right"] {
    align-items: center;
    justify-content: flex-end;
}

.public-home-layout .home-hero__content-rail[data-position="top-left"] {
    align-items: flex-start;
    justify-content: flex-start;
}

.public-home-layout .home-hero__content-rail[data-position="top-center"] {
    align-items: flex-start;
    justify-content: center;
}

.public-home-layout .home-hero__content-rail[data-position="top-right"] {
    align-items: flex-start;
    justify-content: flex-end;
}

.public-home-layout .home-hero__content-rail[data-position="bottom-left"] {
    align-items: flex-end;
    justify-content: flex-start;
}

.public-home-layout .home-hero__content-rail[data-position="bottom-center"] {
    align-items: flex-end;
    justify-content: center;
}

.public-home-layout .home-hero__content-rail[data-position="bottom-right"] {
    align-items: flex-end;
    justify-content: flex-end;
}

.public-home-layout .home-hero__copy {
    width: min(100%, var(--home-hero-content-width, 650px));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
    pointer-events: auto;
}

.public-home-layout .home-hero__copy[data-align="center"] {
    align-items: center;
    text-align: center;
}

.public-home-layout .home-hero__copy[data-align="right"] {
    align-items: flex-end;
    text-align: right;
}

.public-home-layout .home-hero__badge {
    display: inline-flex;
    width: fit-content;
    min-height: 36px;
    align-items: center;
    margin: 0 0 14px;
    padding: 7px 28px 7px 18px;
    color: #fff;
    background: #f45a09;
    clip-path: polygon(0 0,100% 0,calc(100% - 18px) 100%,0 100%);
    font-family: "Noto Sans Devanagari","Nirmala UI",Arial,sans-serif;
    font-size: clamp(14px,1.15vw,18px);
    font-weight: 800;
    line-height: 1.05;
    text-shadow: 0 1px 2px rgba(0,0,0,.16);
}

.public-home-layout .home-hero__title {
    max-width: 720px;
    margin: 0;
    display: grid;
    color: var(--home-hero-title, #fff);
    font-family: "Noto Sans Devanagari","Nirmala UI",Arial,sans-serif;
    font-size: var(--home-hero-title-size, 64px);
    font-style: var(--home-hero-title-style, normal);
    font-weight: var(--home-hero-title-weight, 800);
    letter-spacing: -.035em;
    line-height: .98;
    text-wrap: balance;
    text-shadow:
        0 2px 2px rgba(0,0,0,.88),
        0 5px 18px rgba(0,0,0,.62);
}

.public-home-layout .home-hero__title-main,
.public-home-layout .home-hero__title-accent {
    display: block;
}

.public-home-layout .home-hero__title-accent {
    margin-top: 5px;
    color: var(--home-hero-accent, #f45a09);
}

.public-home-layout .home-hero__subtitle {
    margin: 12px 0 0;
    color: var(--home-hero-accent, #f45a09);
    font-family: "Noto Sans Devanagari","Nirmala UI",Arial,sans-serif;
    font-size: var(--home-hero-subtitle-size, 22px);
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 2px 7px rgba(0,0,0,.58);
}

.public-home-layout .home-hero__description {
    max-width: 610px;
    margin: 20px 0 0;
    color: var(--home-hero-description, #fff);
    font-family: "Noto Sans Devanagari","Nirmala UI",Arial,sans-serif;
    font-size: var(--home-hero-description-size, 18px);
    font-weight: 600;
    line-height: 1.45;
    text-shadow:
        0 2px 2px rgba(0,0,0,.82),
        0 4px 12px rgba(0,0,0,.50);
}

.public-home-layout .home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.public-home-layout .home-hero__button {
    position: relative;
    z-index: 7;
    min-width: 150px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 2px solid #f45a09;
    border-radius: 6px;
    font-family: "Noto Sans Devanagari","Nirmala UI",Arial,sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(0,0,0,.14);
    transition: transform .2s ease, filter .2s ease;
}

.public-home-layout .home-hero__button--primary {
    color: var(--home-hero-primary-text, #fff);
    background: var(--home-hero-primary-bg, #f45a09);
}

.public-home-layout .home-hero__button--secondary {
    color: var(--home-hero-secondary-text, #fff);
    background: var(--home-hero-secondary-bg, transparent);
    backdrop-filter: blur(4px);
}

.public-home-layout .home-hero__button:hover,
.public-home-layout .home-hero__button:focus {
    transform: translateY(-2px);
    filter: brightness(1.05);
    text-decoration: none;
}

.public-home-layout .home-hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 15;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    color: #17202a;
    background: rgba(255,255,255,.96);
    box-shadow: 0 5px 15px rgba(0,0,0,.18);
    font-size: 22px;
    cursor: pointer;
}

.public-home-layout .home-hero__arrow--prev { left: 28px; }
.public-home-layout .home-hero__arrow--next { right: 28px; }

/* Dots stay in the center-bottom of the hero and clearly ABOVE the stats strip. */
.public-home-layout .home-hero__pagination {
    position: absolute;
    left: 50% !important;
    right: auto !important;
    bottom: 94px !important;
    z-index: 30;
    width: auto !important;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-home-layout .home-hero__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 5px !important;
    opacity: 1;
    border: 1px solid rgba(0,0,0,.12);
    background: rgba(255,255,255,.98);
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.public-home-layout .home-hero__pagination .swiper-pagination-bullet-active {
    width: 34px;
    border-radius: 999px;
    border-color: #f45a09;
    background: #f45a09;
}

/* Safe fallback: content is ALWAYS visible if JavaScript fails.
   JS adds .home-hero--motion-ready only after it is ready to animate. */
.public-home-layout .home-hero [data-home-hero-animate] {
    opacity: 1;
    transform: none;
    filter: none;
}

.public-home-layout .home-hero.home-hero--motion-ready .home-hero__slide:not(.swiper-slide-active) [data-home-hero-animate] {
    opacity: 0;
}

/* Random image effects assigned by JS */
.public-home-layout .home-hero__slide.is-random-animating[data-image-motion="zoom"] .home-hero__media img {
    animation: heroImageZoom 6.8s cubic-bezier(.2,.65,.25,1) both;
}

.public-home-layout .home-hero__slide.is-random-animating[data-image-motion="pan-left"] .home-hero__media img {
    animation: heroImagePanLeft 6.8s cubic-bezier(.2,.65,.25,1) both;
}

.public-home-layout .home-hero__slide.is-random-animating[data-image-motion="pan-right"] .home-hero__media img {
    animation: heroImagePanRight 6.8s cubic-bezier(.2,.65,.25,1) both;
}

.public-home-layout .home-hero__slide.is-random-animating[data-image-motion="rise"] .home-hero__media img {
    animation: heroImageRise 6.8s cubic-bezier(.2,.65,.25,1) both;
}

.public-home-layout .home-hero__slide.is-random-animating[data-image-motion="drift"] .home-hero__media img {
    animation: heroImageDrift 6.8s cubic-bezier(.2,.65,.25,1) both;
}

/* Random element effects assigned independently by JS */
.public-home-layout .home-hero__slide.is-random-animating [data-home-hero-animate][data-motion="fade-up"] {
    animation: heroFadeUp .78s cubic-bezier(.16,1,.3,1) var(--motion-delay,0ms) both;
}

.public-home-layout .home-hero__slide.is-random-animating [data-home-hero-animate][data-motion="fade-left"] {
    animation: heroFadeLeft .78s cubic-bezier(.16,1,.3,1) var(--motion-delay,0ms) both;
}

.public-home-layout .home-hero__slide.is-random-animating [data-home-hero-animate][data-motion="fade-right"] {
    animation: heroFadeRight .78s cubic-bezier(.16,1,.3,1) var(--motion-delay,0ms) both;
}

.public-home-layout .home-hero__slide.is-random-animating [data-home-hero-animate][data-motion="zoom-in"] {
    animation: heroZoomIn .78s cubic-bezier(.16,1,.3,1) var(--motion-delay,0ms) both;
}

.public-home-layout .home-hero__slide.is-random-animating [data-home-hero-animate][data-motion="blur-in"] {
    animation: heroBlurIn .82s cubic-bezier(.16,1,.3,1) var(--motion-delay,0ms) both;
}

.public-home-layout .home-hero__slide.is-random-animating [data-home-hero-animate][data-motion="drop-in"] {
    animation: heroDropIn .78s cubic-bezier(.16,1,.3,1) var(--motion-delay,0ms) both;
}

.public-home-layout .home-hero__slide.is-random-animating .home-hero__leader {
    animation: heroLeaderIn .95s cubic-bezier(.16,1,.3,1) .14s both;
}

@keyframes heroImageZoom {
    from { transform: scale(1.025); }
    to { transform: scale(1.13); }
}

@keyframes heroImagePanLeft {
    from { transform: scale(1.10) translate3d(2.6%,0,0); }
    to { transform: scale(1.14) translate3d(-2.6%,0,0); }
}

@keyframes heroImagePanRight {
    from { transform: scale(1.10) translate3d(-2.6%,0,0); }
    to { transform: scale(1.14) translate3d(2.6%,0,0); }
}

@keyframes heroImageRise {
    from { transform: scale(1.08) translate3d(0,2%,0); }
    to { transform: scale(1.14) translate3d(0,-1.7%,0); }
}

@keyframes heroImageDrift {
    from { transform: scale(1.07) translate3d(-1.4%,1%,0); }
    to { transform: scale(1.12) translate3d(1.5%,-1%,0); }
}

@keyframes heroFadeUp {
    from { opacity:0; transform:translate3d(0,38px,0); }
    to { opacity:1; transform:translate3d(0,0,0); }
}

@keyframes heroFadeLeft {
    from { opacity:0; transform:translate3d(-44px,0,0); }
    to { opacity:1; transform:translate3d(0,0,0); }
}

@keyframes heroFadeRight {
    from { opacity:0; transform:translate3d(44px,0,0); }
    to { opacity:1; transform:translate3d(0,0,0); }
}

@keyframes heroZoomIn {
    from { opacity:0; transform:scale(.90); }
    to { opacity:1; transform:scale(1); }
}

@keyframes heroBlurIn {
    from { opacity:0; transform:translate3d(0,16px,0); filter:blur(8px); }
    to { opacity:1; transform:translate3d(0,0,0); filter:blur(0); }
}

@keyframes heroDropIn {
    from { opacity:0; transform:translate3d(0,-34px,0); }
    to { opacity:1; transform:translate3d(0,0,0); }
}

@keyframes heroLeaderIn {
    from { opacity:0; transform:translate3d(48px,18px,0) scale(.96); }
    to { opacity:1; transform:translate3d(0,0,0) scale(1); }
}

@media (max-width: 991.98px) {
    .public-home-layout .home-hero-stack {
        padding-bottom: 42px;
    }

    .public-home-layout .home-hero {
        height: var(--home-hero-tablet-height, 440px);
        min-height: 390px;
    }

    .public-home-layout .home-hero__content-rail {
        width: min(100% - 42px, 920px);
        padding: 40px 0 108px;
    }

    .public-home-layout .home-hero__copy {
        width: min(66%, var(--home-hero-content-width, 650px));
    }

    .public-home-layout .home-hero__leader {
        right: 1%;
        width: min(48vw, 430px);
    }

    .public-home-layout .home-hero__title {
        font-size: min(var(--home-hero-title-size,54px), 54px);
    }

    .public-home-layout .home-hero__arrow {
        width: 40px;
        height: 40px;
        font-size: 19px;
    }

    .public-home-layout .home-hero__arrow--prev { left: 16px; }
    .public-home-layout .home-hero__arrow--next { right: 16px; }

    .public-home-layout .home-hero__pagination {
        bottom: 84px !important;
    }
}

@media (max-width: 767.98px) {
    .public-home-layout .home-hero-stack {
        padding-bottom: 24px;
    }

    .public-home-layout .home-hero {
        height: clamp(320px, 110vw, 430px);
        min-height: 320px;
    }

    .public-home-layout .home-hero__content-rail {
        width: calc(100% - 30px);
        padding: 30px 0 82px;
    }

    /* Match video slides: fill the complete mobile hero without letterboxing. */
    .public-home-layout .home-hero__media img {
        object-fit: cover;
        object-position: var(--home-hero-focus, center center);
    }

    .public-home-layout .home-hero__copy,
    .public-home-layout .home-hero__copy[data-align="center"],
    .public-home-layout .home-hero__copy[data-align="right"] {
        width: 100%;
        max-width: 100%;
    }

    .public-home-layout .home-hero__leader {
        right: -9%;
        width: min(76vw, 365px);
        max-height: 76%;
        opacity: .96;
    }

    .public-home-layout .home-hero__badge {
        min-height: 29px;
        margin-bottom: 9px;
        padding: 5px 20px 5px 11px;
        font-size: 12px;
    }

    .public-home-layout .home-hero__title {
        max-width: 92%;
        font-size: min(var(--home-hero-title-size,44px), 44px);
    }

    .public-home-layout .home-hero__subtitle {
        font-size: min(var(--home-hero-subtitle-size,16px), 16px);
    }

    .public-home-layout .home-hero__description {
        max-width: 92%;
        margin-top: 11px;
        font-size: min(var(--home-hero-description-size,14px), 14px);
        line-height: 1.35;
    }

    .public-home-layout .home-hero__actions {
        gap: 8px;
        margin-top: 14px;
    }

    .public-home-layout .home-hero__button {
        min-width: 122px;
        min-height: 39px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .public-home-layout .home-hero__arrow {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .public-home-layout .home-hero__arrow--prev { left: 10px; }
    .public-home-layout .home-hero__arrow--next { right: 10px; }

    .public-home-layout .home-hero__pagination {
        bottom: 18px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-home-layout .home-hero *,
    .public-home-layout .home-hero *::before,
    .public-home-layout .home-hero *::after {
        animation: none !important;
        transition: none !important;
    }

    .public-home-layout .home-hero [data-home-hero-animate] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}


/* ================================================================
   v4 - Minimal Hero Navigation
   Small < > controls so arrows never cover hero text/content.
   ================================================================ */
.public-home-layout .home-hero__arrow {
    width: 24px;
    height: 34px;
    min-width: 24px;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: rgba(255,255,255,.92);
    background: rgba(0,0,0,.20);
    box-shadow: none;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
    opacity: .88;
    transition: opacity .18s ease, background-color .18s ease, transform .18s ease;
}

.public-home-layout .home-hero__arrow span {
    display: block;
    margin-top: -2px;
    line-height: 1;
}

.public-home-layout .home-hero__arrow--prev {
    left: 10px;
}

.public-home-layout .home-hero__arrow--next {
    right: 10px;
}

.public-home-layout .home-hero__arrow:hover,
.public-home-layout .home-hero__arrow:focus {
    color: #fff;
    background: rgba(244,90,9,.88);
    opacity: 1;
    transform: translateY(-50%) scale(1.04);
}

@media (max-width: 767.98px) {
    .public-home-layout .home-hero__arrow {
        width: 21px;
        height: 30px;
        min-width: 21px;
        min-height: 30px;
        font-size: 21px;
    }

    .public-home-layout .home-hero__arrow--prev {
        left: 5px;
    }

    .public-home-layout .home-hero__arrow--next {
        right: 5px;
    }
}
