/* Radzen main layout overrides */
.rz-body, .rz-main, .rz-layout-container {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.rz-layout, .rz-body, .rz-main {
    overflow-x: hidden !important;
    width: 100%;
}

.rz-body, .rz-main {
    padding-top: 0 !important;
}

.rz-layout {
    --rz-footer-height: 0px !important;
    font-family: 'Montserrat', sans-serif !important;
}

.rz-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* --- SCROLLBAR HIDDEN LOGIC --- */
html, body {
    overflow: -moz-scrollbars-none;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    overflow-x: hidden !important;
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

    /* Chrome, Safari, and newer Edge */
    body::-webkit-scrollbar,
    .rz-body::-webkit-scrollbar,
    .rz-main::-webkit-scrollbar,
    .rz-layout-container::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }


/* --- BRAND VARIABLES --- */
:root {
    --polaris-purple-deep: #0A041A;
    --polaris-purple-main: #291473;
    --polaris-accent-green: #6DD185;
    --polaris-accent-violet: #A683FF;
    --polaris-card-bg: linear-gradient(180deg, rgba(41, 20, 115, 0.9) 0%, rgba(10, 4, 26, 0.9) 100%);
    --polaris-hero-full: linear-gradient(180deg, rgba(29, 14, 81, 0.65) 0%, rgba(10, 4, 26, 0.85) 100%), url('../images/FullHero.png');
    --Text-Dark-Secondary: #291473;
}

/* --- LAYOUT UTILITIES --- */
.full-width-section {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* --- HERO SECTION --- */
/* Container adjustments */
.HeroBtnStack {
    width: 100%;
    display: flex;
}

.header-content-wrapper {
    display: flex;
    align-items: center;
    margin-left: 15%;
    width: 100%;
    justify-content: flex-start;
}

.logo-container {
    flex: 0 1 auto;
    margin-right: 20%;
}

.desktop-nav {
    flex: 0 1 auto;
}

/* Force hide on desktop regardless of Radzen internal styles */
.mobile-menu-toggle {
    display: none !important;
}

.HeroSlogan {
    width: 100% !important;
    margin-left: 15%; /* Maintains vertical alignment with the logo */
}

/* Container for the H2 and the 'Book a demo' button */
.HeroTitleContainer {
    flex: 1;
    max-width: 40%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

/* The Main H2 Title */
.HeroTitle {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

/* The Paragraph Description */
.Herodesc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.6;
    flex: 1;
    margin: 0;
}

.ShapesIcon {
    display: none !important;
}

/* Mobile Specific Adjustments */
@media (max-width: 768px) {
    /* Layout */
    .hero-outer {
        min-height: 50vh;
        background-attachment: scroll;
    }

    .spec-mask-wrapper {
        pointer-events: none;
    }

    .hero-inner {
        min-height: 45vh !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .header-content-wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-left: 5%;
    }

    .HeroBtnStack {
        width: 100vw !important;
        min-width: 100vw !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-left: calc(-50vw + 50%) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .rz-body {
    padding-top: 0 !important;
    }

    .logo-container {
    padding-top: 0px !important;
    }

    .ShapesIcon, .desktop-nav, .MobmenuSpan br, .Herodesc br {
        display: none !important;
    }

    /* Typography: Logo & Hero */
    .polaris-logo {
        font-size: 25px !important;
        letter-spacing: -0.01em;
    }

    .polaris-highlight {
        font-size: 20px !important;
        letter-spacing: -0.01em;
    }

    .HeroSlogan {
        margin-left: 5% !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .HeroTitleContainer {
        max-width: 90%;
    }

    .HeroTitle {
        font-size: 2rem;
    }

    .Herodesc {
        font-size: 1rem;
        z-index: 1000;
    }


    /* Navigation Container & Panels */
    .mobile-nav-container {
        display: flex;
        flex-direction: column;
        margin-top: 40px;
        width: 100%;
    }

    .mobile-dropdown-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 9999;
        background: var(--polaris-hero-full) center/cover no-repeat;
        backdrop-filter: blur(10px);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        overflow: hidden;
    }

        .mobile-dropdown-panel.is-open {
            transform: translateX(0);
        }

    /* Nav Items */
    .mobile-nav-item {
        display: flex;
        align-items: center;
        width: 100%;
        color: white;
        padding: 1.5rem 15%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        gap: 1.5rem;
        font-weight: 500;
    }

        .mobile-nav-item:active {
            background: rgba(255, 255, 255, 0.1);
        }

    .MobmenuTextWrapper {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .MobmenuTitle {
        color: white;
        font-size: 1.2rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .MobmenuSpan {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.85rem;
        line-height: 1.4;
    }


    /* Header & Buttons */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 15% 0;
    }

    .mobile-close-btn i.rzi, .mobile-close-btn .rz-button-md .rzi {
        position: absolute;
        top: 20px;
        right: 5%;
        color: white !important;
        font-size: 2.5rem !important;
        font-family: 'Material Icons' !important;
        z-index: 10001 !important;
    }

    /* Ensure the button box doesn't collapse */
    .mobile-close-btn .rz-button-box {
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
    }

    .menu-slider-wrapper {
        display: flex;
        width: 200vw; /* Two panes wide */
        height: 100%;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(0); /* Default: show Main Menu */
    }

        /* When products are active, slide the whole thing left by one screen width */
        .menu-slider-wrapper.show-products {
            transform: translateX(-100vw);
        }

    /* Back button specific styling */
    .mobile-back-btn {
        color: white !important;
        padding-left: 0 !important;
        font-size: 0.6rem !important;
    }

        .mobile-back-btn .rz-button-text {
            margin-left: 8px;
            text-transform: none;
        }

    .mobile-menu-toggle {
        color: white !important;
        display: block !important; /* Show hamburger */
        margin-right: 10%;
    }

        .mobile-menu-toggle.rz-button .rzi {
            height: 1.5rem !important;
            width: 1.5rem !important;
        }

    /* Ensure the RadzenStack inside the mobile menu fills space nicely */
    .mobile-dropdown-panel .rz-stack {
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    /* Styling the buttons inside the mobile menu to be more prominent */
    .mobile-dropdown-panel .nav-button-glass1,
    .mobile-dropdown-panel .clearBtn {
        width: 80%;
        font-size: 1.5rem;
        padding: 1rem;
    }

    .menu-slide-in {
        animation: slideInRight 0.4s forwards cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
        }

        to {
            transform: translateX(0);
        }
    }
}


@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.polaris-logo {
    color: #FFFFFF;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

.polaris-highlight {
    color: #6DD185;
    font-weight: 800;
    font-size: 2rem;
}

.hero-outer {
    position: relative;
    min-height: 400px;
    background-image: var(--polaris-hero-full);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
}

.hero-inner {
    min-height: 40vh;
    width: 100%;
    padding: 2rem;
    z-index: 100;
}

.spec-mask-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Clips the specks */
    pointer-events: none;
    z-index: 0;
}

.spec-layer {
    /* Your existing box-shadow CSS remains exactly the same */
    position: absolute;
    top: 0;
    left: 0;
}


/* --- REUSABLE BUTTONS & CARDS --- */
.clearBtn {
    width: 160px;
    height: 20px;
    border-radius: 3rem !important;
    font-weight: 200!important;
    background: rgba(225, 214, 253, 0.1) !important;
    color: white !important;
    border: 1.1px solid rgba(255, 255, 255, 0.3) !important;
    text-transform: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

    .clearBtn:hover {
        background: rgba(225, 214, 253, 0.2) !important;
        filter: brightness(1.6) !important;
    }


/* INDEX PAGE */
/* --- Section 1 Products --- */
.polaris-nav-dropdown.rz-menu {
    background: transparent !important;
    border: none !important;
}

.productsBtntxt {
    font-weight: 250 !important;
}

.navBtn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: none !important;
    padding: 0 !important;
    background: rgba(225, 214, 253, 0.1);
    border-radius: 50px !important;
    height: 35px !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 0.8px solid transparent !important;
    background:
    /* Top layer: Keep this dark/opaque to block the border from the middle */
    linear-gradient(rgba(80, 70, 120, 0.8), rgba(80, 70, 120, 0.8)) padding-box,
    /* Bottom layer: The Fading Border Gradient */
    linear-gradient( 135deg, transparent 0%, #A855F7 8%, #ffff 75%, transparent 100% ) border-box !important;
}

    .navBtn.rz-button,
    .navBtn .rz-button-box {
        background-color: transparent !important;
        box-shadow: none !important;
    }

    .navBtn.rz-menu,
    .navBtn .rz-navigation-menu {
        background: rgba(234, 255, 239, 0.2) !important;
        box-shadow: none !important;
        border: none !important;
    }

    .navBtn:hover {
        filter: brightness(1.4);
        color: var(--Text-Dark-Secondary, #291473);
    }

    .navBtn.rz-navigation-item-text {
        font-weight: 100 !important;
    }

.nav-button-glass1 {
    border-radius: 3rem !important;
    font-weight: 250;
    background-color: rgba(80, 70, 120, 0.5) !important;
    color: white !important;
    border: 0.1px solid rgba(255, 255, 255, 0.2) !important;
    text-transform: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    height: 35px !important;
    background:
    /* Top layer: Keep this dark/opaque to block the border from the middle */
    linear-gradient(rgba(80, 70, 120, 0.8), rgba(80, 70, 120, 0.8)) padding-box,
    /* Bottom layer: The Fading Border Gradient */
    linear-gradient( 135deg, transparent 0%, #A855F7 8%, #ffff 75%, transparent 100% ) border-box !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


    .nav-button-glass1:hover {
        color: var(--Text-Dark-Secondary) !important;
        background: linear-gradient(rgba(225, 214, 253, 0.75), rgba(225, 214, 253, 0.75)) padding-box, linear-gradient(135deg, transparent 0%, rgba(168, 85, 247, 0.35) 25%, rgba(110, 231, 247, 0.35) 75%, transparent 100%) border-box !important;
    }

        .nav-button-glass1:hover .rz-menuitem-text,
        .nav-button-glass1:hover .rz-navigation-item-text,
        .nav-button-glass1:hover .rz-navigation-item-text {
            color: var(--Text-Dark-Secondary) !important;
        }

    .nav-button-glass1.rz-button .rz-button-text,
    .nav-button-glass1.rz-menu .rz-navigation-item-text,
    .nav-button-glass1.rz-menu .rz-menuitem-text {
        font-weight: 250 !important;
    }

    .nav-button-glass1.rz-menu:not(.rz-profile-menu) .rz-navigation-menu:hover {
        color: var(--Text-Dark-Secondary) !important;
        background: linear-gradient(rgba(225, 214, 253, 0.75), rgba(225, 214, 253, 0.75)) padding-box, linear-gradient(135deg, transparent 0%, rgba(168, 85, 247, 0.35) 25%, rgba(110, 231, 247, 0.35) 75%, transparent 100%) border-box !important;
    }


/*  product dropdown Section */
/* 1. Target the main button container */
/* 1. Ensure the parent button is the anchor */
.polaris-nav-dropdown.rz-navigation-item {
    position: relative !important;
    max-width: 250px !important;
}

/* 2. Target the menu precisely */
.nav-button-glass1 .rz-navigation-menu {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 33px !important; /* Adjust based on your header height */
    margin: 0 !important;
    width: max-content !important;
    z-index: 1000 !important;
}

/* 3. Cleanup the Margin conflict */
.nav-button-glass1 .rz-navigation-menu {
    /* If you want centering, don't use horizontal margin here. 
       Use padding instead to keep the 'float' look internal. */
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 2. Target the actual popup menu list */
.nav-button-glass1 .rz-navigation-menu {
    border-radius: 25px !important;
    margin: 8px !important; /* Adjust this value for the "form" shape */
    overflow: hidden !important; /* CRITICAL: clips the internal items to the curve */
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 8px 0 !important;
    overflow: hidden !important;
}

/* 3. Ensure the items inside don't have sharp hover backgrounds */
.nav-button-glass1 .rz-navigation-item-link {
    border-radius: 0 !important; /* Keep items flat inside the rounded container */
}


.polaris-nav-dropdown .rz-navigation-item-wrapper {
    font-weight: 250 !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    text-transform: none !important;
    padding: 2px 16px !important;
    transition: all 0.3s ease;
    overflow: hidden;
}

.polaris-nav-dropdown .rz-navigation-menu.rz-open {
    background-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
    overflow: hidden;
}

.polaris-nav-dropdown .rz-navigation-item-wrapper {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.polaris-nav-dropdown .rz-navigation-menu,
.polaris-nav-dropdown .rz-navigation-menu.rz-open,
.polaris-nav-dropdown .rz-navigation-menu > ul {
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}
/* 1. Add horizontal padding to the list container to create the 'gap' */
.nav-button-glass1 .rz-navigation-menu > ul {
    padding: 8px 5px !important; /* Vertical 8px, Horizontal 12px gap from edges */
    display: flex;
    flex-direction: column;
    gap: 4px; /* Optional: adds a small space between items */
}

/* 2. Style the hover state to be a rounded pill */
.nav-button-glass1 .rz-navigation-item-wrapper {
    border-radius: 15px !important; /* This creates the rounded 'inset' look */
    margin: 0 !important;
    transition: background-color 0.2s ease;
}

    /* 3. Ensure the hover background doesn't bleed out */
    .nav-button-glass1 .rz-navigation-item-wrapper:hover {
        /* Your preferred hover color */
        /* background-color: rgba(255, 255, 255, 0.5) !important;  */
    }

/* 4. Fix internal alignment so the icon/text doesn't touch the new pill edges */
.dropdown-item-content {
    padding: 8px 12px !important;
    max-width: 100% !important; /* Allow it to fill the pill */
}

/* Internal Item Layout */
.dropdown-item-content {
    display: flex;
    align-items: center;
    max-width: 250px;
    gap: 12px;
    padding: 8px 0;
}

.dropdown-icon {
    flex-shrink: 0;
    max-width: 60px;
    max-height: 60px;
    border-radius: 50%;
    padding: 6px;
    object-fit: contain;
}

.dropdown-title {
    font-weight: 500;
    color: #291473;
    font-size: 0.95rem;
    display: block;
}

.dropdown-sub {
    font-weight: 400;
    line-height: 0.2;
    font-size: 0.75rem;
    color: #291473;
}

.view-all-wrapper {
    font-weight: 430;
    color: #291473;
}

    .view-all-wrapper:hover {
        text-decoration: underline !important;
        cursor: pointer; /* Makes it feel like a clickable link */
    }



/* View All Style */
.view-all-btn.rz-button {
    display: inline-flex !important;
    width: auto !important; /* Prevents stretching to container width */
    min-width: 0 !important; /* Overrides Radzen's default min-width */
    height: 20px !important; /* Your desired height */
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important; /* Ensures the SVG isn't clipped */
}

/* 2. Target the internal Radzen box and text span */
.view-all-btn .rz-button-box,
.view-all-btn .rz-button-text {
    display: flex !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    line-height: 0 !important; /* Removes vertical space from font metrics */
}

.view-all-btn img {
    height: 100%; /* Fits the 30px height of the button */
    width: auto; /* Maintains aspect ratio (prevents stretching) */
    display: block;
}

.view-all-btn.pos-left {
    align-self: flex-start !important;
    margin-left: 11%; /* Adjust this for the desired 'padding' from the left edge */
}


.view-all-btn:hover {
    filter: brightness(0.8) !important;
}

.view-all-arrow {
    width: 18px;
    filter: invert(27%) sepia(91%) saturate(2352%) hue-rotate(238deg) brightness(95%) contrast(105%);
}

.ProductStack {
    background: linear-gradient(180.45deg, #FAFCFF 0.39%, #EAF2FF 99.61%);
}

.product-card-main {
    /* Keep all your original styles */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex: 0 1 410px !important;
    width: 100% !important;
    max-width: 420px !important;
    height: 550px !important;
    background: linear-gradient(180deg, rgba(41, 20, 115, 0.9) 0%, rgba(10, 4, 26, 0.9) 100%) !important;
    color: #F3F2F4 !important;
    border-radius: 0.8rem !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    padding: 1.5rem !important;
    padding-top: 2.5rem !important;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    white-space: nowrap;
    
    /* Required for the hover effect to work correctly */
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out !important;
}

/* The "Glow" layer that brightens the card without affecting the icon */
.product-card-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* This creates the brightening effect solely on the background */
    background: rgba(255, 255, 255, 0.15); 
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: -1; /* Puts the brightness behind your text and icons */
}

.product-card-main:hover {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6) !important;
    /* Optional: a tiny lift looks very professional on product cards */
}

.product-card-main:hover::before {
    opacity: 0.9; /* Shows the brightness layer on hover */
}

.productcardbtn {
    min-width: 190px;
    height: 33px;
    font-weight: 300;
    color: white !important;
    border-radius: 3rem !important;
    background-color: transparent !important;
    border: 1px solid var(--polaris-accent-violet) !important;
    padding: 0 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.productcardIcon {
    width: 100%;
    max-height: 150px;
    margin-bottom: 1rem;
    object-fit: contain;
}

/* Mobile Tweak */
@media (max-width: 480px) {
    .product-card-main {
        width: 90% !important;
        height: auto !important; /* Avoid overflow on tiny screens */
        min-height: 450px !important;
        max-width: 380px !important;
    }
    .product-card-main p{
        font-size: 0.9rem;
    }
}


.product-card-mini {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 320px !important;
    height: 420px !important;
    border-radius: 0.8rem !important;
    background: var(--polaris-card-bg) !important;
    color: #F3F2F4 !important;
    border: none !important;
    padding: 1.5rem 1.5rem 2.5rem 1.5rem !important;
    text-align: center;
    transition: all 0.3s ease !important;
    white-space: normal !important;
    overflow: hidden;
}


    .product-card-mini p {
        width: 100%;
        margin: 0;
        line-height: 1.5;
        font-size: 0.95rem;
        overflow-wrap: break-word;
    }

    .product-card-mini h2 {
        margin-bottom: 0.5rem;
        font-size: 1.4rem;
    }

    .product-card-mini:hover {
        filter: brightness(1.25) !important;
    }

/* --- index.razor Section 2 Services --- */
/* Desktop Defaults */
.services-header-stack {
    flex-direction: row !important;
    gap: 20rem;
    width: 100%;
    align-items: baseline;
    padding: 4rem 2rem;
}

.services-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--polaris-purple-main);
}

.services-heading {
    font-weight: 700;
    font-size: 2.5rem;
    margin: 0;
    line-height: 1;
}

.services-description {
    margin: 0;
    color: var(--polaris-purple-deep);
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 420px;
}

/* --- MOBILE ADAPTATION --- */
@media (max-width: 768px) {
    .services-header-stack {
        flex-direction: column !important; /* Stack vertically */
        gap: 1.5rem !important; /* Tighten the 20rem gap to something sane */
        padding: 2rem 5% !important; /* Match your site's mobile margin */
        align-items: flex-start !important;
    }

    .services-heading {
        font-size: 2rem; /* Scale down heading slightly */
    }

    .services-description {
        font-size: 1.1rem;
        max-width: 100%; /* Allow text to use full width */
    }

    /* Remove the hard line breaks on mobile so text flows naturally */
    .desktop-br {
        display: none;
    }

    .services-circle {
        width: 15px !important;
        height: 15px !important;
    }
}



.service-btn {
    height: 30px;
    border-radius: 3rem !important;
    font-weight: 300;
    text-transform: none !important;
    color: var(--polaris-purple-main) !important;
    border: 1px solid transparent !important;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #6DD185 0%, #95BEFF 100%) border-box !important;
}

    .service-btn:hover {
        /* Simply define the gradient as the background */
        background: linear-gradient(90deg, rgba(109, 209, 133, 0.3) 0%, rgba(149, 190, 255, 0.3) 100%) !important;
        color: #1b243b !important;
    }

.service-btn-active {
    height: 30px;
    border-radius: 3rem !important;
    font-weight: 300;
    text-transform: none !important;
    color: var(--polaris-purple-main) !important;
    border: 1px solid transparent !important;
    background: linear-gradient(90deg, #C5EDCE 0%, #C5EDCE 100%) !important;
}

.service-content-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(234, 255, 239, 0.3) 100%) !important;
    border-radius: 2rem !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    /* Change: Use responsive padding */
    padding: 5% !important;
    /* Change: Increase width on smaller screens, cap it on large ones */
    width: 78% !important;
    max-width: 1200px;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: row;
    /* Change: Ensure the card can grow as tall as the text needs */
    height: auto !important;
    min-height: min-content;
    box-sizing: border-box;
    align-items: center; /* Vertically center icon with text */
    gap: 2rem; /* Adds space between icon and text without relying on padding */
}

/* Change: Allow the layout to stack vertically on very narrow screens */
@media (max-width: 992px) {
    .service-content-card {
        flex-direction: column;
        text-align: center;
        width: 95% !important;
    }
}

.ServiceIcon {
    max-width: 200px !important;
    height: auto !important;
    flex-shrink: 0; /* Prevents the icon from squishing */
}

.ServiceCardText {
    text-wrap: pretty; /* Adds breathing room to make it more readable */
}

.service-display-header {
    color: var(--polaris-purple-main);
    /* Change: Remove nowrap to allow text to wrap */
    white-space: normal !important;
    font-weight: 400;
    font-size: clamp(1.2rem, 2vw, 25px); /* Smoothly scales font size */
    margin-bottom: 1.5rem;
}

.Show-more-btn {
    margin: 0 auto;
    width: 130px;
    height: 30px;
    font-weight: 300;
    background: linear-gradient(90deg, #4E3A98 0%, #4E3A98 100%) !important;
    border-radius: 3rem !important;
    border: 1px solid var(--polaris-accent-violet) !important;
}

@media (max-width: 768px) {

    .service-card-wrapper {
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 0 5%;
    }

    /* 2. The Icon */
    .ServiceIcon {
        flex: 0 0 60px !important; /* Fixed width of 60px */
        max-width: 100px !important;
        max-height: 100px !important;
        order: 1; /* First in row */
        margin: 0 !important;
    }

    /* 3. The Title */
    .service-display-header {
        flex: 1 1 calc(100% - 90px) !important; /* Takes remaining row space */
        order: 2; /* Second in row, next to icon */
        margin: 0 !important;
        font-size: 1.3rem !important;
        text-align: left !important;
    }

    /* 4. The Description Text */
    .ServiceCardText {
        flex: 0 0 100% !important; /* Forces this to take a full new line */
        order: 3; /* Last in order, appears below */
        margin-top: 10px !important;
        font-size: 1rem !important;
        line-height: 1.6;
        text-align: left !important;
    }
}


/* Card backgrounds */
/* Base card style with smooth transition */
.service-content-card {
    transition: background 0.6s ease-in-out, border-color 0.6s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bg-development {
    background: linear-gradient(90deg, rgba(226, 246, 231, 0.3) 0%, rgba(213, 229, 255, 0.3) 100%) !important;
}

.bg-integration {
    background: linear-gradient(90deg, rgba(213, 229, 255, 0.3) 0%, rgba(197, 237, 206, 0.3) 100%) !important;
}

.bg-consulting {
    background: linear-gradient(90deg, rgba(197, 237, 206, 0.3) 0%, rgba(213, 229, 255, 0.3) 100%) !important;
}

.bg-training {
    background: linear-gradient(90deg, rgba(213, 229, 255, 0.3) 0%, rgba(197, 237, 206, 0.3) 100%) !important;
}

.bg-support {
    background: linear-gradient(90deg, rgba(197, 237, 206, 0.3) 0%, rgba(213, 229, 255, 0.3) 100%) !important;
}

/* Automatic carousel for service buttons */
.marquee-container {
    overflow: hidden;
    width: 65%;
    white-space: nowrap;
    position: relative;
    padding: 1rem 0;
    /* Sharper taper: The fade now happens in only 5% of the width instead of 15% */
    mask-image: linear-gradient( to right, transparent 0%, black 2%, black 98%, transparent 100% );
    /* Standard prefix for better browser support */
    -webkit-mask-image: linear-gradient( to right, transparent 0%, black 2%, black 98%, transparent 100% );
}

.marquee-track {
    display: flex;
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll-marquee 60s linear infinite; /* Adjust for speed */
}

@media (max-width: 768px) {
    .marquee-container {
        width: 100% !important; /* Take full width on mobile */
        padding: 0.5rem 0;
        /* Adjust mask for smaller screens so items don't disappear too early */
        mask-image: linear-gradient( to right, transparent 0%, black 5%, black 95%, transparent 100% );
        -webkit-mask-image: linear-gradient( to right, transparent 0%, black 5%, black 95%, transparent 100% );
    }

    .marquee-track {
        /* Mobile users scroll faster; you might want to speed up the animation */
        animation: scroll-marquee 30s linear infinite !important;
        gap: 10px; /* Ensure buttons don't touch */
    }

    /* On mobile, 'hover' states can be sticky. 
       We often replace them with 'active' (tap) feedback. */
    .service-btn:active {
        background: linear-gradient(90deg, rgba(109, 209, 133, 0.4) 0%, rgba(149, 190, 255, 0.4) 100%) !important;
    }
}

/* Pause the movement when the user hovers to click a button */
.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    gap: 1rem;
    padding-right: 1rem; /* Maintains gap between set 1 and set 2 */
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.3%);
    }
}

/* --- Products Page Base Styles --- */
.ProductStackLeft, .ProductStackRight {
    padding: 80px 0; /* Vertical spacing */
    transition: background 0.3s ease;
}

.ProductStackLeft {
    background: linear-gradient(88.64deg, #EAF2FF 1.16%, #F8FDF9 98.84%);
}

.ProductStackRight {
    background: linear-gradient(88.64deg, #F8FDF9 1.16%, #EAF2FF 98.84%);
}

    .ProductStackLeft:hover,
    .ProductStackRight:hover {
        background: linear-gradient(90deg, rgba(220, 233, 255, 0.6) 0%, rgba(200, 243, 224, 0.6) 100%) !important;
    }

/* --- Layout Logic --- */
.product-content {
    max-width: 800px;
    width: 100%;
}

.ProductStackLeft .product-content {
    margin-left: 20%;
    text-align: left;
}

.ProductStackRight .product-content {
    margin-right: 20%;
    text-align: right;
}

/* Typography Defaults */
.product-title {
    font-weight: 700;
    font-size: 4rem;
    margin: 0;
    color: #291473 !important;
}

.product-description {
    line-height: 1.5;
    margin: 1.5rem 0;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .ProductStackLeft .product-content {
        margin-left: 10%;
    }

    .ProductStackRight .product-content {
        margin-right: 10%;
    }

    .product-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .ProductStackLeft, .ProductStackRight {
        padding: 50px 20px; /* Smaller padding on mobile */
        align-items: center !important; /* Force center alignment for components */
    }

        .ProductStackLeft .product-content,
        .ProductStackRight .product-content {
            margin-left: 0;
            margin-right: 0;
            text-align: center; /* Keeps alternating feel but makes it readable */
            max-width: 100%;
        }

    .product-title {
        font-size: 2.2rem;
    }

    .desktop-only {
        display: none; /* Hide <br> tags on mobile */
    }
}



/*----------------------------------AAA PAGE */
:root {
    /* Define base proportions */
    --arch-aspect-ratio: 16 / 9; /* Adjust this to match your actual SVG dimensions */
    --arch-max-width: 90%;
    --arch-min-width: 70%;
}

.architecture-Section {
    display: flex;
    flex-direction: column;
    align-items: center; /* Changed to center to help wrapper stay balanced */
    width: 100%;
    background: linear-gradient(180deg, #291473 0%, #0A041A 100%);
    justify-content: center;
    gap: 0;
    overflow: hidden;
}

.architecture-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Prevents the wrapper from ever taller than the container view */
    max-height: 85vh;
    color: var(--polaris-purple-main);
}

.architecture-image {
    /* DYNAMIC SIZING */
    /* Clamp ensures it never gets too tiny or too huge */
    /* (min-size, preferred-size, max-size) */
    width: clamp(var(--arch-min-width), 85vw, var(--arch-max-width));
    /* Maintains visual hierarchy */
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    margin: 2rem 0; /* Consistent "breathing room" top and bottom */
    transition: width 0.3s ease; /* Smooth resizing */
}

.architecture-container {
    position: relative;
    width: 100%;
    min-height: 750px; /* Give it enough vertical room */
    background: linear-gradient( to bottom, #25214a 0%, /* Subtly more purple */
    #1b243b 45%, /* Transition back to your brand Navy */
    #0a0d16 100% /* Deep near-black bottom */
    ) !important;
    /* background: linear-gradient(180deg, #291473 0%, #0A041A 100%); */
    display: flex;
    flex-direction: column;
    /* This distributes Header, Row 1, Hub, and Row 2 evenly */
    justify-content: space-between;
    padding: 60px 0;
    overflow: hidden;
}

@media (max-width: 480px) {
    .architecture-container {
        height: auto !important;
        min-height: 100px !important;
        padding: 40px 0 !important;
        overflow: visible !important;
    }
}

/* --- Header Styling --- */
.arch-header {
    text-align: center;
    margin-bottom: 10px;
    z-index: 10;
}

.main-title {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 600; /* Extra bold for ALF AI Agent... */
    margin: 0;
    letter-spacing: -0.5px;
}

@media (max-width: 600px) {
    .main-title {
        font-size: 1.5rem !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}


.sub-title {
    color: rgba(255, 255, 255, 0.5); /* Muted gray/white */
    font-size: 1rem;
    font-weight: 400;
    margin-top: 8px;
    letter-spacing: 0.2px;
}

/* --- Background Decorations --- */
.bg-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}


.spec {
    position: absolute;
    border-radius: 50%;
    z-index: 1; /* Sits slightly above the blurry orbs */
}

.spec-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background: transparent;
    border-radius: 50%; /* Makes the box-shadows render as circles */
    /* x y blur color */
    box-shadow: 10vw 20vh 0 #60a5fa, 25vw 80vh 0 #60a5fa, 85vw 15vh 0 #34d399, 45vw 65vh 0 #a78bfa, 70vw 40vh 0 #a78bfa, 10vw 90vh 0 #34d399, 90vw 85vh 0 #60a5fa, 5vw 50vh 0 #a78bfa, 55vw 10vh 0 #34d399, 30vw 30vh 0 #60a5fa, 75vw 75vh 0 #a78bfa, 40vw 15vh 0 #34d399, 15vw 55vh 0 #60a5fa, 65vw 25vh 0 #a78bfa, 80vw 60vh 0 #34d399, 35vw 45vh 0.5px #60a5fa, 60vw 95vh 0 #60a5fa, 95vw 5vh 0 #60a5fa, 12vw 35vh 1px #60a5fa, 50vw 20vh 0 #60a5fa, 82vw 80vh 0.5px #60a5fa, 20vw 10vh 0 #34d399, 68vw 72vh 1px #34d399, 3vw 95vh 0 #34d399, 42vw 38vh 0 #34d399, 78vw 12vh 0.5px #34d399, 18vw 78vh 0 #34d399, 58vw 52vh 0 #a78bfa, 8vw 18vh 1px #a78bfa, 88vw 48vh 0 #a78bfa, 33vw 62vh 0.5px #a78bfa, 52vw 82vh 0 #a78bfa, 22vw 42vh 1px #a78bfa;
    opacity: 0.6;
    pointer-events: none;
    animation: twinkle-layer 3s ease-in-out infinite alternate;
}

/* Specific variants for different colors */
.spec-blue {
    width: 3px;
    height: 3px;
    background: #60a5fa;
    opacity: 0.8;
}

.spec-purple {
    width: 4px;
    height: 4px;
    background: #a78bfa;
    opacity: 0.7;
}

.spec-green {
    width: 3px;
    height: 3px;
    background: #34d399;
    opacity: 0.6;
}

/* Optional: Add a subtle 'twinkle' to a few */
.twinkle {
    animation: twinkle-pulse 5s ease-in-out infinite alternate;
}

@keyframes twinkle-layer {
    from {
        opacity: 0.2;
    }

    to {
        opacity: 1;
    }
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.12;
}

.orb-blue {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    top: 10%;
    left: 10%;
}

.orb-purple {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    top: 10%;
    right: 5%;
}

.orb-green {
    width: 250px;
    height: 250px;
    background: #10b981;
    bottom: 1%;
    left: 40%;
}

/* --- Rows Layout (FIX FOR VERTICAL ERROR) --- */
.arch-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px; /* Reduced gap for mobile */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.arch-card {
    /* Use flex-basis to suggest a size, but allow shrinking */
    flex: 1 1 0;
    min-width: 0;
    max-width: 160px;
    height: 120px; /* Slightly shorter for mobile balance */

    backdrop-filter: blur(8px);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    z-index: 5;
}

@media (max-width: 600px) {
    .arch-row {
        gap: 8px;
    }

    .arch-card {
        padding: 5px;
        height: auto;
    }

        /* Targets the Radzen Icon */
        .arch-card i, .rz-icon-trash {
            font-size: 1.2rem !important;
        }


    .archcardTitle {
        font-size: 0.6rem !important;
    }

    .arch-card span {
        line-height: 1.1;
    }

    .SubText {
        font-size: 0.5rem !important;
    }
}



.tint-blue {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.tint-purple {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.tint-green {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.tint-grey {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.3);
}

.arch-card i, .arch-card .rz-icon-font {
    font-size: 2rem;
    margin-bottom: 8px;
}

.arch-card span {
    font-size: 0.75rem;
    text-align: center;
    font-weight: 500;
}

.arch-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* --- Hub & Concentric Rings --- */

.hub-flow-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    margin: 20px 0;
}

.hub-center-point {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20; /* Keep above trace lines */
}

.hub-rings-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 1. The Glowing Rings */
.hub-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid transparent;
    transition: all 0.5s ease;
}

.ring-teal {
    width: 100%;
    height: 100%;
    border-color: rgba(16, 185, 129, 0.4);
    /* Outer glow for the largest ring */
    box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.1), 0 0 15px rgba(16, 185, 129, 0.1);
}

.ring-blue {
    width: 85%;
    height: 85%;
    border-color: rgba(59, 130, 246, 0.5);
}

.ring-purple {
    width: 100%;
    height: 100%;
    border-color: rgba(16, 185, 129, 0.4);
    /* Outer glow for the largest ring */
    box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.1), 0 0 15px rgba(16, 185, 129, 0.1);
}

/* 2. The Central Core Background */
.hub-core-inner {
    position: relative;
    width: 58%;
    height: 58%;
    /* Gradient matches the dark depth in image_756302.png */
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(15, 23, 42, 0.95) 75%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(168, 85, 247, 0.3);
    z-index: 2;
}

/* 3. The Stylized AAA Logo */
.aaa-text {
    display: flex;
    align-items: baseline;
    justify-content: center;
    position: relative;
    z-index: 3;
    font-size: 2.4rem;
    letter-spacing: -3px;
}

    .aaa-text span {
        font-weight: 400; /* Heavier weight helps the 'shape' stand out */
        display: inline-block;
        line-height: 1;
        /* Essential: these must be on the element containing the actual characters */
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }

.a-small {
    font-size: 1.5rem;
    /* High Purple saturation */
    background: #ffffff !important;
    letter-spacing: -2px;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
}

.a-large {
    font-size: 2rem;
    /* More Blue transition */
    background: #ffffff !important;
    margin: 0 -6px; /* Pulls them tighter so they look like one logo */
    position: relative;
    top: 2px; /* Adjusting for font baseline */
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.6));
}

.aaa-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px; /* Slightly wider to let the blue spread */
    height: 30px;
    /* Core is purple, outer ring is blue */
    background: radial-gradient(circle, #a855f7 20%, #3b82f6 100%);
    filter: blur(15px); /* Increased blur for a smoother look */
    opacity: 0.5;
    z-index: 1;
}

/* 4. Bottom Labels - Refined for clarity */
.hub-label-content {
    text-align: center;
    margin-top: 18px;
    pointer-events: none; /* Ensure labels don't interfere with hover/clicks */
}

.concierge-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 15px rgba(0,0,0,0.8);
    display: block;
}

.engine-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 4px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
}


/* --- Trace Lines --- */
/* --- Trace Lines --- */
.trace-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Define general properties first */
.trace-line {
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
    transition: all 0.3s ease;
    fill: none; /* Ensure no accidental fill is applied */
}

.architecture-container .line-green {
    stroke: url(#grad-green) !important;
}

.architecture-container .line-gradient {
    stroke: url(#grad-mix) !important;
}

/* Apply the gradients with higher specificity */
.trace-line.line-green {
    stroke: url(#grad-green) !important;
}

.trace-line.line-gradient {
    stroke: url(#grad-mix) !important;
    filter: drop-shadow(0 0 3px rgba(168, 85, 247, 0.4));
}


.module-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 300px !important;
    height: 300px !important;
    font-weight: 400 !important;
    border-radius: 0.8rem !important;
    background: var(--polaris-card-bg) !important;
    color: #F3F2F4 !important;
    border: none !important;
    padding: 1.5rem 1.5rem 2.5rem 1.5rem !important;
    text-align: center;
}

.module-card-image {
    width: 100%;
    height: 60%;
    object-fit: contain;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .module-card {
        width: 200px !important;
        height: 150px !important;
        padding: 1rem !important; /* Tighter padding for smaller real estate */
    }

    .module-card-image {
        margin-bottom: 0 !important;
    }

    /* Scaling inner content to match the 200px container */
    .module-card i,
    .module-card .rz-icon-font {
        font-size: 1.5rem !important;
    }

    .module-card h2,
    .module-card span {
        font-size: 0.9rem !important;
    }
}


.Section-title {
    font-size: 2rem !important;
    font-weight: 700; /* Bold for headers */
    line-height: 1.2; /* Good balance for multi-line headers */
    margin: 0; /* Remove default browser margins */
    color: inherit; /* Inherits purple from your parent div */
}

/* Optional: Mobile adjustment if 2rem is too big for small screens */
@media (max-width: 480px) {
    .Section-title {
        font-size: 1.6rem !important;
    }
}

.module-card:hover {
    filter: brightness(1.5) !important;
}

.modules-container {
    width: 100%;
    flex-wrap: wrap;
    text-align: left;
    padding: 2rem 1rem;
}

.modules-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #312E81;
    min-width: fit-content;
}

.modules-dot {
    width: 20px;
    height: 20px;
    background-color: #A78BFA;
    border-radius: 4px;
}

.modules-title {
    font-weight: 700;
    font-size: 2.75rem;
    margin: 0;
    line-height: 1;
}

.modules-description {
    margin: 0;
    color: #1E1B4B;
    line-height: 1.5;
    max-width: 500px;
    font-size: 1.15rem;
    flex: 1 1 400px;
}

/* Mobile */
@media (max-width: 768px) {
    .modules-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        max-height: 120px !important;
        gap: 0.5rem !important;
    }

    .modules-description {
        max-width: 100%;
        width: 100%;
        margin-bottom: 0;
    }
}


.features-grid {
    display: grid;
    /* Create 6 columns to allow for easy centering of the bottom row */
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    justify-items: center;
}

/* First 3 icons take up 2 columns each (Total 6) */
.feature-svg:nth-child(-n+3) {
    grid-column: span 2;
}

/* Last 2 icons start at column 2 and 4 to stay centered under the top 3 */
.feature-svg:nth-child(4) {
    grid-column: 2 / span 2;
}

.feature-svg:nth-child(5) {
    grid-column: 4 / span 2;
}

.productnavBtn {
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #291473 !important;
    box-shadow: none !important;
}

    .productnavBtn span {
        color: #291473 !important;
    }



/*----------------------------------KYC PAGE */
/* Main Layout Wrapper */
.kyc-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 150px;
    padding: 40px;
    min-height: 600px;
    max-height: 750px;
    overflow-x: hidden;
}

@media (max-width:600px) {
    .kyc-container {
        flex-direction: column; /* Stack circle above sidebar */
        gap: 60px;
        max-height: none;
    }

    .process-circle-wrapper {
        transform: scale(0.85); /* Slightly smaller to fit width */
        flex: 0 0 auto;
    }
}

/* --- CIRCLE LOGIC --- */
/* The main container for the circle nodes */
.process-circle-wrapper {
    position: relative;
    flex: 0 0 450px;
    width: 450px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* 1. The Darkened Interior Overlay */
    .process-circle-wrapper::before {
        content: "";
        position: absolute;
        width: 80%; /* Match the size of your primary dashed ring */
        height: 80%;
        background: rgba(0, 0, 0, 0.2); /* Darkens the inside */
        border-radius: 50%;
        z-index: 1;
    }

/* 2. The Primary Inner Dashed Ring (Existing) */
.dashed-ring {
    position: absolute;
    width: 80%;
    height: 80%;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: 2;
    opacity: 0.5;
}

/* 3. The New Concentric Outer Ring */
.process-circle-wrapper::after {
    content: "";
    position: absolute;
    width: 84%; /* Larger than the inner ring */
    height: 84%;
    border: 1px dashed rgba(255, 255, 255, 0.1); /* Fainter than the inner ring */
    border-radius: 50%;
    pointer-events: none; /* Ensures it doesn't block node clicks */
    z-index: 0;
    box-shadow: 0 0 0px rgba(77, 121, 255, 0.9), inset 0 0 10px rgba(77, 121, 255, 0.3);
    /* Optional: If you want it to be a solid line like the crop, 
       keep 'solid'. If you want it dashed like the inner ring, 
       change to 'dashed'. */
    opacity: 0.8;
}

@media (max-width: 600px) {
    .kyc-container {
        padding: 0px !important;
        gap: 50px !important;
    }

    /* Scaling the circle to fit tiny screens without breaking layout */
    .process-circle-wrapper {
        transform: scale(0.65);
        margin: -30px 0; /* Pulls sidebar up to meet the scaled-down circle */
        flex: 0 0 450px; /* Adjust basis for the smaller scale */
        width: 450px !important;
        height: 450px !important;
    }

    .central-label {
        font-size: 1.5rem !important;
    }

    .flow-node {
        width: 110px !important;
        height: 110px !important;
    }

    /* Shrink text inside circle nodes for legibility at small scale */
    .node-text {
        font-size: 1rem !important;
        font-weight: 600 !important;
    }

        .node-text .SubText {
            font-size: 1rem !important;
        }
}

/* Ensure central text stays on top */
.central-label {
    position: relative;
    z-index: 3;
    font-size: 1.2rem;
    color: white;
    opacity: 0.9;
}

.dashed-ring {
    position: absolute;
    width: 80%;
    height: 80%;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.central-label {
    font-size: 1.2rem;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.8;
}

/* Shared Node Styles */
.flow-node {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: transform 0.2s ease-in-out, border-color 0.2s;
}

    .flow-node:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: #fff;
    }

.node-label {
    font-size: 0.75rem;
    margin-top: 5px;
    line-height: 1.1;
}

    .node-label span {
        font-weight: 300;
        opacity: 0.7;
    }

.tint-blue2 {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.45), rgba(59, 130, 246, 0.45));
}

.tint-purple2 {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.45), rgba(168, 85, 247, 0.45));
}

