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

a, .btn-link {
    color: #006bb7;
}


/* Mobile-specific overflow fixes */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .mud-main-content {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Ensure all containers respect viewport bounds on mobile */
    .mud-container,
    .mud-grid {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}


.mud-button-square {
    border-radius: 0 !important;
}

.mud-button-normal-case {
    text-transform: none !important;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.mud-button-large-text {
    font-size: 1.125rem !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

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

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

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

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


.light-mode {
    --section-bg-1: white;
    --section-bg-2: #f7fafc; /*off white bakcground */
    --section-bg-3: #2d3748;
    --section-bg-4: #0D2B53;
    --section-bg-5: #F0F0F0;
    --section-bg-6: #3182CE;
    --font-accent: #4A5568; /* dark gray for light mode */
}

.dark-mode {
    --section-bg-1: #001a33;
    --section-bg-2: #002b4d;
    --section-bg-3: #003366;
    --section-bg-4: #000a14;
    --section-bg-5: #111426;
    --section-bg-6: #ffffff;
    --font-accent: #D3D3D3; /* D3D3D3   #DCDCDC light color for dark mode */
}

.bg-accent1 {
    background-color: var(--section-bg-1) !important;
}

.bg-accent2 {
    background-color: var(--section-bg-2) !important;
}

.bg-accent3 {
    background-color: var(--section-bg-3) !important;
}

.bg-accent4 {
    background-color: var(--section-bg-4) !important;
}

.mud-paper.bg-accent4 {
    background-color: var(--section-bg-4) !important;
}

.bg-accent5 {
    background-color: var(--section-bg-5) !important;
}

.bg-accent6 {
    background-color: var(--section-bg-6) !important;
}

.text-accent {
    color: var(--font-accent) !important;
}

.color-blue-gray {
    color: #718096;
}


.footer-text {
    color: lightgray;
}


.min-vh-50 {
    min-height: 50%;
}


/* Responsive typography mapped to your MudProvider */
.mud-typography-h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem); /* increased from 2rem to 2.25rem */
}
/* 36px → 56px (was 32px → 56px) */
.mud-typography-h2 {
    font-size: clamp(2rem, 4vw, 2.75rem); /* increased from 1.75rem to 2rem */
}
/* 32px → 44px (was 28px → 44px) */
.mud-typography-h3 {
    font-size: clamp(1.75rem, 3vw, 2.25rem); /* increased from 1.5rem to 1.75rem */
}
/* 28px → 36px (was 24px → 36px) */
.mud-typography-h4 {
    font-size: clamp(1.375rem, 2.5vw, 1.875rem); /* increased from 1.25rem to 1.375rem */
}
/* 22px → 30px (was 20px → 30px) */
.mud-typography-h5 {
    font-size: clamp(1.25rem, 2vw, 1.5rem); /* increased from 1.125rem to 1.25rem */
}
/* 20px → 24px (was 18px → 24px) */
.mud-typography-h6 {
    font-size: clamp(1.125rem, 1.6vw, 1.25rem); /* increased from 1rem to 1.125rem */
}
/* 18px → 20px (was 16px → 20px) */

.mud-typography-body1 {
    font-size: clamp(1.125rem, 1.5vw, 1.2rem); /* increased from 1rem to 1.125rem */
}
/* 18px → 19.2px (was 16px → 19.2px) */
.mud-typography-body2 {
    font-size: clamp(1rem, 1.2vw, 1rem); /* increased from 0.875rem to 1rem */
}
/* 16px → 16px (was 14px → 16px) */

.mud-typography-subtitle1 {
    font-size: clamp(1.125rem, 1.4vw, 1.125rem); /* increased from 1rem to 1.125rem */
}
/* 18px → 18px (was 16px → 18px) */
.mud-typography-subtitle2 {
    font-size: clamp(1.125rem, 1.2vw, 1rem); /* increased from 1rem to 1.125rem */
}
/* 18px → 16px (was 16px → 16px) */

.mud-typography-button {
    font-size: clamp(1.125rem, 1.2vw, 1rem); /* increased from 1rem to 1.125rem */
}
/* fixed 16px */
.mud-typography-caption,
.mud-typography-overline {
    font-size: 0.875rem;
}
/* fixed 14px */




.hero-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 100vh;
    min-height: 400px;
    max-height: 1200px;
}

/* On mobile: override to use aspect ratio instead of vh */
@media (max-width: 768px) {
    .hero-container {
        height: 100vh;
        min-height: 0;
        max-height: 600px;
        padding-top: 56.25%; /* 16:9 fluid aspect ratio */
    }
}

.hero-background {
    position: absolute;
    opacity: 0;
    transition: opacity 5.8s ease-in;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*  background-image: url('your-image.jpg');*/
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    z-index: 0;
}

    .hero-background.fade-in {
        opacity: 1;
    }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.45 );
}




.hero-title {
    color: white !important;
    text-transform: uppercase;
}

.walym-divider,
.walym-divider-left {
    width: 200px;
    border-top: 3px solid var(--mud-palette-primary);
}

/*Notification bar css*/
/*Notification bar css*/
:root {
    --notification-bar-height: 60px;
    --appbar-height: 64px;
}

.notification-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #2B6CB0;
    z-index: 1400;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 8px 16px;
    height: var(--notification-bar-height);
    display: flex;
    align-items: center;
}

.notification-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.notification-text {
    flex: 1;
    color: white;
    margin: 0;
}

/* Only push AppBar down when notification bar is present */
.has-notification-bar .mud-appbar {
    top: var(--notification-bar-height) !important;
}

/* Only add notification bar height to main content (MudBlazor already handles AppBar spacing) */
.has-notification-bar .mud-main-content {
    margin-top: var(--notification-bar-height) !important;
}

.notification-btn {
    background-color: whitesmoke;
    color: #2B6CB0;
    font-weight: 600;
    height: 35px;
    border-radius: 5px
}


/* Footer menu styling - off-white text */
.footer-menu .mud-button-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

    .footer-menu .mud-button-text:hover {
        color: rgba(255, 255, 255, 1) !important;
    }

/* Also style the dropdown icon */
.footer-menu .mud-icon-root {
    color: rgba(255, 255, 255, 0.9) !important;
}


.ql-video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* The height of the item will now be 56.25% of the width. */
}

    .ql-video-wrapper iframe {
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
    }
