/**
 * Custom Elementor Widgets Styles
 * Matching Meridian West design system
 */

/* ==========================================================================
   MW TESTIMONIALS WIDGET
   ========================================================================== */

.mw-testimonials {
    position: relative;
    background-color: #0D0C33;
    padding: 40px 20px 135px;
}

@media (min-width: 1024px) {
    .mw-testimonials {
        padding: 110px 20px 200px;
    }
}

/* Background Pattern Container */
.mw-testimonials__pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0D0C33;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
}

.mw-testimonials--purple .mw-testimonials__pattern {
    background-image: url('../images/slt-bg-purple.svg');
}

.mw-testimonials--green .mw-testimonials__pattern {
    background-image: url('../images/slt-bg-green.svg');
}

.mw-testimonials--pink .mw-testimonials__pattern {
    background-image: url('../images/slt-bg-pink.svg');
}

.mw-testimonials__liner {
    display: block;
    position: relative;
    max-width: 1350px;
    margin: 0 auto;
}

/* Header/Label */
.mw-testimonials__header {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 65px;
}

@media (min-width: 1024px) {
    .mw-testimonials__header {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 30px;
    }
}

/* Colour variants for header */
.mw-testimonials--purple .mw-testimonials__header {
    color: #BE8CFF;
}

.mw-testimonials--green .mw-testimonials__header {
    color: #82DCB4;
}

.mw-testimonials--pink .mw-testimonials__header {
    color: #F98B9F;
}

.mw-testimonials--blue .mw-testimonials__header {
    color: #2F31FC;
}

/* Testimonial Item */
.mw-testimonials__item {
    transition: opacity 0.4s ease;
}

.mw-testimonials__item--hidden {
    display: none;
}

/* Quote */
.mw-testimonials__quote {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 30px;
}

@media (min-width: 1024px) {
    .mw-testimonials__quote {
        font-size: 42px;
        line-height: 1.095;
    }
}

/* Author */
.mw-testimonials__author {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
}

@media (min-width: 1024px) {
    .mw-testimonials__author {
        font-size: 20px;
        line-height: 1.4;
    }
}

/* Position */
.mw-testimonials__position {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    max-width: 60%;
}

@media (min-width: 1024px) {
    .mw-testimonials__position {
        font-size: 20px;
        line-height: 1.4;
        max-width: 100%;
    }
}

/* Navigation */
.mw-testimonials__nav {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

@media (min-width: 1024px) {
    .mw-testimonials__nav {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        justify-content: space-between;
        margin-top: 0;
        pointer-events: none;
    }
}

.mw-testimonials__nav-btn {
    width: 17px;
    height: 29px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    pointer-events: all;
    transition: opacity 0.3s ease;
}

.mw-testimonials__nav-btn:hover,
.mw-testimonials__nav-btn:focus,
.mw-testimonials__nav-btn:visited {
    opacity: 0.7;
    background: transparent !important;
}

.mw-testimonials__nav-btn svg {
    display: block;
    width: 100%;
    height: 100%;
}


/* ==========================================================================
   MW QUOTES CAROUSEL WIDGET
   ========================================================================== */

.mw-quotes-carousel {
    position: relative;
    overflow: hidden;
    background-color: #0D0C33;
}

/* Mobile Pattern */
.mw-quotes-carousel__mobile-pattern {
    position: absolute;
    bottom: 0;
    right: 20px;
    width: 52px;
    height: 162px;
    z-index: 2;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .mw-quotes-carousel__mobile-pattern {
        display: none;
    }
}

.mw-quotes-carousel__mobile-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/quote-carousel-lines/mobile-lines.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 1s ease;
}

.mw-quotes-carousel__mobile-lines.flip {
    transform: rotateY(180deg);
}

/* Desktop Pattern */
.mw-quotes-carousel__desktop-pattern {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 1366px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .mw-quotes-carousel__desktop-pattern {
        display: block;
    }
}

.mw-quotes-carousel__left-lines,
.mw-quotes-carousel__right-lines {
    position: absolute;
    width: 210px;
    height: 578px;
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 1s ease;
}

.mw-quotes-carousel__left-lines {
    left: 5%;
}

.mw-quotes-carousel__right-lines {
    right: 5%;
}

