/* Viewports wider than 1920px */
@media (min-width: 1921px) {
    .banner-style-two {
        height: 900px;
    }
}

.nice-select {
    width: 100%;
}

.nice-select .current {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nice-select .list {
    min-width: 100%;
    max-height: 350px;
    overflow-y: scroll;
}

/* ========== Accessibility Menu ========== */
.a11y-widget {
    position: fixed;
    top: 20%;
    right: 0;
    z-index: 99999;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.4;
}

.a11y-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    padding: 0;
    border: none;
    border-radius: 6px 0 0 6px;
    background: #c62828;
    color: #fff;
    cursor: pointer;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease;
    position: relative;
    z-index: 2;
}

.a11y-trigger:hover,
.a11y-trigger:focus {
    background: #a51e1e;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.a11y-trigger-icon {
    font-size: 26px;
    line-height: 1;
}

.a11y-panel {
    position: relative;
    top: 0;
    right: 0;
    width: 260px;
    max-width: calc(100vw - 56px);
    max-height: 70vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.18);
    z-index: 1;
    -webkit-overflow-scrolling: touch;
}

.a11y-panel[hidden] {
    display: none !important;
}

.a11y-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.a11y-panel-header h2 {
    margin: 0;
    font-size: 18px !important;
    font-weight: 700;
    color: #111 !important;
    line-height: 1.2;
    background: transparent !important;
}

.a11y-close {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #333 !important;
    cursor: pointer;
    padding: 0 4px;
}

.a11y-close:hover,
.a11y-close:focus {
    color: #c62828 !important;
}

.a11y-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.a11y-list li {
    margin: 0;
}

.a11y-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #111 !important;
    font-size: 15px !important;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.a11y-btn span {
    text-decoration: underline;
    text-underline-offset: 2px;
    color: inherit !important;
    background: transparent !important;
}

.a11y-btn i {
    font-size: 20px;
    min-width: 22px;
    color: #333 !important;
    background: transparent !important;
}

.a11y-btn:hover,
.a11y-btn:focus {
    background: #f0f0f0;
    outline: none;
}

.a11y-btn.is-active {
    background: #555 !important;
    color: #fff !important;
}

.a11y-btn.is-active span,
.a11y-btn.is-active i {
    color: #fff !important;
}

.a11y-btn.is-active:hover,
.a11y-btn.is-active:focus {
    background: #444 !important;
}

/* Widget must stay readable under page modes */
html.a11y-high-contrast .a11y-panel,
html.a11y-light-background .a11y-panel,
html.a11y-grayscale .a11y-panel,
html.a11y-negative-contrast .a11y-panel {
    background: #fff !important;
}

html.a11y-high-contrast .a11y-panel *,
html.a11y-light-background .a11y-panel *:not(.is-active):not(.is-active *),
html.a11y-grayscale .a11y-panel *:not(.is-active):not(.is-active *) {
    color: #111 !important;
}

html.a11y-high-contrast .a11y-btn.is-active,
html.a11y-light-background .a11y-btn.is-active,
html.a11y-grayscale .a11y-btn.is-active {
    background: #555 !important;
    color: #fff !important;
}

html.a11y-high-contrast .a11y-btn.is-active span,
html.a11y-high-contrast .a11y-btn.is-active i,
html.a11y-light-background .a11y-btn.is-active span,
html.a11y-light-background .a11y-btn.is-active i {
    color: #fff !important;
}

html.a11y-high-contrast .a11y-trigger,
html.a11y-light-background .a11y-trigger,
html.a11y-grayscale .a11y-trigger,
html.a11y-negative-contrast .a11y-trigger {
    background: #c62828 !important;
    color: #fff !important;
}

/* --- Mode effects (applied on <html>) --- */
html.a11y-grayscale {
    filter: grayscale(100%);
}

/* High contrast: black page, white text, yellow links – no CSS filter (avoids invisible text) */
html.a11y-high-contrast body {
    background: #000 !important;
    color: #fff !important;
}