.tint-green2 {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.45), rgba(16, 185, 129, 0.45));
}

/* Positioning the Nodes */
.node-top {
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.node-right {
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
}

.node-bottom {
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.node-left {
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
}

/* --- SIDEBAR LOGIC --- */
.kyc-sidebar {
    flex: 0 0 320px; /* grow 0, shrink 0, basis 320px */
    width: 320px;
    background: rgba(20, 25, 40, 0.6);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.05);
    /* Layering */
    position: relative;
    z-index: 10; /* Ensures it sits above .bg-layer and orbs */
}

.sidebar-header {
    text-align: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
}

.sidebar-divider {
    height: 1px;
    width: 100%;
    margin-bottom: 25px;
    /* This creates the "fading" effect seen in your image */
    background: linear-gradient( 90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100% );
}

/* --- Tinted Cards --- */
.area-card2 {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    transition: transform 0.2s;
    backdrop-filter: blur(8px);
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.area-card3 {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    transition: transform 0.2s;
    backdrop-filter: blur(8px);
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.area-text {
    font-size: 0.8rem;
    line-height: 1.3;
}

.steps-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the pills on the page */
    gap: 16px; /* Space between each pill */
    width: 100%;
    padding: 20px 0;
}

.SubText {
    color: rgba(255, 255, 255, 0.6);
}

.SubText2 {
    color: rgba(255, 255, 255, 0.6);
}

.area-card2 i, .arch-card .rz-icon-font {
    font-size: 2rem;
    margin-bottom: 8px;
}

.area-card2 span {
    font-size: 0.75rem;
    text-align: center;
    font-weight: 500;
}

.area-card2:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.area-label {
    font-size: 0.9rem !important;
    line-height: 1.1;
}

.kyc-phrases {
    display: flex;
    align-items: center;
    justify-content: center; /* Centers items horizontally */

    width: 100%; /* Spans full width to allow centering */
    padding: 20px 0;
    margin-top: auto; /* Pushes footer to bottom if in a flex-column container */
    /* Styling to match your theme */
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: none;
    /* Ensure it stays on top of background orbs */
    position: relative;
    z-index: 5;
}

@media (max-width: 600px) {
    /* 1. Fluid Width & Tighter Padding */
    .kyc-sidebar {
        flex: 1 1 auto;
        width: 95%; /* Allow it to breathe on the edges */
        max-width: 100vw !important;
        padding: 5px 0px !important; /* Reduced from 25px */
        margin: 0 auto;
        gap: 5px;
    }

    /* 2. Scale the Header and Divider */
    .sidebar-header {
        font-size: 1.1rem; /* Smaller than 1.5rem */
        margin-bottom: 12px;
    }

    .sidebar-divider {
        margin-bottom: 15px;
    }

    /* 3. Scale the Cards (The "KYC Areas") */
    .area-card2 {
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 10px !important; /* Tighter gap between icon and text */
        margin-bottom: 16px !important;
        line-height: 1 !important;
    }

        /* 4. Scale Radzen Icons in Sidebar */
        .area-card2, .area-card3, .rz-icon-font,
        .area-card2 i {
            font-size: 1.4rem !important; /* Scaled down from 2rem */
            margin-bottom: 0; /* Align better with horizontal text */
        }

    /* 5. Fine-tune Text Size */
    .area-label {
        align-items: center;
        font-size: 0.9rem !important;
        line-height: 1 !important;
    }

    .area-card2, .area-card3 .SubText {
        font-size: 0.7rem !important;
        display: block; /* Ensures it stays under the label */
        line-height: 1.2;
    }

    .SubText2 {
        font-size: 0.8rem;
        line-height: 1.8;
    }


    .kyc-phrases {
        font-size: 0.7rem;
        padding: 10px 0;
        text-align: center;
    }
}


/*------------ How it works section /*------------  */
/* Desktop Default */
.responsive-header-stack {
    display: flex !important;
    flex-direction: row !important;
    /* CHANGE THIS: forces content to start from the left edge */
    justify-content: flex-start !important;
    /* This gap creates the distance between Title and Paragraph */
    gap: 15rem;
    align-items: baseline !important;
    width: 100%;
    max-width: 1400px; /* Optional: prevents it from stretching too far on ultrawide */
    margin: 0 auto; /* Centers the entire container on the page */
}

.header-title-group {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    gap: 10px;
    font-size: 2rem !important;
    color: var(--polaris-purple-main);
    white-space: nowrap;
}

.header-margin-22 {
    margin-left: 22%;
}

.header-margin-17 {
    margin-left: 17%;
}

.status-dot {
    width: 20px;
    height: 20px;
    object-fit: contain;
}


.description-text {
    display: block;
    flex-shrink: 0;
    margin: 0;
    padding-top: 5px;
    color: var(--polaris-purple-deep);
    font-size: 1.2rem;
    line-height: 1.5;
    max-width: 400px;
}

.description-text2 {
    margin: 0;
    padding-top: 5px;
    color: var(--polaris-purple-deep);
    font-size: 1.2rem;
    line-height: 1.5;
    max-width: 700px;
}

/* Mobile Adjustments */
@media (max-width: 480px) {

    .header-margin-22, .header-margin-17 {
        margin-left: 0 !important;
        width: auto !important;
    }

    .header-title-group {
        justify-content: center !important; /* Centers icon and text relative to each other */
        margin-left: 0 !important; /* Force reset */
        font-size: 1rem !important;
        color: var(--polaris-purple-main);
    }

    .responsive-header-stack {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1rem !important;
        justify-content: flex-start !important;
        width: 100% !important;
        overflow: visible !important;
        height: auto !important;
        min-height: min-content;
    }

    .header-title-group {
        justify-content: center; /* Centers the icon and h2 together */
        margin-left: 0%;
        width: 100%;
    }

    .description-text, .description-text2 {
        display: block !important;
        text-align: left !important;
        margin-left: auto !important;
        margin-right: auto !important;
        height: auto !important;
        max-width: 80vw;
        font-size: 0.8rem !important;
        visibility: visible !important;
        z-index: 5;
        transform: translateZ(0); /* Forces Chrome to render this specifically */
        -webkit-transform: translateZ(0);
    }

    .status-dot {
        width: 15px;
        height: 15px;
    }
}

.step-pill {
    display: flex;
    align-items: center;
    justify-content: center; /* This centers the 'inner' group */
    width: 100%;
    max-width: 800px;
    min-height: 60px;
    padding: 15px 40px;
    margin: 0 auto 1.5rem auto;
    background: linear-gradient(270deg, rgba(197, 237, 206, 0.5) 0%, rgba(213, 229, 255, 0.5) 100%);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

    .step-pill:hover {
        background: #E1F1FD;
    }

/* 2. New Wrapper to keep Icon and Text together in the center */
.step-content-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 450px; /* Adjust this to control how 'centered' the group looks */
}

@media (max-width: 480px) {
    .step-pill {
        min-height: 50px;
        margin: 0 !important;
        padding: 5px 10px !important;
    }

    .step-content-wrapper {
        max-width: 100%; /* Adjust this to control how 'centered' the group looks */
        flex-shrink: 0;
    }

    .step-pill p {
        font-size: 0.8rem !important;
        white-space: nowrap !important;
    }

    .step-number {
        width: 30px !important;
        height: 30px !important;
        margin-right: 10px !important;
    }
}

.icon-container {
    flex: 0 0 60px; /* Keeps icons in a perfect vertical line */
    display: flex;
    justify-content: center;
}

.step-number {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 20px !important;
}

.step-pill p {
    margin: 0;
    font-size: 1.2rem;
    color: #291473;
    font-weight: 500;
    text-align: left;
    line-height: 1.3;
}

/*----------------------------------Rebenefit*/
.architecture-container .rz-row {
    display: flex !important;
    justify-content: center !important; /* This centers the columns horizontally */
    align-items: stretch !important; /* This ensures both boxes are the same height */
    flex-wrap: wrap; /* Ensures mobile stacking still works */
    margin: 0 auto !important; /* Centers the row itself within the container */
}

/* Optional: Ensure the glass panels don't hug each other too tight */
.glass-panel {
    margin-bottom: 1rem;
    height: 100%; /* Makes sure the background color fills the column height */
    display: flex;
    flex-direction: column;
}

.panel-header {
    color: white;
    margin-left: 5px;
    margin-right: 5px;
}

/* Align the text box content nicely */
.text-box p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

.text-box strong {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.border-blue {
    border-top: 4px solid #3b82f6;
}

.border-purple {
    border-top: 4px solid #a855f7;
}

/* Feature Rows */
.feature-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.12); /* Increased from 0.05 */
    backdrop-filter: blur(10px); /* Adds that "glass" depth */
    border-radius: 12px;
    margin-bottom: 10px;
    z-index: 3;
}

.purple-tint {
    background: rgba(168, 85, 247, 0.15);
}

.green-tint {
    background: rgba(34, 197, 94, 0.15);
}

/* The Bridge */
.platform-bar {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
    border: 1px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    text-align: center;
    padding: 20px;
    width: 80%;
    max-width: 1000px;
    margin: 20px auto;
    z-index: 100;
    color: white;
}

/* Module Cards */
.mod-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    font-size: 0.8rem;
    color: white;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text to wrap */
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Allow card to fill the RadzenColumn height */
    min-height: 260px;
}

