html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--mud-palette-background);
    color: var(--mud-palette-text-primary);
}

:root {
    --turquoise: #15b981;
    --background-color: white;
    --text-color: black;
}

.dark-mode {
    --turquoise: #15b981;
    --background-color: #121212;
    --text-color: #ffffff;
}

/* Shared container for pages */
.page-container {
    width: 90%;
    max-width: 1800px;
    margin: 0 auto;
    overflow: auto;
}

.content {
    padding-top: 1.1rem;
}

.text-center {
    text-align: center;
}

.fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3
}

.ostj-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(128, 128, 128, 0.4);
    /* semi-transparent gray */
    z-index: 999;
    /* just below your overlay */
}

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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAy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MDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

@media (prefers-color-scheme: dark) {
    .MuiLogin {
        fill: white;
        /* Light mode */
    }
}

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


.job-description-container {
    max-width: 100%;
    font-family: sans-serif;
}

.job-description {
    max-height: 0.1em;
    /* ~3 lines */
    overflow: hidden;
    position: relative;
    line-height: 1.5em;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    transition: max-height 0.3s ease;
}

.job-description-hidden {
    display: none;
}

/* Expanded state: fixed height + scroll */
.job-description.expanded {
    max-height: 75vh;
    /* fixed scrollable height */
    overflow-y: auto;
    mask-image: none;
    -webkit-mask-image: none;
}

.view-more {
    display: inline-block;
    margin-top: 0.5em;
    color: teal;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95em;
}

.hoverable-card {
    transition: box-shadow 0.2s;
    box-shadow: var(--mud-elevation-1) !important;
}

.hoverable-card:hover {
    box-shadow: var(--mud-elevation-20) !important;
    cursor: pointer;
    background-color: lightgrey
}

.card-border {
    border: none;
    border-radius: 12px;
}

.jobsearch-jobDescriptionText {
    font-size: 16px;
    line-height: 1.6;
    color: #2d2d2d;
    white-space: pre-line;
    padding: 16px;
    max-width: 95%;
    margin: 0 auto;
    background-color: #fff;
    /*border: 1px solid #e0e0e0;
    border-radius: 4px;*/

}

.pos-divider-class {
    border-color: #0078D7;
    /* Stronger color (e.g., blue) */
    border-width: 2px;
    /* Thicker line */
    opacity: 1;
    /* Fully visible */
    padding: 5px;
    /* Optional: vertical spacing */
}

.equal-height-row {
    display: flex;
    flex-wrap: wrap;
}

.equal-height-row>.mud-grid-item {
    display: flex;
    flex-direction: column;
}

.equal-height-row>.mud-grid-item>.mud-card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.equal-height-row .feature {
    flex: 1 1 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.custom-input {
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    padding: 12px 14px;
    font-size: 1rem;
    background: #fff;
    width: 100%;
    transition: border-color 0.2s;
}

.custom-input:focus {
    border-color: #1976d2;
    outline: none;
}

.custom-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 4px;
}

/* Custom MudBlazor-like button */
.custom-mud-button {
    display: inline-block;
    width: 55%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    background-color: #15b981;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 4px 0 rgba(33, 33, 33, 0.08);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    position: relative;
}

.custom-mud-button:disabled,
.custom-mud-button[aria-disabled="true"] {
    color: #000000;
    background-color: #15b981;
    cursor: not-allowed;
    opacity: 0.7;
}

.custom-mud-button:hover:not(:disabled),
.custom-mud-button:focus:not(:disabled) {
    background-color: #11996b;
    /* Slightly darker for hover/focus */
    box-shadow: 0 4px 8px 0 rgba(33, 33, 33, 0.12);
    outline: none;
}

