#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}


.card-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px; /* Add margin to create space below */
}



.card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 200px;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    }

    .card img {
        max-width: 100%;
        height: auto;
        border-radius: 4px;
    }

.card-title {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}




/* For desktop: min-width 768px */
@media (min-width: 768px) {
    /* Show navbar on desktop */
    #navbar {
        display: flex !important;
    }

    /* Hide the sidebar on desktop */
    .sidebar {
        display: none !important;
    }

    /* Hide the toggle button on desktop */
    #toggleButton {
        display: none !important;
    }
}


#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}


@keyframes infinite-scroll {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(-150%);
    }
}

@keyframes infinite-mobile-scroll {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(-30%);
    }
}

:root {
    font-size: var(--rz-root-font-size);
}

.clients-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 40px; /* Add bottom margin */
}


.main-title {
    font-size: 3rem;
    font-weight: bold;
    color: #2d3748;
    padding: 0; /* Remove excess padding */
    height: auto; /* Auto height to fit content */
    line-height: 1.2; /* Adjust line spacing */
    margin-bottom: 10px; /* Reduce space below */
}

.subtitle {
    font-size: 1.5rem;
    color: #4a5568;
    position: relative; /* Remove 'top' unless necessary */
    margin-top: -5px; /* Bring closer to main title */
    line-height: 1.2;
}

.funnel-display {
    font-family: "Funnel Display", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}



@media (min-width: 769px) {
    .clients-carousel {
        animation: infinite-scroll 50s linear infinite !important;
    }

    .client-item img {
        max-height: 80px;
        object-fit: contain;
        border-radius: 4px;
    }
}
.clients-carousel {
    display: flex;
    animation: infinite-scroll 50s linear infinite;
}

@media (max-width: 768px) {
    .clients-carousel {
        animation: infinite-scroll 800s linear infinite !important;
    }

    .client-item img {
        max-height: 40px;
        object-fit: contain;
        border-radius: 4px;
    }
}

.client-item {
    flex: 0 0 auto;
    margin: 0 15px;
    text-decoration: none;
    transition: transform 0.2s;
}


    .client-item:hover {
        transform: scale(1.1);
    }



.page-title-container {
    text-align: center;
    margin: 40px 0 20px;
    color: #1a4d8f; /* Blue color */
    font-size: 2rem;
    font-family: Arial, sans-serif;
}



.text {
    font-size: 3rem;
    font-weight: bold;
}

.line-one {
    color: #003366; /* Dark blue color */
    font-size: 4rem;
    white-space: nowrap; /* Prevents text from wrapping to the next line */
}

@media (min-width: 1024px) {
    .pdf-card {
        width: 48%; /* Adjust to fit two cards per row */
        margin: 0; /* Remove auto margins to allow alignment */
    }

    .pdf-container {
        flex-wrap: wrap; /* Disable wrapping on desktop */
    }
}

.pdf-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* App Container */
.app-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
}

.app-card {
    flex: 1 1 calc(25% - 20px);
    max-width: 22%;
    background-color: white;
    color: #1e3a8a;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    border: 1px solid #1e3a8a;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .pdf-container, .app-container {
        flex-direction: column;
        align-items: center;
    }

    .pdf-card, .app-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 20px;
    }
}