@media (max-width:480px) {
    .mod-card {
        min-height: 170px !important;
        max-height: 170px !important;
    }
}

.mod-card ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    flex-grow: 1; /* Pushes list to fill space */
}

.mod-card li {
    margin-bottom: 8px;
    line-height: 1.2;
    opacity: 0.8;
}

.mod-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.mod-card h4 {
    font-size: 0.9rem;
    margin: 10px 0;
}

.mod-card ul {
    list-style: none;
    padding: 0;
    opacity: 0.7;
    line-height: 1.4;
}

.mod-num {
    font-weight: 800;
    font-size: 1.2rem;
    opacity: 0.3;
}

.subtext3 {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

@media(max-width:480px) {
    .subtext3 {
        font-size: 0.7rem !important;
    }
}


/* Bottom accents for modules */
.mod-1 {
    border-bottom: 3px solid #3b82f6;
}

.mod-2 {
    border-bottom: 3px solid #a855f7;
}

.mod-3 {
    border-bottom: 3px solid #22c55e;
}

.mod-4 {
    border-bottom: 3px solid #6366f1;
}

.mod-5 {
    border-bottom: 3px solid #0ea5e9;
}

/* Background Orbs */
.orb2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    opacity: 0.15;
}

.orb-blue2 {
    top: -100px;
    left: -100px;
    background: #3b82f6;
}