/* Pattern 1 */
.mw-quotes-carousel__left-lines.pattern-1 {
    top: 0;
    background-image: url('../images/quote-carousel-lines/p1-left.svg');
}

.mw-quotes-carousel__right-lines.pattern-1 {
    bottom: 0;
    background-image: url('../images/quote-carousel-lines/p1-right.svg');
}

/* Pattern 2 */
.mw-quotes-carousel__left-lines.pattern-2 {
    bottom: 0;
    background-image: url('../images/quote-carousel-lines/p2-left.svg');
}

.mw-quotes-carousel__right-lines.pattern-2 {
    top: 0;
    background-image: url('../images/quote-carousel-lines/p2-right.svg');
}

/* Pattern 3 */
.mw-quotes-carousel__left-lines.pattern-3 {
    bottom: 0;
    background-image: url('../images/quote-carousel-lines/p3-left.svg');
}

.mw-quotes-carousel__right-lines.pattern-3 {
    top: 0;
    background-image: url('../images/quote-carousel-lines/p3-right.svg');
}

/* Flip animation */
.mw-quotes-carousel__left-lines.flip,
.mw-quotes-carousel__right-lines.flip {
    transform: rotateY(180deg);
}

/* Header */
.mw-quotes-carousel__header {
    position: absolute;
    top: 45px;
    left: 20px;
    font-size: 16px;
    line-height: 1.5;
    pointer-events: none;
    z-index: 10;
    color: #00C9FF;
}

@media (min-width: 1024px) {
    .mw-quotes-carousel__header {
        left: 0;
        width: 100%;
        top: 100px;
        text-align: center;
        font-size: 20px;
        line-height: 1.4;
    }
}

/* Navigation */
.mw-quotes-carousel__nav {
    position: absolute;
    z-index: 100;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}

.mw-quotes-carousel__nav-inner {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
}

@media (min-width: 1024px) {
    .mw-quotes-carousel__nav-inner {
        padding: 0 40px;
    }
}

.mw-quotes-carousel__arrow {
    width: 17px;
    height: 29px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    pointer-events: all;
    transition: opacity 0.3s ease;
}

.mw-quotes-carousel__arrow:hover,
.mw-quotes-carousel__arrow:focus,
.mw-quotes-carousel__arrow:visited {
    opacity: 0.7;
    background: transparent !important;
}

.mw-quotes-carousel__arrow svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Carousel outer */
.mw-quotes-carousel__outer {
    padding-top: 100px;
    padding-bottom: 40px;
}

@media (min-width: 1024px) {
    .mw-quotes-carousel__outer {
        padding-top: 220px;
        padding-bottom: 150px;
    }
}

/* Swiper slide */
.mw-quotes-carousel .swiper-slide {
    height: auto;
    padding-bottom: 95px;
    background-color: #0D0C33;
}

/* Content */
.mw-quotes-carousel__content {
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 1024px) {
    .mw-quotes-carousel__content {
        max-width: 644px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

/* Quote */
.mw-quotes-carousel__quote {
    color: #ffffff;
    text-align: left;
    margin-bottom: 15px;
    font-size: 20px;
    line-height: 1.4;
}

@media (min-width: 1024px) {
    .mw-quotes-carousel__quote {
        margin-bottom: 25px;
        font-size: 26px;
        line-height: 1.31;
        text-align: center;
    }
}

/* Author */
.mw-quotes-carousel__author {
    color: #ffffff;
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
}

@media (min-width: 1024px) {
    .mw-quotes-carousel__author {
        font-size: 20px;
        line-height: 1.4;
        text-align: center;
    }
}

/* Position */
.mw-quotes-carousel__position {
    color: #ffffff;
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
}

@media (min-width: 1024px) {
    .mw-quotes-carousel__position {
        font-size: 20px;
        line-height: 1.4;
        text-align: center;
    }
}

/* Pagination */
.mw-quotes-carousel .swiper-pagination {
    position: relative;
    bottom: auto;
    margin-top: 30px;
    text-align: center;
}

@media (min-width: 1024px) {
    .mw-quotes-carousel .swiper-pagination {
        margin-top: 40px;
    }
}

.mw-quotes-carousel .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    margin: 0 5px;
}

.mw-quotes-carousel .swiper-pagination-bullet-active {
    background: #ffffff;
}

/**
 * MW Home Hero Widget Styles
 *
 * Full-height animated homepage hero section
 * Matches legacy Meridian West design
 */

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

.mw-home-hero {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--mw-admin-bar-height, 0px) - var(--mw-header-height) - var(--mw-top-bar-height, 0px));
    overflow: hidden;
    background-color: #121212;
}

