html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

.card-title {
    padding: 0;
    margin: 0 !important;
    font-size: 20px;
}

.card-header {
    padding: 10px;
    margin-bottom: 0;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.status {
    width: 100%;
    max-width: 160px;
    padding: 0 10px;
    font-size: 12px;
    border-start-start-radius: 5px;
    border-end-start-radius: 5px;
}

.small {
    font-size: 80%;
}

#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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5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pbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.heading {
    font-size: 24px;
    border-bottom: 5px solid gray;
    margin-bottom: 0;
    padding-top: 20px;
    padding-bottom: 5px;
}

.section-head {
    font-size: 24px;
    border-bottom: 2px solid gray;
    margin-bottom: 0;
    margin-top: 30px;
}

.form-area {
    margin: 30px auto;
    max-width: 960px;
}

.form-group {
    margin-bottom: 10px;
}

.large {
    font-size: 1.5em;
}

.huge {
    font-size: 24px;
}

.form-area {
    max-width: 920px;
    margin: 0 auto;
}

.login-area {
    max-width: 400px;
    background-color: white;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    min-height: 400px;
    border: 1px solid gray;
}

.login-page {
    /*background-color: darkgray;*/
    background-image: url(/images/background.png);
    background-color: darkslategray;
}

    .login-page h1 {
        font-size: 24px;
    }

.fileinput-button {
    border: 2px dashed gray;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    cursor: pointer;
    position: relative;
    max-height: 40px;
    width: 100%;
}

    .fileinput-button input[type=file] {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        display: block;
        cursor: pointer;
    }

.rz-tabview-nav li a {
    padding: 5px 10px;
    font-weight: 300;
}


.logo-image {
    max-height: 50px;
    border-radius: 10px;
}


.raffle-page {
    background-image: url('../images/raffle_background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    /*opacity: 0.60;*/
}

.label-class, label {
    display: flex;
    align-items: center;
}

@media print {


    h4 {
        break-after: page;
        page-break-after: always;
        display: block;
    }

    .page-break {
        break-after: page;
        page-break-after: always;
        display: block;
    }
}


.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");
    }

.dropArea {
    border: 2px dashed gray;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: lightgray;
    font-size: 1.0rem;
    cursor: pointer;
    position: relative;
    min-height: 50px;
}

    .dropArea:hover {
        background-color: antiquewhite;
        color: #333;
    }

    .dropArea input[type=file] {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

.dropAreaDrug {
    background-color: darkgray;
}


.separator {
    display: flex;
    padding: 30px 0;
    font-size: 1.8em;
    align-items: center;
    text-align: center;
}

    .separator::before,
    .separator::after {
        content: '';
        flex: 1;
        border-bottom: 5px solid #000;
    }

    .separator:not(:empty)::before {
        margin-right: .25em;
    }

    .separator:not(:empty)::after {
        margin-left: .25em;
    }

.status {
    width: 100%;
    min-width: 60px;
    display: block;
    padding: 3px 10px;
    font-size: 12px;
    border-start-start-radius: 10px;
    border-end-start-radius: 10px;
}

.w-1 {
    width: 1% !important;
}

.w-5 {
    width: 5% !important;
}

.print-border, .p-border {
    border: 10px solid green;
    min-height: 1220px;
    border-radius: 5px;
}


h1.header {
    display: flex;
    flex-direction: row;
}

    h1.header:before, h1:after {
        content: "";
        flex: 1 1;
        border-bottom: 5px solid;
        margin: auto;
    }

    h1.header:before {
        margin-right: 10px
    }

    h1.header:after {
        margin-left: 10px
    }

.mud-table-row {
    padding: 0;
}

.mud-table-cell {
    padding: 0;
}

.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.bg-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: fadeImages 15s infinite;
    opacity: 0;
}

    .bg-frame:nth-child(1) {
        background-image: url('/images/bg1.jpg');
        animation-delay: 0s;
    }

    .bg-frame:nth-child(2) {
        background-image: url('/images/bg2.jpg');
        animation-delay: 5s;
    }

    .bg-frame:nth-child(3) {
        background-image: url('/images/bg3.jpg');
        animation-delay: 10s;
    }

@keyframes fadeImages {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    30% {
        opacity: 1;
    }

    40% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.transparent-content {
    background-color: transparent !important;
    box-shadow: none;
}

.slider-wrapper {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .slider-wrapper {
        height: auto;
        min-height: 300px;
        max-height: 300px; /*Optional: limit height on small screens */
    }

    .slider-image {
        height: auto;
        max-height: 300px;
        min-height: 300px;
        object-fit: contain;
    }
}

/* Default: mobile first — no fixed height */
.slider-container {
    min-height: 300px;
}

.advert-container {
    max-height: 100%;
    overflow: visible;
}

.adverts-paper {
    height: auto;
}

/* Apply 400px height only on medium+ screens */
@media (min-width: 960px) {
    .slider-container {
        min-height: 400px;
    }

    .advert-container {
        max-height: 400px;
        overflow: auto;
    }

    .adverts-paper {
        height: 100%;
    }
}


.responsive-grid {
    padding: 1rem;
}

@media (max-width: 768px) {
    .responsive-grid {
        display: flex;
        flex-direction: row-reverse; /* Enables right-to-left scroll */
        overflow-x: auto;
        gap: 1rem;
        scroll-snap-type: x mandatory;
    }

        .responsive-grid .mud-grid {
            display: flex;
            flex-direction: row-reverse;
            flex-wrap: nowrap;
        }

        .responsive-grid .mud-item {
            flex: 0 0 auto;
            min-width: 250px !important;
            scroll-snap-align: start;
        }
}

/* Outer container that hides overflow */
.candidate-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

/* Inner container that scrolls continuously */
.candidate-scroll-container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    animation: scroll-left 25s linear infinite;
}

/* Pause scrolling when hovered */
.candidate-scroll-wrapper:hover .candidate-scroll-container {
    animation-play-state: paused;
}

/* Candidate images */
.candidate-img {
    height: 120px;
    width: 120px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: transform 0.2s ease;
}

    /* Optional hover zoom effect */
    .candidate-img:hover {
        transform: scale(1.08);
    }

/* Keyframes for smooth infinite scrolling */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.blogs-container {
    padding: 20px 0;
}

.stats-container {
    text-align: center;
    padding: 20px 0;
}

.stat-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-icon {
    font-size: 48px;
    color: #2E7D32; /* choose your theme color */
    margin-bottom: 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.8;
}

.digital-clock {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    letter-spacing: 2px;
}

.footer-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}