.custom-mud-button .spinner-border {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.mud-typography.text-loose {
    line-height: 1.8;
}

.mud-typography.text-tight {
    line-height: 1.2;
}

.mud-link.text-black {
    color: black !important;
}

.mud-button {
    color: black !important;
}

.location-label .mud-input-label {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    padding-bottom: 5px !important;
}

a.footer-link {
    font-size: 0.9rem;
    margin-right: 20px;
    cursor: pointer;
    color: white !important;
    text-decoration: underline;
    transition: color 0.2s;
}

.footer-link:hover,
.footer-link:focus {
    color: #90caf9;
    /* Light blue on hover for feedback */
    text-decoration: underline;
}


.text-black {
    color: black !important;
}


.chips-responsive-stack {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.container-py {
    width: 70% !important;
    overflow-y: auto;
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.responsive-h3 {
    font-size: 2.19rem !important;
    font-weight: 700 !important;
}

.responsive-body1 {
    font-size: 1.19rem !important;
    /* Example: smaller font for mobile */
    font-weight: 700 !important;
    /* Example: smaller font for mobile */
    line-height: 1.5rem !important;
    /* Adjust as needed */
    text-align: left !important;
    /* Example: left align on mobile */
    margin-bottom: 8px !important;
    /* Example: tweak spacing */
}

.header-link {
    white-space: nowrap;
    font-weight: 400 !important;
    font-size: 0.9rem !important;
    color: black !important;
    padding: 0 5px;
    height: 100%;
}

@media (min-width: 960px) {
    .profile-container {
        width: 80%;
    }
}

@media (max-width: 600px) {
    .chips-responsive-stack {
        flex-direction: column;
        align-items: stretch;
    }
}

.login-input-group {
    display: flex;
    flex-direction: row;
    gap: 0;
    width: 100%;
}

.custom-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    border-color: black;
    margin-right: -5px;
    display: flex;
    align-items: center;
}

.custom-input-verify {
    height: 40px;
    padding: 5px;
    border-radius: 4px;
    border-right: 1px solid #bdbdbd !important;
    border: 1px solid #bdbdbd;
    font-size: 1rem;
    background: #fff;
    width: 100%;
    transition: border-color 0.2s;
    margin-right: 0 !important;
}

.custom-mud-button {
    height: 40px;
    width: 40%;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}



.hero-image {
    margin-top: -60px;
    height: auto;
    max-height: 450px;
}

/* Responsive: stack vertically on small screens */
@media (max-width: 600px) {

    .container-py {
        width: 100% !important;
        overflow-y: auto;
        padding-top: 10px !important;
    }

    .profile-container {
        padding-bottom: 30px !important;
    }

    .responsive-h3 {
        font-size: 1.19rem !important;
        font-weight: 700 !important;
        text-align: center !important;
    }

    .responsive-body1 {
        font-size: 0.9rem !important;
        /* Example: smaller font for mobile */
        font-weight: 400 !important;
        /* Example: smaller font for mobile */
        line-height: 1.5rem !important;
        /* Adjust as needed */
        text-align: center !important;
        /* Example: left align on mobile */
        margin-bottom: 8px !important;
        /* Example: tweak spacing */
    }

    .login-input-group {
        flex-direction: column;
    }

    .custom-input {
        border-radius: 4px;
        border-right: 1px solid #bdbdbd !important;
        border: 1px solid #bdbdbd;
        font-size: 1rem;
        background: #fff;
        width: 100%;
        transition: border-color 0.2s;
        margin-right: 0 !important;
    }

    .custom-mud-button {
        margin-top: 8px;
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        color: #000000;
        background-color: var(--turquoise);
        border: none;
        border-radius: 5px;
        box-shadow: 0 2px 4px 0 rgba(33, 33, 33, 0.08);
        cursor: pointer;
        transition: background 0.2s, box-shadow 0.2s;
    }

    .hero-image {
        height: auto;
        max-height: 250px;
        width: 100%;
        object-fit: contain;
        margin-top: 0px;
    }

    .features-section {
        padding: 0px 0;
    }

    .mud-slider .mud-slider-input {
        width: 180px !important;
        height: 0px !important;
    }


}