/* ============================================
   VIDEO INTRO
   ============================================ */

.mw-home-hero__video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    transition: all 0.5s ease;
}

.mw-home-hero__video-container.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mw-home-hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   MOBILE VERSION (Swiper)
   ============================================ */

.mw-home-hero__mobile {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

@media (min-width: 1024px) {
    .mw-home-hero__mobile {
        display: none;
    }
}

.mw-home-hero__mobile-swiper {
    flex: 1;
    position: relative;
    width: 100%;
}

.mw-home-hero__mobile-swiper .swiper-wrapper {
    height: 100%;
}

.mw-home-hero__slide {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mw-home-hero__slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mw-home-hero__slide-bg img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.mw-home-hero__slide-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 4;
    padding: 30px 20px;
    background-color: #0D0C33;
    color: #ffffff;
}

/* Mobile bottom toggles */
.mw-home-hero__mobile-toggles {
    height: 60px;
    background-color: #2F31FC;
    display: flex;
    z-index: 10;
    transition: all 0.5s ease;
}

.mw-home-hero__mobile-toggle-container {
    width: calc(100% / 3);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mw-home-hero__mobile-toggle-container::after {
    position: absolute;
    top: 50%;
    right: -9px;
    width: 18px;
    height: 33px;
    display: block;
    content: '';
    transform: translateY(-50%);
    background-image: url('../images/home-hero-toggle-slash.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.mw-home-hero__mobile-toggle-container:last-of-type::after {
    display: none;
}

.mw-home-hero__mobile-toggle-link {
    font-size: 16px;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    text-align: center;
    word-spacing: 9999999px;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .mw-home-hero__mobile-toggle-link:hover {
        color: #ffffff;
    }
}

.mw-home-hero__mobile-toggle-link.active {
    color: #ffffff;
}

/* ============================================
   DESKTOP VERSION
   ============================================ */

.mw-home-hero__desktop {
    display: none;
    height: 100%;
    position: relative;
}

@media (min-width: 1024px) {
    .mw-home-hero__desktop {
        display: block;
    }
}

/* Image Layers */
.mw-home-hero__image-layers {
    position: relative;
    height: 100%;
}

.mw-home-hero__image-layer {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.mw-home-hero__image-layer.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mw-home-hero__image-layer.hidden {
    opacity: 0;
    visibility: hidden;
}

.mw-home-hero__image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: all 0.3s ease;
}

.mw-home-hero__image-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* CSS overlay — colour tint on top of image */
.mw-home-hero__image-container::after,
.mw-home-hero__slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background-color: #0D0C33;
    opacity: 0.4;
}

/* Text Layers */
.mw-home-hero__text-layers {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
}

.mw-home-hero__text-layer {
    position: absolute;
    top: 50%;
    width: 100%;
    z-index: 4;
    transform: translateY(-50%) translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.75s ease, visibility 0.75s ease, transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.mw-home-hero__text-layer.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(-50%) translateY(0);
}

.mw-home-hero__text-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

@media (min-width: 1024px) {
    .mw-home-hero__text-inner {
        padding: 0 60px;
    }
}

.mw-home-hero__text-inner > .mw-home-hero__tagline {
    max-width: 400px;
    text-align: left;
}

.mw-home-hero .mw-home-hero__text-inner > .mw-home-hero__btn-wrap {
    max-width: 400px;
    width: 100%;
    text-align: left;
    align-self: flex-end !important;
}

/* Tagline */
.mw-home-hero__tagline {
    color: #ffffff;
    font-size: 42px;
    line-height: 1.095;
    margin-bottom: 25px;
}

/* Mobile tagline sizing */
.mw-home-hero__slide-content .mw-home-hero__tagline {
    font-size: 28px;
    line-height: 1.21;
}

/* Button — always hidden, fades in after text on every slide */
.mw-home-hero__btn-wrap {
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.6s ease 0.4s;
}

.mw-home-hero__text-layer.active .mw-home-hero__btn-wrap {
    opacity: 1;
}

.mw-home-hero__btn-wrap.hidden {
    opacity: 0 !important;
    visibility: hidden;
    transition: none;
}

.mw-home-hero__btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 42px;
    padding: 2px 28px 0;
    border: none;
    border-radius: 50px;
    background-color: #ffffff;
    color: #2F31FC;
    text-decoration: none;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

@media (min-width: 1024px) {
    .mw-home-hero__btn {
        height: 48px;
        padding: 2px 36px 0;
        font-size: 17px;
        line-height: 17px;
    }
}

@media (hover: hover) {
    .mw-home-hero__btn:hover {
        background-color: #0D0C33;
        color: #ffffff;
    }
}

/* ============================================
   LOTTIE ANIMATION CONTAINERS
   ============================================ */

.mw-home-hero__animations-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 75px);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    visibility: visible;
    overflow: hidden;
    transform: translateY(-75px);
}

