#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;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

:root {
    font-size: var(--rz-root-font-size);
}

body {
    font-family: var(--rz-text-font-family);
    color: var(--rz-text-color);
    font-size: var(--rz-body-font-size);
    line-height: var(--rz-body-line-height);
    background-color: var(--rz-body-background-color);
}

.rz-body {
    --rz-body-padding: 0;
}

a {
    color: var(--rz-link-color);
}

a:hover,
a:focus {
    color: var(--rz-link-hover-color);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.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");
}

/* Custom Styles */
.container {
    position: relative;
    text-align: center;
    color: white;
}

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* Panel Menu Container */
.panel-menu {

 
    border-radius: 5px;

    padding: 10px;

}

/* Menu Item Style */
.panel-menu-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s;
}

    /* Remove border for the last item */
    .panel-menu-item:last-child {
        border-bottom: none;
    }

    /* Icon Style */
    .panel-menu-item i {
        font-size: 20px;
        margin-right: 10px;

    }

    /* Link Style */
    .panel-menu-item a {
        text-decoration: none;
        font-size: 16px;

        font-weight: bold;
        flex-grow: 1;
    }

    /* Hover Effect */
    .panel-menu-item:hover {
        background-color: #0078d4;
    }

        .panel-menu-item:hover a,
        .panel-menu-item:hover i {
            color: #fff;
        }



/* Custom Responsive Text Style */
.responsive-text {
    text-shadow: 0px 0px 30px #ffffff;
    font-size: 20px; /* Default size for very small screens */
    font-weight: bold;
}

@media (min-width: 600px) {
    .responsive-text {
        font-size: 2.5vw; /* Dynamically adjust for medium screens */
    }
}

@media (min-width: 1200px) {
    .responsive-text {
        font-size: 36px; /* Maximum size for large screens */
    }
}


/*Override form field for search bar*/
.custom-form-field .rz-form-field-content {
    margin-top: 0 !important;
}




/*No flex*/

.no-flex {
    display: block !important; /* Or any other layout type you want */
}



/*Table stuff*/
.responsive-table-container {
    width: 100%;
    overflow-x: auto; /* Adds horizontal scroll for small screens */
}

.entity-table {
    width: 100%;
    border-collapse: collapse; /* Ensure table borders look clean */
}

    .entity-table td, .entity-table th {
        padding: 8px;
        text-align: center;
        border: 0px solid #ddd;
    }

@media (max-width: 768px) {
    .entity-table td, .entity-table th {
        font-size: 14px; /* Adjust font size for smaller screens */
    }
}



/*button styles*/

/* Centering the container */
.button-container {
    text-align: center;
 
    margin: 20px;
}

/* General button styling */
button {
    padding: 10px 20px; /* Adjusted padding for better shape */
    font-size: 16px; /* Slightly larger font for readability */
    font-weight: bold; /* Bold text for emphasis */
    color: #fff; /* White text for contrast */
    background-color: #007BFF; /* Flat blue color */
    border: none; /* Removed border for clean look */
    border-radius: 20px; /* Rounded corners for modern feel */
    cursor: pointer; /* Pointer cursor for interactivity */
    transition: background-color 0.3s ease; /* Smooth hover transition */
}

    /* Hover effect */
    button:hover {
        background-color: #0056b3; /* Slightly darker blue on hover */
    }

    /* Disabled button styling */
    button:disabled {
        background-color: #cccccc; /* Light gray background */
        color: #666666; /* Gray text */
        cursor: not-allowed; /* Disabled cursor */
    }

.rz-panel-content-wrapper{
    text-align:justify !important;
}



/*Overide Radzen background image*/
body {
    background-image: none !important;
}

/*User image overlap stuff*/
.responsive-image {
    width: 100px; /* Default size */
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #007BFF;
}