.download-button {
    background-color: #1e3a8a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

    .download-button:hover {
        background-color: #165a8a;
    }

.rz-carousel .rz-carousel-prev,
.rz-carousel .rz-carousel-next {
    color: black !important; /* Arrow color */
    background-color: transparent; /* Optional: Keep background clean */
    border: none; /* Optional: Remove any borders */
}
/* Override icon colors */
.rz-navigation-item .rz-icon {
    color: black !important;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Adjust the container width to fit mobile screens */
    .artistic-container {
        display: block; /* Stack items for mobile */
        padding: 20px;
        margin: 20px 0;
    }

    .RadzenRow {
        flex-direction: column;
        align-items: center;
    }

    .app-download-container {
        flex-direction: column;
        align-items: center;
    

        .app-download-container > div {
            width: 100%;
            max-width: 400px;
            margin: 0 auto;
        }

    .text {
        text-align: center; /* Ensure text is centered */
    }

    .line-one {
        font-size: 1.6rem; /* Smaller font size for mobile */
        color: #1a4d8f; /* Keep the color */
        font-family: Arial, sans-serif;
        font-weight: bold;
        word-wrap: break-word; /* Ensure the text wraps properly */
    }
    .rz-carousel .rz-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px !important;
        max-width: 100% !important;
    }

    .rz-carousel-item {
        display: flex !important;
        flex-direction: column !important;
            overflow: visible !important;
    }

    .rz-carousel-item img{
     
        overflow: visible !important;
    }

    .rz-carousel .rz-item img {
        max-height: 150px !important;
        width: auto !important;
        margin-bottom: 10px !important;
        overflow: visible !important;
    }

        .rz-carousel .rz-item p {
            font-size: 14px !important;
            text-align: center !important;
            margin: 0 !important;
            max-width: 100% !important;
            word-wrap: break-word !important;
            overflow: visible !important;
        }

    .page-title-container {
        font-size: 1.5rem; /* Slightly smaller font size */
        margin: 20px 0 10px; /* Reduced margin for smaller screens */
        color: #1a4d8f; /* Blue color */
        text-align: center; /* Ensure it's centered */
        font-family: Arial, sans-serif;
        text-transform: uppercase; /* Keep text in uppercase */
    }

    .card-container {
        grid-template-columns: 1fr 1fr; /* One card per row on mobile */
        justify-items: center; /* Centers the items horizontally */
        align-items: center; /* Centers the items vertically */
        padding: 0 10px; /* Less padding for mobile */
        display: grid;
    }

    /* Adjust the card size */
    .card {
        text-align: center;
        overflow: hidden; /* Ensure no content is cut off */
    }

        .card img {
            max-width: 100%; /* Ensure images fit within the card */
            height: auto;
            display: block;
            margin: 0 auto;
        }



    .clients-carousel {
        display: flex !important;
        gap: 20px !important; /* Spacing between items */
        padding: 10px 15px !important; /* Add padding for better spacing */
        scroll-snap-type: x mandatory !important; /* Enable smooth snapping */
    }




    .client-item {
        flex: 0 0 auto !important;
        text-align: center !important;
        width: 140px !important; /* Slightly wider for better visibility */
        scroll-snap-align: center !important; /* Center the focused item */
        display: flex !important;
        flex-direction: column !important; /* Stack image above the title */
        align-items: center !important;
        justify-content: center !important;
        max-height: 300px !important; /* Adjust height for larger content */
        overflow: visible !important; /* Ensure content is fully visible */
        padding: 10px !important; /* Add padding for spacing */
        background-color: white !important; /* Optional: Add background color */
    }

        .client-item img {
            width: 140px !important; /* Slightly larger for mobile */
            height: 140px !important; /* Match height to width */
            margin-bottom: 15px !important; /* Space between image and title */
            object-fit: contain !important; /* Prevent distortion */
        }

        .client-item .client-title {
            font-size: 16px !important; /* Slightly larger text for readability */
            margin-top: 10px !important; /* Space between title and image */
            white-space: normal !important; /* Allow wrapping */
            overflow: visible !important; /* Ensure full visibility */
            text-overflow: clip !important; /* Prevent clipping */
            line-height: 1.5 !important; /* Increase line spacing */
            word-wrap: break-word !important; /* Handle long words */
            color: #333 !important; /* Optional: Adjust text color */
        }



    /* Ensure the titles and videos do not get cut off */
    .video-title {
        font-size: 18px;
        text-align: center;
        margin-bottom: 10px;
        overflow: visible; /* Prevent cutting off the title */
    }

    iframe {
        max-width: 100%;
        height: auto;
        margin-bottom: 15px;
    }

    /* SeniorDine download section */
    .download-section {
        text-align: center;
        margin-bottom: 20px;
    }

    .download-button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        text-align: center;
    }

    /* Contact section */
    .contact-form {
        padding: 15px;
    }

        .contact-form input,
        .contact-form textarea {
            width: 100%;
            padding: 12px;
            margin-bottom: 10px;
        }

        .contact-form button {
            width: 100%;
            padding: 12px;
            margin-top: 10px;
        }

    /* For smaller screens, make the 'Read More' button smaller */
    .read-more-button {
        padding: 8px 15px;
        font-size: 14px;
    }

    /* Adjust the 'Associated Press' text */
    .media-section h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    /* Cards 1 by 1 for very small screens */
    @media (max-width: 480px) {
        .card-container {
            grid-template-columns: 1fr; /* Single card per row on very small screens */
        }

        .card img {
            max-width: 90%; /* Make images slightly smaller on very small screens */
        }
    }
}


/* Default style for the free quote button */
.quote-button {
  background-color: white;
  color: green;
  border: 2px solid green;
  border-radius: 5px;
  padding: 5px 10px;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}



/* Hover effect */
.quote-button:hover {
  background-color: green;
  color: white;
  cursor: pointer;
}

/* Active/clicked effect */
.quote-button:active {
  background-color: darkgreen;
  color: white;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}