.mw-home-hero__animations-container.visible {
    opacity: 1;
    visibility: visible;
}

.mw-home-hero__animation-container {
    position: absolute;
    width: 100%;
    height: auto;
    min-height: 100%;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mw-home-hero__animation-container::after {
    display: block;
    content: '';
    padding-top: calc(1080 / 1920 * 100%);
    min-height: 100vh;
}

.mw-home-hero__animation-container.visible {
    opacity: 1;
    visibility: visible;
}

.mw-home-hero__animation-container svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   BOTTOM TOGGLES — Desktop (White bar, matching legacy)
   ============================================ */

.mw-home-hero__toggles {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    z-index: 10;
    background-color: #2F31FC;
    display: flex;
    transition: all 0.5s ease;
}

.mw-home-hero__toggles--off-bottom {
    transform: translateY(100%);
}

.mw-home-hero__toggle-container {
    width: calc(100% / 3);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mw-home-hero__toggle-container::after {
    position: absolute;
    top: 50%;
    right: -9px;
    width: 18px;
    height: 33px;
    display: block;
    content: '';
    transform: translateY(-50%);
    background-image: url('../images/home-hero-toggle-slash.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
}

@media (min-width: 1024px) {
    .mw-home-hero__toggle-container::after {
        background-image: url('../images/home-hero-toggle-slash-desktop.svg');
    }
}

.mw-home-hero__toggle-container:last-of-type::after {
    display: none;
}

.mw-home-hero__toggle-link {
    font-size: 16px;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (min-width: 1024px) {
    .mw-home-hero__toggle-link {
        font-size: 24px;
        line-height: 1;
    }
}

@media (hover: hover) {
    .mw-home-hero__toggle-link:hover {
        color: #ffffff;
    }
}

.mw-home-hero__toggle-link.active {
    color: #ffffff;
}

/* ============================================
   THEME VARIANTS — override Elementor inline styles
   (body prefix raises specificity above Elementor's generated selectors)
   ============================================ */

/* --- Dark theme (default) --- */
body .mw-home-hero--theme-dark .mw-home-hero__toggles,
body .mw-home-hero:not(.mw-home-hero--theme-light) .mw-home-hero__toggles {
    background-color: #2F31FC;
}

body .mw-home-hero--theme-dark .mw-home-hero__toggle-link,
body .mw-home-hero:not(.mw-home-hero--theme-light) .mw-home-hero__toggle-link {
    color: rgba(255, 255, 255, 0.7);
}

@media (hover: hover) {
    body .mw-home-hero--theme-dark .mw-home-hero__toggle-link:hover,
    body .mw-home-hero:not(.mw-home-hero--theme-light) .mw-home-hero__toggle-link:hover {
        color: #ffffff;
    }
}

body .mw-home-hero--theme-dark .mw-home-hero__toggle-link.active,
body .mw-home-hero:not(.mw-home-hero--theme-light) .mw-home-hero__toggle-link.active {
    color: #ffffff;
}

/* --- Light theme --- */
body .mw-home-hero--theme-light .mw-home-hero__toggles {
    background-color: #ffffff;
}

body .mw-home-hero--theme-light .mw-home-hero__toggle-link {
    color: rgba(13, 12, 51, 0.6);
}

@media (hover: hover) {
    body .mw-home-hero--theme-light .mw-home-hero__toggle-link:hover {
        color: #2F31FC;
    }
}

body .mw-home-hero--theme-light .mw-home-hero__toggle-link.active {
    color: #2F31FC;
}

/* Light theme: restore dark slash dividers */
.mw-home-hero--theme-light .mw-home-hero__toggle-container::after,
.mw-home-hero--theme-light .mw-home-hero__mobile-toggle-container::after {
    filter: none;
}

/* Light theme: mobile toggle bar */
.mw-home-hero--theme-light .mw-home-hero__mobile-toggles {
    background-color: #ffffff;
}

.mw-home-hero--theme-light .mw-home-hero__mobile-toggle-link {
    color: rgba(13, 12, 51, 0.6);
}

@media (hover: hover) {
    .mw-home-hero--theme-light .mw-home-hero__mobile-toggle-link:hover {
        color: #2F31FC;
    }
}

.mw-home-hero--theme-light .mw-home-hero__mobile-toggle-link.active {
    color: #2F31FC;
}

/* ============================================
   ARROWS + PAGER NAVIGATION
   ============================================ */

/* Arrow buttons — transparent, just the chevron */
.mw-home-hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transform: translateY(-50%);
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
    transition: filter 0.25s ease, opacity 0.25s ease;
}

@media (hover: hover) {
    .mw-home-hero__arrow:hover {
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.65));
        opacity: 0.8;
    }
}

.mw-home-hero__arrow:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 4px;
    border-radius: 4px;
}