/* Adjust image size for smaller screens */
@media (max-width: 768px) {
    .responsive-image {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .responsive-image {
        width: 60px;
        height: 60px;
    }
}


/*Home icons click and Hover effect*/
.no-click {
    pointer-events: none; /* Disable pointer events on the parent */
}

.clickable {
    pointer-events: auto; /* Re-enable pointer events for the clickable elements */
    
}

/* Hover effect for images */
.hover-effect {
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transition */
}

    .hover-effect:hover {
        transform: scale(1.1); /* Scale up the image slightly */
        opacity: 0.8; /* Reduce opacity slightly */
        text-decoration: underline;
    }

/* Hover effect for text */
.hover-text {
    transition: color 0.3s ease; /* Smooth color change */
}

    .hover-text:hover {
        color: #007BFF; /* Change text color on hover (Bootstrap blue) */
    }


.hover-effectt {
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transition */
}

    .hover-effectt:hover {
        transform: scale(1.02); /* Scale up the image slightly */
        opacity: 0.9; /* Reduce opacity slightly */
        /*text-decoration: underline;*/
        border-radius: 3px;
    }




/*no padding for search*/
.no-padding-right {
    padding-right: 0px !important; /* Remove padding on the right side */
}
.no-padding-button {
    padding-right: 0px !important; /* Remove right padding */
    margin-right: 0px !important; /* Remove right margin (if any) */
}

.custom-form-field .rz-form-field-end {
    padding-right: 0 !important; /* Remove padding on RadzenFormField's End section */
}


/*Results number growth to show a change was made*/


/* Grow effect for the number */
.results-number-grow {
    animation: number-grow-animation 0.5s ease-in-out;
}

@keyframes number-grow-animation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
        color: #007bff; /* Optional: Temporary highlight color */
    }

    100% {
        transform: scale(1);
    }
}

/* Glow effect for the number */
.results-number-glow {
    animation: number-glow-animation 0.5s ease-in-out;
}

@keyframes number-glow-animation {
    0% {
        text-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    }

    50% {
        text-shadow: 0 0 15px rgba(0, 123, 255, 1);
    }

    100% {
        text-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    }
}













/*toogle menu stuff*/
#vector-layers-menu {
    display: none;
    padding: 10px;
    border: 1px solid #ccc;
    
    border-radius: 4px;
}


/*adaptive feature list stuff*/
@media (max-width: 768px) {
    .map-container,
    #info-panel {
        height: 100%; /* Adjust for smaller screens */
    }

    #info-panel {
        max-height: 100%;
    }
}







/* Default Grid Layout for Larger Screens */
#layout-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 10px;
    height: 800px;
}

/* Breakpoint for Smaller Screens */
@media (max-width: 768px) {
    #layout-container {
        display: flex;
        flex-direction: column;
    }

    .map-container {
        height: 400px; /* Adjust map height for smaller screens */
    }

    #info-panel {
        height: auto;
    }
}





.map-container {
    height: 800px;
}

#info-panel {
    height: 100%; /* Adjust to your padding or margins */
    /* Matches the map-container height */
    overflow-y: auto;
    box-sizing: border-box;
}

#vector-layers-menu {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

#panel-menu {
    display: grid;
}




/*Back to results button stuff*/
#back-to-results {
    font-size: 20px;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

    #back-to-results:hover {
        text-decoration: none;
        color: #0056b3;
    }


    #back-to-results span {
        font-size: 20px;
        color: #007bff;
        transition: color 0.2s ease;
    }

    #back-to-results:hover span {
        color: #0056b3; /* Darker blue on hover */
    }






@keyframes glowExpand {
    0% {
        transform: scale(1);
        text-shadow: none;
    }

    50% {
        transform: scale(1.1);
        text-shadow: 0 0 8px #007bff;
    }

    100% {
        transform: scale(1);
        text-shadow: none;
    }
}

.glow {
    animation: glowExpand .7s ease-in-out;
}




@page {
    margin: 0;
}

@media print {
    .rz-layout {
        height: auto !important;
        overflow: visible !important;
        transform: none !important;
        /* Other overrides as needed */
    }
    html, body {
        width: auto; /* Let the content use natural width */
        height: auto; /* Allow the content to grow as needed */
        margin: 10px;
        padding: 0;
        /* Removed zoom and transform so that pagination works properly */
    }

    /* If you need a wrapper for styling, ensure it doesn't enforce fixed dimensions */
    .print-container {
        width: 100%;
        height: auto;
        overflow: visible;
    }

    h2 {
        page-break-before: auto;
    }

}




.total-row td {
    font-weight: bold;
    border: none !important;
}

.tax-total-row td {
  
    border: none !important;
}





/* highlight the row selected for deletion */
.pending-delete {
    background: var(--rz-danger-lighter) !important;
    box-shadow: inset 0 0 0 2px var(--rz-danger);
}

/* (optional) show which row is currently being edited inline */
.editing-row {
    background: var(--rz-primary-lighter) !important;
}