html.a11y-high-contrast body *:not(.a11y-widget):not(.a11y-widget *):not(.banner-style-two):not(.banner-style-two *):not(.nice-select):not(.nice-select *) {
    color: #fff !important;
    border-color: #fff !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html.a11y-high-contrast body section:not(.banner-style-two),
html.a11y-high-contrast body .container,
html.a11y-high-contrast body .row,
html.a11y-high-contrast body [class*="section"],
html.a11y-high-contrast body .navbar-area,
html.a11y-high-contrast body .main-nav,
html.a11y-high-contrast body .footer-area,
html.a11y-high-contrast body .page-title,
html.a11y-high-contrast body .copyright-text,
html.a11y-high-contrast body .card,
html.a11y-high-contrast body .job-card,
html.a11y-high-contrast body .category-item,
html.a11y-high-contrast body .find-form,
html.a11y-high-contrast body .subscribe-section {
    background: #000 !important;
    background-image: none !important;
    color: #fff !important;
}

/* Keep homepage banner image visible */
html.a11y-high-contrast body .banner-style-two {
    background-color: transparent !important;
    background-image: url(../img/banner/banner.jpeg) !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

html.a11y-high-contrast body .banner-style-two::before {
    background: rgba(0, 0, 0, 0.45) !important;
    background-image: none !important;
}

html.a11y-high-contrast body .banner-style-two,
html.a11y-high-contrast body .banner-style-two * {
    color: #fff !important;
}

html.a11y-high-contrast body a:not(.a11y-widget a),
html.a11y-high-contrast body a:not(.a11y-widget a) * {
    color: #ffff00 !important;
    background: transparent !important;
}

html.a11y-high-contrast body button:not(.a11y-widget button),
html.a11y-high-contrast body .default-btn,
html.a11y-high-contrast body .btn,
html.a11y-high-contrast body .find-btn,
html.a11y-high-contrast body input,
html.a11y-high-contrast body select,
html.a11y-high-contrast body textarea {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
}

/* Native <select> dropdown options */
html.a11y-high-contrast body select option,
html.a11y-high-contrast body select optgroup {
    background: #000 !important;
    color: #fff !important;
}

/* Nice Select (theme dropdowns) */
html.a11y-high-contrast body .nice-select {
    background: #000 !important;
    background-color: #000 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
}

html.a11y-high-contrast body .nice-select .current {
    color: #fff !important;
    background: transparent !important;
}

html.a11y-high-contrast body .nice-select::after {
    border-bottom-color: #fff !important;
    border-right-color: #fff !important;
}

html.a11y-high-contrast body .nice-select .list {
    background: #000 !important;
    background-color: #000 !important;
    border: 1px solid #fff !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15) !important;
    z-index: 9999 !important;
}

html.a11y-high-contrast body .nice-select .option,
html.a11y-high-contrast body .nice-select .option span {
    background: #000 !important;
    background-color: #000 !important;
    color: #fff !important;
}

html.a11y-high-contrast body .nice-select .option:hover,
html.a11y-high-contrast body .nice-select .option.focus,
html.a11y-high-contrast body .nice-select .option.selected.focus,
html.a11y-high-contrast body .nice-select .option:hover span,
html.a11y-high-contrast body .nice-select .option.focus span {
    background: #333 !important;
    background-color: #333 !important;
    color: #ffff00 !important;
}

html.a11y-high-contrast body .nice-select .option.selected {
    font-weight: 700;
    color: #ffff00 !important;
}

html.a11y-high-contrast body img:not(.a11y-widget img) {
    opacity: 0.85;
    filter: grayscale(100%) contrast(1.25);
}

html.a11y-high-contrast body .page-title::before {
    background: #000 !important;
}

html.a11y-negative-contrast {
    filter: invert(1) hue-rotate(180deg);
}

html.a11y-negative-contrast img,
html.a11y-negative-contrast video {
    filter: invert(1) hue-rotate(180deg);
}

html.a11y-negative-contrast .a11y-widget {
    filter: invert(1) hue-rotate(180deg);
}

html.a11y-light-background body,
html.a11y-light-background .page-title,
html.a11y-light-background section:not(.banner-style-two),
html.a11y-light-background .footer-area,
html.a11y-light-background .navbar-area,
html.a11y-light-background .main-nav,
html.a11y-light-background .copyright-text {
    background: #fff !important;
    background-image: none !important;
    color: #111 !important;
}

/* Keep homepage banner image visible with a light overlay for readable text */
html.a11y-light-background body .banner-style-two {
    background-color: transparent !important;
    background-image: url(../img/banner/banner.jpeg) !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

html.a11y-light-background body .banner-style-two::before {
    background: rgba(255, 255, 255, 0.55) !important;
}

html.a11y-light-background body *:not(.a11y-widget):not(.a11y-widget *) {
    color: #111 !important;
}

html.a11y-light-background body .banner-style-two,
html.a11y-light-background body .banner-style-two * {
    color: #111 !important;
}

html.a11y-links-underline body a:not(.a11y-widget a) {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

html.a11y-readable-font body,
html.a11y-readable-font body *:not(.a11y-widget):not(.a11y-widget *) {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: 0.02em;
    word-spacing: 0.05em;
}

@media (max-width: 575px) {
    .a11y-panel {
        width: min(260px, calc(100vw - 56px));
        max-height: 60vh;
    }

    .a11y-widget {
        top: auto;
        bottom: 100px;
    }
}