.mw-home-hero__arrow--prev {
    left: 16px;
}

.mw-home-hero__arrow--next {
    right: 16px;
}

@media (min-width: 1024px) {
    .mw-home-hero__arrow--prev {
        left: 28px;
    }
    .mw-home-hero__arrow--next {
        right: 28px;
    }
}

/* Light theme arrows */
.mw-home-hero--theme-light .mw-home-hero__arrow {
    color: #0D0C33;
    filter: drop-shadow(0 1px 4px rgba(255, 255, 255, 0.3));
}

/* Pager dots — overlaid directly on the hero image, no background bar */
.mw-home-hero__pager {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 24px;
    background: transparent;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (min-width: 1024px) {
    .mw-home-hero__pager {
        bottom: 28px;
    }
}

.mw-home-hero__pager--off-bottom {
    opacity: 0;
    transform: translateY(16px);
}

.mw-home-hero__pager-dot {
    width: 32px;
    height: 2px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35) !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background 0.25s ease, width 0.25s ease;
}

.mw-home-hero__pager-dot.active {
    background: #ffffff !important;
    width: 48px;
}

/* Hover the whole pager to make it easier to click */
@media (hover: hover) {
    .mw-home-hero__pager:hover {
        transform: scale(1.2);
        transition: opacity 0.5s ease, transform 0.2s ease;
    }
}

.mw-home-hero__pager-dot:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
}

/* Light theme lines */
.mw-home-hero--theme-light .mw-home-hero__pager-dot {
    background: rgba(13, 12, 51, 0.2) !important;
}

.mw-home-hero--theme-light .mw-home-hero__pager-dot.active {
    background: #2F31FC !important;
}