/* --- sidebar news card sizing (keeps card from jumping) --- */
.news-card {
    margin-bottom: 20px;
    font-size: 20px;
}

.news-inner {
    display: flex;
    flex-direction: column;
}

.news-content {
    /* pick a height that fits 1 date line + 2 title lines + 5 body lines */
    min-height: 190px;
    max-height: 190px;
    overflow: hidden;
}

.news-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

/* --- wrapping + multi-line ellipsis --- */
.news-title,
.news-body {
    white-space: normal; /* allow wrapping */
    word-break: break-word; /* break long words/URLs */
    overflow-wrap: anywhere; /* wrap anywhere if needed */
    overflow: hidden; /* required for ellipsis clamp */
    display: -webkit-box; /* multi-line ellipsis (webkit) */
    -webkit-box-orient: vertical;
}

/* clamp counts */
.news-title {
    -webkit-line-clamp: 2;
}

.news-body {
    -webkit-line-clamp: 5;
}

/* non-webkit fallback (Firefox): crop after N lines using line-height */
/* clamp + wrap already there; add uppercase + bold */
.news-title {
    text-transform: uppercase; /* ALL CAPS */
    font-weight: 700; /* bold */
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 2 lines then … */
    line-height: 1.1rem; /* Firefox fallback */
    max-height: calc(1.1rem * 2); /* Firefox fallback */
}


.news-body {
    line-height: 1.05rem;
    max-height: calc(1.05rem * 5);
}

/* small cosmetics */
.news-date {
    display: block;
    margin-bottom: .25rem;
    opacity: .85;
    font-size: .85rem;
}


















/* Topbar base */
.sdx-topbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .75rem;
    background: var(--rz-sidebar-background-color);
    border-bottom: 1px solid var(--rz-panel-menu-item-border-color, rgba(0,0,0,.08));
    overflow: visible;
    color: var(--rz-panel-menu-item-color);
}

.sdx-left {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 220px;
}

.sdx-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.sdx-office {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.sdx-menu {
    display: flex;
    align-items: center;
    gap: .25rem;
    white-space: nowrap;
    flex: 1 1 auto;
    justify-content: center;
    overflow: visible;
}

.sdx-link {
    padding: .45rem .75rem;
    border-radius: .5rem;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    color: var(--rz-text-color);
    border: 1px solid transparent;
    color: var(--rz-panel-menu-item-color);
}

    .sdx-link.active {
        border-color: var(--rz-primary);
    }

    .sdx-link:hover {
        background: var(--rz-hover-background);
    }

.sdx-more {
    position: relative;
    outline: none;
}

.sdx-more-btn {
    padding: .45rem .75rem;
    border-radius: .5rem;
    border: 1px solid var(--rz-panel-menu-item-border-color, rgba(0,0,0,.08));
    background: transparent;
    color: var(--rz-panel-menu-item-color);
    cursor: pointer;
}

.sdx-caret {
    margin-left: .25rem;
}

.sdx-more-menu {
    position: absolute;
    top: calc(100% + .25rem);
    right: 0;
    min-width: 260px;
    max-height: 70vh;
    overflow: auto;
    z-index: 1100;
    background: var(--rz-sidebar-background-color);
    border: 1px solid rgba(0,0,0,.12);
    border-radius: .5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    display: none;
}

    .sdx-more-menu.open {
        display: block;
    }

.sdx-more-item {
    display: block;
    padding: .6rem .85rem;
    text-decoration: none;
    color: var(--rz-panel-menu-item-color);
    border-bottom: 1px solid rgba(0,0,0,.06);
}

    .sdx-more-item:last-child {
        border-bottom: none;
    }

    .sdx-more-item:hover {
        background: var(--rz-hover-background);
    }

.sdx-right {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 240px;
    justify-content: flex-end;
}

/* 2) Make the hamburger show three stacked bars */
.sdx-hamburger {
    display: none; /* desktop hidden (kept) */
    width: 44px;
    height: 36px;
    border: 1px solid rgba(0,0,0,.12);
    background: transparent;
    border-radius: .5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    color: var(--rz-panel-menu-item-color); /* sets "currentColor" */
}

    .sdx-hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
    }

/* Overlay for closing dropdown/drawer */
.sdx-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: transparent;
}