.orb-purple2 {
    top: 50%;
    right: -100px;
    background: #a855f7;
}


.features-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(4, auto);
    grid-template-rows: repeat(2, auto);
    gap: 0px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* This centers the icons within their designated 'span 2' area */
    justify-items: center;
    align-items: center;
}

.feature-item {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.feature-svg {
    /* INCREASED: width/max-width to allow the icons to fill the larger grid */
    width: 100%;
    max-width: 400px;
    height: auto;
    /* INCREASED: max-height to 450px so they can scale up significantly */
    max-height: 450px;
    object-fit: contain;
    transition: transform 0.2s ease-in-out;
    padding: 10px; /* Small padding so hover backgrounds don't touch */
}

    .feature-svg:hover {
        box-shadow: inset 10px 10px 20px rgba(0, 0, 0, 0.12), inset -10px -10px 20px rgba(255, 255, 255, 0.8);
        border-radius: 20px;
    }


/*SERVICE PAGE */
.book-call {
    margin: 0 auto;
    width: 160px;
    height: 25px;
    font-weight: 300;
    background: linear-gradient(90deg, #4E3A98 0%, #4E3A98 100%) !important;
    border-radius: 3rem !important;
    border: 1px solid var(--polaris-accent-violet) !important;
}

    .book-call:hover {
        filter: brightness(0.9) !important;
    }



/*About PAGE*/
.future {
    background: linear-gradient(180deg, #EAF2FF 1.68%, #F8FDF9 100%);
}

.MissionStack {
    background: linear-gradient(88.64deg, #EAF2FF 1.16%, #F8FDF9 98.84%);
}

.VisionStack {
    background: linear-gradient(88.64deg, #F8FDF9 1.16%, #EAF2FF 98.84%);
}

    .MissionStack:hover,
    .VisionStack:hover {
        background: linear-gradient( 90deg, rgba(220, 233, 255, 0.6) 0%, rgba(200, 243, 224, 0.6) 100% ) !important;
    }




/* CONTACT PAGE
/* --- Contact Us Form Inputs --- */
.ContactCard {
    background: var(--polaris-card-bg) !important;
    border-radius: 1.5rem;
}

    .ContactCard .rz-textbox,
    .ContactCard .rz-textarea {
        background-color: transparent !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
        border-radius: 0 !important;
        color: white !important;
        box-shadow: none !important;
        padding-left: 5px !important;
        /* NEW: Forces the text to sit on the bottom line */
        padding-top: 0 !important;
        padding-bottom: 4px !important;
        line-height: 1.5 !important;
        min-height: 1.5rem !important; /* Matches the single row height */
        box-sizing: border-box !important;
    }

        .ContactCard .rz-textbox::placeholder,
        .ContactCard .rz-textarea::placeholder {
            color: white !important;
            opacity: 0.7;
            font-size: 1rem;
        }

/* 3. Cleanup the internal Radzen variables just in case */
.Contact-us {
    --rz-input-background-color: var(--polaris-card-bg);
    --rz-input-hover-background-color: var(--polaris-card-bg);
    --rz-input-focus-background-color: var(--polaris-card-bg);
}





/* --- Contact Modal  --- */

.contact-modal-glass .rz-dialog-content {
    padding: 0 !important;
    background: transparent !important;
}

.contact-modal-glass .rz-dialog-titlebar {
    display: none !important;
}

/* Modal Card Container */
.interest-modal-card {
    background: linear-gradient(145deg, #eef9f3 0%, #e2f1ea 100%);
    border-radius: 40px;
    padding: 2.5rem;
    position: relative;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Custom Circle Close Button */
.interest-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    border-radius: 50% !important;
    background: white !important;
    color: #291473 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Typography */
.interest-modal-title {
    color: #291473;
    font-weight: 300;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.interest-modal-footer-text {
    margin-top: 3rem;
    color: #7a86b8;
    font-weight: 300;
}

/* Form Inputs */
.interest-modal-input {
    width: 100%;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #A683FF !important;
    color: #291473 !important;
    padding: 8px 0 !important;
}

/* Checkbox Labels */
.interest-modal-label {
    color: #444;
    font-weight: 300;
}

/* Submit Button */
.interest-modal-submit {
    width: fit-content;
    border-radius: 30px !important;
    background: linear-gradient(90deg, #4E3A98 0%, #4E3A98 100%) !important;
    padding: 0.5rem 2rem !important;
    border: none !important;
}

    .interest-modal-submit span {
        text-transform: none;
        font-size: 1rem;
        font-weight: 200;
        color: white;
    }





/* --- FOOTER MAIN CONTAINER --- */
.footer-polaris {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: -10rem 0rem !important;
    z-index: 1000;
    background-color: #0A041A !important;
    /* Smooth transition for the Show/Hide logic try : transition: transform 0.4s ease, opacity 0.4s ease; */
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

.footer-block {
    flex: 1;
    text-align: center;
    max-width: 500px;
    padding: 1rem;
    position: relative;
    z-index: 1;
    border-radius: 0.8rem;
    overflow: hidden;
    background: transparent;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.FooterBlockSlogan {
    font-size: 1.2rem;
    text-align: left;
    max-width: 400px;
    color: #ddd;
}

.footer-links-container {
    display: flex !important;
    justify-content: flex-end !important; /* Pushes the inner stack to the far right */
    width: 100%;
}

/* The actual stack of links */
.footer-links-aligned-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start; /* Keeps 'P', 'S', 'A', 'C' aligned vertically */
    text-align: left;
}

.footer-link {
    font-size: 12px;
    white-space: nowrap;
    text-decoration: none;
    color: white; /* Or your variable */
}

.footer-link {
    text-align: left !important;
    width: 100%;
}


@media (max-width: 768px) {

    .footer-block {
        /* Reset flex and max-width for mobile screens */
        flex: 0 0 100% !important;
        max-width: 70% !important; /* Give it a little margin from the screen edges */
        /* Center it within the parent stack */
        margin: 0 auto !important;
        /* Tighten padding so it's not too bulky */
        padding: 1.5rem 1rem !important;
        /* Optional: Increase blur slightly for better contrast on mobile */
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .FooterBlockSlogan {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* 2. Hide the spacer that is pushing things off-center */
    .footer-spacer {
        display: none !important;
    }

    .footer-tagline {
        max-width: 100% !important;
        text-align: center !important;
        padding: 0 10%;
    }

        .footer-tagline br {
            display: none; /* Let text flow naturally */
        }

    /* 5. Copyright Row (Bottom) */
    .footer-bottom-row {
        gap: 1rem !important;
        padding-bottom: 2rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 1rem;
    }
}

/* Layer 1: The Original Gradient (270deg) */
.footer-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, rgba(109, 209, 133, 0.2) 0%, rgba(226, 246, 231, 0.1) 100%);
    z-index: -2;
    transition: opacity 1s ease;
    opacity: 1;
}

/* Layer 2: The Hover Gradient (90deg) */
.footer-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(109, 209, 133, 0.2) 0%, rgba(226, 246, 231, 0.1) 100%);
    z-index: -1;
    transition: opacity 1s ease;
    opacity: 0;
}

/* The Magic: Cross-fade on Hover */
.footer-block:hover::after {
    opacity: 0; /* Fade out the original */
}

.footer-block:hover::before {
    opacity: 1; /* Fade in the flip */
}

/* --- VISIBILITY STATES (Managed by JS/C#) --- */
.footer-polaris.hidden {
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(100%);
}

/* State when user IS at the bottom */
.footer-polaris.visible {
    opacity: 1;
    visibility: visible;
    height: auto !important;
    transform: translateY(0);
}

/* --- Floating Video Player Modal --- */

/* 1. Backdrop */
.video-modal-container.rz-dialog-wrapper {
    background-color: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(5px);
}

/* 2. Fix the Dialog Container 
   This ensures the container actually has a 'right' side for the button to hit */
.video-modal-container .rz-dialog {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 1000px !important; /* Match your DialogOptions */
    margin: 0 auto !important;
    overflow: visible !important;
}

.video-modal-container .rz-dialog-content {
    background: transparent !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* 3. The Wrapper 
   Acts as the anchor for the absolute-positioned button */
.video-modal-wrapper {
    position: relative;
    width: 100%;
    padding: 30px; /* Space for the button to float */
    background: transparent;
}

/* 4. The Video Box */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    background: black;
}

    .video-container iframe,
    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important; /* Forces YouTube to stretch */
        height: 100% !important; /* Forces YouTube to stretch */
        border: 0;
        object-fit: contain; /* Maintains ratio within the box */
    }

/* 5. THE BUTTON FIX 
   Added fixed width/height and 'right: 10px' to stop the stretching */
.video-close-btn {
    position: absolute;
    top: 10px; /* Positioned in the top padding area */
    right: 10px; /* Pinned to the right side */
    /* Force fixed dimensions to prevent full-width stretching */
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    z-index: 1005;
    background: #ff4747;
    border: 2px solid white;
    color: white;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    /* Centering the 'X' */
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}

    .video-close-btn:hover {
        transform: scale(1.1);
        background: #d43f3f;
    }



/* --- FOOTER BUTTON */
.footer-demo-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 33px !important;
    width: 160px !important;
    background-color: rgba(157, 155, 163, 0.8) !important;
    color: white !important;
    border-radius: 0.8rem !important;
    font-size: 11px !important;
    font-weight: 200;
    text-transform: none !important;
    border: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.3);
}

    .footer-demo-btn:hover {
        opacity: 1;
        color: white !important;
        background-color: var(--polaris-accent-green) !important;
    }

/* --- FOOTER LINKS --- */
.footer-link {
    color: white !important;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

    .footer-link:hover {
        color: var(--polaris-accent-green) !important;
    }

.footer-link-sub {
    color: #888 !important;
    text-decoration: none;
    font-size: 11px;
}

    .footer-link-sub:hover {
        color: white !important;
    }

/* Loading spinner */
.mini-spinner {
    display: flex;
    gap: 3px;
    align-items: center;
}

    .mini-spinner div {
        width: 3px;
        height: 12px;
        background-color: white;
        animation: pulse 1.2s infinite ease-in-out;
    }

        .mini-spinner div:nth-child(2) {
            animation-delay: -1.1s;
        }

        .mini-spinner div:nth-child(3) {
            animation-delay: -1.0s;
        }

@keyframes pulse {
    0%, 40%, 100% {
        transform: scaleY(0.4);
    }

    20% {
        transform: scaleY(1.0);
    }
}