/* Elementor editor: always show pager */
.elementor-editor-active .mw-home-hero__pager {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   INTRO ANIMATION
   ============================================ */

/* Hide entire hero initially, fade in when loaded */
.mw-home-hero--animate-intro {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.mw-home-hero--animate-intro.mw-home-hero--loaded {
    opacity: 1;
}

.mw-home-hero--animate-intro .mw-home-hero__text-layer--base {
    opacity: 0;
    transform: translateY(-50%) translateY(30px);
}

.mw-home-hero--animate-intro.mw-home-hero--loaded .mw-home-hero__text-layer--base.active {
    animation: mwHeroFadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

/* First button intro: longer delay on initial page load to follow the text animation */
.mw-home-hero--animate-intro .mw-home-hero__first-btn-wrap {
    opacity: 0;
    transition: opacity 0.6s ease 0.8s;
}

.mw-home-hero--animate-intro.mw-home-hero--loaded .mw-home-hero__text-layer--base.active .mw-home-hero__first-btn-wrap {
    opacity: 1;
}

@keyframes mwHeroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateY(0);
    }
}

@keyframes mwHeroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes mwHeroSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ============================================
   PAGER STYLES — lines (default, shorter), dots, pills
   ============================================ */

/* Lines: reduce default length */
.mw-home-hero__pager-dot {
    width: 24px;
}

.mw-home-hero__pager-dot.active {
    width: 36px;
}

/* Dots: traditional round */
.mw-home-hero--pager-dots .mw-home-hero__pager-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mw-home-hero--pager-dots .mw-home-hero__pager-dot.active {
    width: 10px;
    height: 10px;
}

/* Pills: small rounded capsules */
.mw-home-hero--pager-pills .mw-home-hero__pager-dot {
    width: 16px;
    height: 3px;
    border-radius: 3px;
}

.mw-home-hero--pager-pills .mw-home-hero__pager-dot.active {
    width: 28px;
    height: 3px;
}

/* Light theme active states for all styles */
.mw-home-hero--theme-light.mw-home-hero--pager-dots .mw-home-hero__pager-dot.active,
.mw-home-hero--theme-light.mw-home-hero--pager-pills .mw-home-hero__pager-dot.active {
    background: #2F31FC !important;
}

/* Side-right dot adjustments */
.mw-home-hero--nav-side-right.mw-home-hero--pager-dots .mw-home-hero__pager-dot,
.mw-home-hero--nav-side-right.mw-home-hero--pager-dots .mw-home-hero__pager-dot.active {
    width: 10px;
    height: 10px;
}

/* Side-right pill adjustments */
.mw-home-hero--nav-side-right.mw-home-hero--pager-pills .mw-home-hero__pager-dot {
    width: 3px;
    height: 16px;
}

.mw-home-hero--nav-side-right.mw-home-hero--pager-pills .mw-home-hero__pager-dot.active {
    width: 3px;
    height: 28px;
}

/* ============================================
   SIDE-RIGHT NAVIGATION
   ============================================ */

@media (min-width: 1024px) {
    /* Pager: vertical layout on right edge */
    .mw-home-hero--nav-side-right .mw-home-hero__pager {
        position: absolute;
        top: 50%;
        bottom: auto;
        left: auto;
        right: 28px;
        transform: translateY(-50%);
        flex-direction: column;
        gap: 12px;
        padding: 16px 8px;
    }

    .mw-home-hero--nav-side-right .mw-home-hero__pager--off-bottom {
        opacity: 0;
        transform: translateY(-50%) translateX(16px);
    }

    /* Lines: rotate from horizontal to vertical bars */
    .mw-home-hero--nav-side-right .mw-home-hero__pager-dot {
        width: 2px;
        height: 24px;
    }

    .mw-home-hero--nav-side-right .mw-home-hero__pager-dot.active {
        width: 2px;
        height: 36px;
    }

    /* Hover: scale vertically instead of horizontally */
    .mw-home-hero--nav-side-right .mw-home-hero__pager:hover {
        transform: translateY(-50%) scale(1.2);
    }

    /* Arrows: reposition to above/below pager on right side */
    .mw-home-hero--nav-side-right .mw-home-hero__arrow--prev {
        top: auto;
        bottom: calc(50% + 80px);
        left: auto;
        right: 24px;
        transform: rotate(90deg);
    }

    .mw-home-hero--nav-side-right .mw-home-hero__arrow--next {
        top: calc(50% + 80px);
        left: auto;
        right: 24px;
        transform: rotate(90deg);
    }
}

/* ============================================
   SCROLL DOWN INDICATOR
   ============================================ */

.mw-home-hero__scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* When bottom toggles are present, sit above them */
.mw-home-hero__toggles ~ .mw-home-hero__scroll-indicator {
    bottom: 105px;
}

/* When pager is present at bottom, sit above it */
.mw-home-hero:not(.mw-home-hero--nav-side-right) .mw-home-hero__pager ~ .mw-home-hero__scroll-indicator {
    bottom: 78px;
}

/* When pager is side-right, indicator stays at bottom edge */
.mw-home-hero--nav-side-right .mw-home-hero__scroll-indicator {
    bottom: 24px;
}

@media (hover: hover) {
    .mw-home-hero__scroll-indicator:hover {
        color: #ffffff;
    }
}

.mw-home-hero__scroll-text {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.mw-home-hero__scroll-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    animation: mwScrollBounce 2s ease-in-out infinite;
}

/* Mouse scroll wheel animation */
.mw-home-hero__scroll-wheel {
    animation: mwScrollWheel 1.5s ease-in-out infinite;
}

@keyframes mwScrollWheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateY(8px);
    }
    100% {
        opacity: 0;
        transform: translateY(16px);
    }
}