/* Mobile drawer */
.sdx-drawer {
    position: fixed;
    inset: 0;
    background: var(--rz-sidebar-background-color);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

    .sdx-drawer.open {
        transform: translateX(0);
    }

.sdx-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,.12);
    font-weight: 600;
    color: var(--rz-panel-menu-item-color);
}

.sdx-drawer-close {
    background: transparent;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: .5rem;
    padding: .25rem .5rem;
    cursor: pointer;
}

.sdx-drawer-content {
    overflow: auto;
    padding: .5rem 0;
}

.sdx-drawer-item {
    display: block;
    padding: .9rem 1rem;
    text-decoration: none;
    color: var(--rz-text-color);
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: 1.05rem;
    color: var(--rz-panel-menu-item-color);
}

    .sdx-drawer-item:last-child {
        border-bottom: none;
    }

    .sdx-drawer-item:hover {
        background: var(--rz-hover-background);
    }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .sdx-right {
        min-width: 180px;
    }
}

@media (max-width: 975px) {
    /* Hide desktop menu */
    .sdx-menu {
        display: none;
    }
    /* Hide the right-side theme controls on small screens */
    /* Show hamburger and push it to the far right on mobile */
    .sdx-hamburger {
        display: flex;
        margin-left: auto;
    }

    .sdx-left {
        min-width: auto;
    }
}

























/* ===== SDX Banner ===== */
.sdx-banner {
    /* Non-sticky: sits in normal flow, scrolls away */
    position: relative;
    width: 100%;
    background: linear-gradient(90deg, #0ea5e9 0%, #6366f1 100%);
    color: #fff;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.sdx-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 16px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
}

.sdx-banner-text {
    font-size: .95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sdx-banner-link {
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-weight: 600;
    font-size: .85rem;
}

    .sdx-banner-link:hover {
        background: rgba(255,255,255,.28);
    }

.sdx-banner-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
}

    .sdx-banner-close:hover {
        background: rgba(255,255,255,.15);
    }

/* Compact on small screens */
@media (max-width: 640px) {
    .sdx-banner-inner {
        grid-template-columns: 1fr auto;
    }

    .sdx-banner-link {
        display: none;
    }
}












/* Keep the grid from expanding the layout; allow horizontal scroll when needed */
.results-grid-wrap {
    max-width: 100%;
    overflow-x: auto; /* horizontal scroll on small screens */
    overflow-y: visible;
}

    /* Let the table size to content but not force the page wider */
    .results-grid-wrap .rz-grid-table {
        width: max-content; /* grid fits its columns, wrapper scrolls */
    }

/* On narrow screens, force the table to 100% and let cells wrap for sanity */
@media (max-width: 768px) {
    .results-grid-wrap .rz-grid-table {
        width: 100% !important;
        table-layout: auto;
    }

    .results-grid-wrap .rz-cell,
    .results-grid-wrap .rz-cell-data {
        white-space: nowrap; /* keep single-line cells; scroll instead of wrapping */
    }
}















/* Keep long tokens/URLs from pushing outside */
.news-wrap {
    overflow-wrap: anywhere; /* modern */
    word-break: break-word; /* fallback */
    min-width: 0; /* crucial inside flex/grid */
}

/* Responsive line clamp:
   default lines via CSS variable, tweaked per breakpoint */
.news-body {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--lines, 4);
    overflow: hidden;
    opacity: .90;
    font-size: 1rem;
}

/* Tweak how many lines show based on viewport width */
@media (max-width: 576px) { /* phones */
    .news-body {
        --lines: 3;
    }
}

@media (min-width: 577px) and (max-width: 991px) { /* tablets */
    .news-body {
        --lines: 4;
    }
}

@media (min-width: 992px) { /* desktops */
    .news-body {
        --lines: 6;
    }
}








.banner-rotator {
    position: relative;
    height: var(--banner-h,64px);
    border-radius: var(--radius,12px);
    overflow: hidden;
}

/* cross-fade */
.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    opacity: 0;
    transition: opacity .6s ease;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .2px;
}

    .banner-slide.visible {
        opacity: 1;
    }

/* centered short text */
.banner-center {
    text-align: center;
    width: 100%;
    white-space: normal;
}

/* marquee for long messages */
.banner-marquee {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 64px;
    transform: translateX(0);
    animation: banner-marquee var(--speed,14s) linear infinite;
}

.banner-text {
    white-space: nowrap;
    padding-inline: 20px;
}

@keyframes banner-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.banner-rotator:hover .banner-marquee {
    animation-play-state: paused;
}










 