/* Override for RadzenMenu and menu items */
.rz-menu, .rz-menu * {
    background-color: linear-gradient(135deg, #6aa9ff, #a2d2ff) !important; /* Force menu and submenu backgrounds to white */
    box-shadow: none !important; /* Remove Radzen's default hover shadows */
}

/* On hover, enforce white background and black text */
.rz-navigation-item:hover, 
.rz-navigation-item:focus, 
.rz-menu-popup .rz-navigation-item:hover, 
.rz-menu-popup .rz-navigation-item:focus {
    background-color: white !important; /* White background */
    color: black !important; /* Black text */
    text-decoration: none !important; /* No underlines or other effects */
}

/* Submenu items */
.rz-menu-popup .rz-navigation-item {
    background-color: white !important;
    color: black !important;
}

/* Submenu hover */
.rz-menu-popup .rz-navigation-item:hover {
    background-color: white !important;
    color: black !important;
}

.rz-carousel-items{

    overflow-y:hidden;
}

.rz-carousel .rz-carousel-prev,
.rz-carousel .rz-carousel-next {
    color: black !important; /* Arrow color */
    background-color: transparent; /* Optional: Keep background clean */
    border: none; /* Optional: Remove any borders */
}
/* Override icon colors */
.rz-navigation-item .rz-icon {
    color: black !important;
}
/* Quote Button */
@keyframes shimmer {
    0% {
        border-color: #0044cc;
    }

    10% {
        border-color: #0055ee;
    }

    20% {
        border-color: #0077ff;
    }

    30% {
        border-color: #3399ff;
    }

    40% {
        border-color: #66bbff;
    }

    50% {
        border-color: #99ddff;
    }

    60% {
        border-color: #66bbff;
    }

    70% {
        border-color: #3399ff;
    }

    80% {
        border-color: #0077ff;
    }

    90% {
        border-color: #0055ee;
    }

    100% {
        border-color: #0044cc;
    }
}

.rz-button {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

    .rz-button:hover {
        background-color: #0056b3;
    }


.rz-navigation-item:hover .rz-icon {
    color: black !important;
}

/* ?? Responsive Styles for Mobile */
@media screen and (max-width: 768px) {
    .faq-title-container {
        font-size: 1.8rem;
    }

    .faq-question {
        font-size: 1.3rem;
        padding: 12px;
    }

    .faq-icon {
        font-size: 20px;
    }

    .faq-answer {
        font-size: 1.1rem;
    }

    .faq-container {
        padding: 20px 10px;
    }
}

html, body {
    width: 100%;
    overflow-x: hidden;
}


@keyframes pulse {
    0% {
        border-color: red;
    }

    33% {
        border-color: green;
    }

    66% {
        border-color: blue;
    }

    100% {
        border-color: red;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}




.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.body {
    background-color: #f4f1ee !important;
    padding-top: 100px !important;
}



    /*MOBILE RESPONSIVENESS*/
    /* MOBILE STYLES */
    @media (max-width: 768px) {

        #navbar {
            flex-direction: column;
            height: auto !important;
            padding: 10px;
            align-items: flex-start;
            position: relative !important;
            z-index: auto !important;
            box-shadow: none !important;
        }

        .mobile-navbar {
            display: flex;
            align-items: center;
            justify-content: center; /* Center everything by default */
            position: relative;
            padding: 10px;
            width: 100%;
        }

        .left-content {
            left: auto !important;
        }

        .right-content {
            right: auto !important;
        }

        .index-container {
            height: auto !important;
            flex-direction: column !important;
            justify-content: center !important;
            display: flex !important;
            align-items: center !important;
        }

        .mobile-navbar .menu-toggle {
            position: absolute;
            right: 10px;
            font-size: 28px;
            background: none;
            border: none;
            color: #0044cc;
            cursor: pointer;
        }

        .nav-links {
            max-height: 0;
            overflow: hidden;
            transition: max-height 1s ease;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .nav-buttons {
            display: none !important;
            flex-direction: column;
            width: 100%;
            margin: 10px 0 0;
        }



        .nav-links.show-menu {
            max-height: 500px; /* Must be big enough to fit all items */
        }

        .menu-toggle span {
            width: 100%;
            height: 3px;
            background: #0044cc;
            margin: 5px 0;
            display: block;
            transition: all 0.3s ease;
        }


        .menu-toggle {
            display: block;
            cursor: pointer;
            background: none;
            border: none;
            width: 30px;
            height: 25px;
            position: relative;
            margin-left: auto;
            padding: 0;
        }

            .menu-toggle span {
                display: block;
                height: 3px;
                background: #0044cc;
                margin: 6px 0;
                border-radius: 2px;
                transition: all 0.3s ease;
            }

            /* Transform to X */
            .menu-toggle.open span:nth-child(1) {
                transform: translateY(9px) rotate(45deg);
            }

            .menu-toggle.open span:nth-child(2) {
                opacity: 0;
            }

            .menu-toggle.open span:nth-child(3) {
                transform: translateY(-9px) rotate(-45deg);
            }


        #navbar img {
            margin-bottom: 10px;
        }

        #header-container img {
            width: 200px;
            margin-top: 10px;
        }

        .main-title{
            display: none;
        }
    }
    /* DESKTOP ONLY */
    @media (min-width: 769px) {
        .menu-toggle {
            display: none;
        }
    }