/* Gentle bounce on the icon only */
@keyframes mwScrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

/* Intro animation: hide initially, fade in with hero */
.mw-home-hero--animate-intro .mw-home-hero__scroll-indicator {
    opacity: 0;
}

.mw-home-hero--animate-intro.mw-home-hero--loaded .mw-home-hero__scroll-indicator {
    animation: mwHeroFadeIn 0.8s ease 1.4s forwards;
}

/* Mobile adjustments */
.mw-home-hero__mobile-toggles ~ .mw-home-hero__scroll-indicator {
    bottom: 84px;
}

/* Light theme */
.mw-home-hero--theme-light .mw-home-hero__scroll-indicator {
    color: rgba(13, 12, 51, 0.5);
}

@media (hover: hover) {
    .mw-home-hero--theme-light .mw-home-hero__scroll-indicator:hover {
        color: #2F31FC;
    }
}

/* ============================================
   ELEMENTOR EDITOR STYLES
   ============================================ */

.elementor-editor-active .mw-home-hero {
    height: 80vh;
    min-height: 500px;
}

.elementor-editor-active .mw-home-hero--animate-intro .mw-home-hero__text-layer--base {
    opacity: 1;
    transform: translateY(-50%);
}

.elementor-editor-active .mw-home-hero--animate-intro .mw-home-hero__btn-wrap {
    opacity: 1;
}

.elementor-editor-active .mw-home-hero__toggles,
.elementor-editor-active .mw-home-hero__pager {
    transform: translateY(0);
}

.elementor-editor-active .mw-home-hero__animations-container {
    display: none;
}

/* Editor: always show scroll indicator */
.elementor-editor-active .mw-home-hero__scroll-indicator {
    opacity: 1;
}

/* ==========================================================================
   MW IFRAME EMBED WIDGET
   ========================================================================== */

.mw-iframe-embed {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.mw-iframe-embed__frame {
    display: block;
    width: 100%;
    border: none;
    height: 610px;
}

/* Loading Overlay */
.mw-iframe-embed__loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    transition: opacity 0.4s ease;
}

.mw-iframe-embed__dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mw-iframe-embed__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0D0C33;
    animation: mwIframeDotBounce 1.4s ease-in-out infinite both;
}

.mw-iframe-embed__dot:nth-child(1) {
    animation-delay: 0s;
}

.mw-iframe-embed__dot:nth-child(2) {
    animation-delay: 0.16s;
}

.mw-iframe-embed__dot:nth-child(3) {
    animation-delay: 0.32s;
}

@keyframes mwIframeDotBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   MW FLOATING CHAT WIDGET
   ========================================================================== */

.mw-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Trigger Button ────────────────────────────────────── */

.mw-chat-widget__trigger,
.mw-chat-widget__trigger:focus,
.mw-chat-widget__trigger:visited {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background-color: #232080 !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    position: relative;
    z-index: 2;
}

.mw-chat-widget__trigger:hover {
    background-color: #2F31FB !important;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.mw-chat-widget__trigger:active {
    background-color: #2F31FB !important;
    transform: scale(0.97);
}

.mw-chat-widget__icon {
    width: 28px;
    height: 28px;
    color: #ffffff;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Default: show chat icon, hide close icon */
.mw-chat-widget__icon--close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.mw-chat-widget__icon--chat {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Active: show close icon, hide chat icon */
.mw-chat-widget--active .mw-chat-widget__icon--chat {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.mw-chat-widget--active .mw-chat-widget__icon--close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* ── Popup ─────────────────────────────────────────────── */

.mw-chat-widget__popup {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 550px;
    height: var(--mw-chat-height, 610px);
    max-height: calc(100vh - 120px); /* never taller than viewport minus button + spacing */
    border-radius: 16px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    padding: var(--mw-chat-padding, 0px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.mw-chat-widget--active .mw-chat-widget__popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.mw-chat-widget__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* ── Loader (inside popup) ─────────────────────────────── */

.mw-chat-widget__loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    transition: opacity 0.4s ease;
}

.mw-chat-widget__dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mw-chat-widget__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0D0C33;
    animation: mwIframeDotBounce 1.4s ease-in-out infinite both;
}

.mw-chat-widget__dot:nth-child(1) {
    animation-delay: 0s;
}

.mw-chat-widget__dot:nth-child(2) {
    animation-delay: 0.16s;
}

.mw-chat-widget__dot:nth-child(3) {
    animation-delay: 0.32s;
}

/* ── Tooltip Prompt ────────────────────────────────────── */

.mw-chat-widget__tooltip {
    position: absolute;
    bottom: 8px;
    right: calc(100% + 12px);
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #4A4CFF;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 14px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 24px rgba(74, 76, 255, 0.35);
    z-index: 1;
    /* Initial hidden state — starts nudged slightly left */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

/* Arrow pointing right towards the chat button */
.mw-chat-widget__tooltip::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #4A4CFF;
}

/* Visible state — nudges in from the left to rest position */
.mw-chat-widget__tooltip--visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: all;
}

/* Hiding state (fade out, slide back left) */
.mw-chat-widget__tooltip--hiding {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    pointer-events: none;
}

/* Hide tooltip when chat is open */
.mw-chat-widget--active .mw-chat-widget__tooltip {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.mw-chat-widget__tooltip-text {
    display: inline;
}

/* ── Mobile: full-screen popup ─────────────────────────── */

@media (max-width: 767px) {
    .mw-chat-widget__popup {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        transform: translateY(20px);
        transform-origin: bottom center;
    }

    .mw-chat-widget--active .mw-chat-widget__popup {
        transform: translateY(0);
    }

    /* Keep trigger button above the full-screen popup */
    .mw-chat-widget--active .mw-chat-widget__trigger {
        z-index: 100001;
    }

    /* Tooltip: reposition above button on mobile */
    .mw-chat-widget__tooltip {
        bottom: calc(100% + 12px);
        right: 0;
        white-space: nowrap;
        font-size: 12px;
        padding: 9px 14px;
        border-radius: 12px;
    }

    /* Arrow: point down towards button instead of right */
    .mw-chat-widget__tooltip::after {
        right: 18px;
        top: auto;
        bottom: -7px;
        transform: none;
        border-top: 8px solid #4A4CFF;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: none;
    }
}

/* ==========================================================================
   FLIPBOOK – Overrides
   ========================================================================== */

/* Prevent the scroll-to-top jump when the lightbox opens.
   The vendor class uses position:fixed + top:0 which yanks the viewport,
   and margin/padding:0 which strips out admin bar or header offsets.
   overflow:hidden alone is sufficient — the lightbox overlay is already fixed. */
body.flipbook-overflow-hidden,
html.flipbook-overflow-hidden {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    margin: unset !important;
    padding: unset !important;
}

/* Override the vendor spinner with a larger branded circular spinner.
   Double-class selector beats flipbook.min.css which loads later. */
.cssload-container .cssload-speeding-wheel {
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: #2F31FC;
    border-left-color: transparent;
    border-right-color: transparent;
    animation: cssload-spin 0.7s infinite linear;
}

/* Immediate loading overlay shown on click, before the plugin lightbox appears. */
.mw-flipbook-loading {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 12, 51, 0.9);
    opacity: 1;
    transition: opacity 0.25s ease;
}

.mw-flipbook-loading--hidden {
    opacity: 0;
    pointer-events: none;
}

.mw-flipbook-loading__spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: #2F31FC;
    border-radius: 50%;
    animation: mw-flipbook-spin 0.7s infinite linear;
}

@keyframes mw-flipbook-spin {
    to { transform: rotate(360deg); }
}
