:root {
    --a11y-font-scale: 1;
    --a11y-line-height: 1.6;
    --a11y-letter-spacing: 0px;
}

.hiwi {
    position: fixed;
    top: 650px;
    right: 0;
    width: 160px;
    z-index: 99999;
}

.hiwi .hiwi-lists {
    position: relative;
    right: -197px;
    z-index: 999990;
    transition: all 1s;
}

.hiwi:hover .hiwi-lists {
    right: 0px !important;
    position: relative;
    z-index: 999990;
    transition: all 1s;
    cursor: pointer;
}

.hiwi-lists li {
    margin-bottom: 8px;
}

.hiwi-lists i {
    color: #fff;
    background: #333950;
    padding: 5px;
    border-radius: 15px;
    font-size: 26px;
    display: inline-block;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 37px;
}

.hiwi-lists li .hiwi-links {
    color: #fff;
    background: #333950;
    padding: 2px 15px 4px 15px;
    border-radius: 15px;
    font-size: 15px;
    display: inline-block;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ol, ul {
    list-style: none;
}

html.a11y-enabled body {
    line-height: var(--a11y-line-height);
}

html.a11y-enabled p,
html.a11y-enabled li,
html.a11y-enabled a,
html.a11y-enabled span,
html.a11y-enabled div,
html.a11y-enabled td,
html.a11y-enabled th,
html.a11y-enabled label,
html.a11y-enabled input,
html.a11y-enabled button,
html.a11y-enabled textarea,
html.a11y-enabled select {
    letter-spacing: var(--a11y-letter-spacing);
}

html.a11y-enabled *:focus-visible {
    outline: 3px solid #ffc107 !important;
    outline-offset: 2px !important;
}

html.a11y-highlight-links a {
    text-decoration: underline !important;
    font-weight: 600 !important;
}

html.a11y-pause-animations *,
html.a11y-pause-animations *::before,
html.a11y-pause-animations *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

html.a11y-grayscale #main-wrapper {
    filter: grayscale(1);
}

html.a11y-contrast-high #main-wrapper {
    filter: contrast(1.35) saturate(1.15);
}

html.a11y-contrast-dark #main-wrapper {
    filter: invert(1) hue-rotate(180deg);
}

html.a11y-contrast-dark body {
    background: #000 !important;
    color: #fff;
}

html.a11y-contrast-dark #main-wrapper .edu-footer {
    filter: invert(1) hue-rotate(180deg) !important;
    background-color: #020617 !important;
    color: #e5e7eb !important;
}

html.a11y-contrast-dark #main-wrapper .edu-footer .footer-top,
html.a11y-contrast-dark #main-wrapper .edu-footer .copyright-area {
    background-color: #020617 !important;
}

html.a11y-contrast-dark #main-wrapper .edu-footer a,
html.a11y-contrast-dark #main-wrapper .edu-footer p,
html.a11y-contrast-dark #main-wrapper .edu-footer li,
html.a11y-contrast-dark #main-wrapper .edu-footer h4,
html.a11y-contrast-dark #main-wrapper .edu-footer span {
    color: #e5e7eb !important;
}

html.a11y-contrast-dark #main-wrapper img,
html.a11y-contrast-dark #main-wrapper video,
html.a11y-contrast-dark #main-wrapper iframe,
html.a11y-contrast-dark #main-wrapper svg,
html.a11y-contrast-dark #main-wrapper canvas {
    filter: invert(1) hue-rotate(180deg);
}

.a11y-skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    background: #111827;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    z-index: 100001;
    text-decoration: none;
    font-size: 14px;
}

.a11y-skip-link:focus {
    top: 12px;
}

html.a11y-modal-open body {
    overflow: hidden;
}

.a11y-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 99990;
}

.a11y-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.a11y-widget {
    position: fixed;
    right: 24px;
    bottom: 110px;
    z-index: 100000;
    width: min(390px, calc(100vw - 24px));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.a11y-trigger {
    position: relative;
    width: 72px;
    height: 72px;
    border: 2px solid #1d4ed8;
    border-radius: 999px;
    background: #ffffff;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.24);
    opacity: 1;
    visibility: visible;
}

.a11y-trigger:focus-visible {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
}

.a11y-trigger img {
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    margin: 4px;
    display: block;
    border-radius: 999px;
    object-fit: cover;
}

.a11y-widget.is-open .a11y-trigger {
    transform: scale(1.05);
}

.a11y-panel {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(390px, calc(100vw - 20px));
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #d9e3f0;
    border-radius: 14px;
    box-shadow: 0 26px 48px rgba(15, 23, 42, 0.22);
    max-height: 78vh;
    overflow: auto;
}

.a11y-widget.is-open .a11y-panel {
    display: block;
    animation: a11y-panel-in 0.18s ease-out;
}

@keyframes a11y-panel-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.a11y-panel-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f7faff;
    border-bottom: 1px solid #dbe6f4;
    border-radius: 14px 14px 0 0;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.a11y-heading {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.a11y-subheading {
    margin: 2px 0 0;
    font-size: 12px;
    color: #475569;
    line-height: 1.35;
}

.a11y-close-btn {
    border: 0;
    background: #e2e8f0;
    color: #0f172a;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.a11y-panel-body {
    padding: 12px;
}

.a11y-state {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 999px;
    padding: 6px 10px;
    display: inline-flex;
}

.a11y-control {
    margin-bottom: 10px;
    border: 1px solid #dbe6f4;
    background: #f8fbff;
    border-radius: 10px;
    padding: 9px 10px;
}

.a11y-control-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 8px;
}

.a11y-control-head label {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.a11y-control-head span {
    font-size: 12px;
    color: #334155;
    font-weight: 700;
    background: #e2e8f0;
    border-radius: 999px;
    padding: 2px 8px;
}

.a11y-control select,
.a11y-control input[type="range"] {
    width: 100%;
}

.a11y-control select {
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 10px;
    background: #fff;
    font-size: 13px;
}

.a11y-control input[type="range"] {
    accent-color: #1674de;
}

.a11y-switches {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.a11y-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #dbe6f4;
    background: #f8fbff;
    border-radius: 10px;
    padding: 9px 10px;
}

.a11y-switch-copy strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.a11y-switch-copy span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
}

.a11y-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.a11y-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.a11y-toggle span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.2s ease;
}

.a11y-toggle span::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.35);
    transition: transform 0.2s ease;
}

.a11y-toggle input:checked + span {
    background: #1674de;
}

.a11y-toggle input:checked + span::after {
    transform: translateX(20px);
}

.a11y-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.a11y-actions button {
    border: 1px solid #d5deec;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.a11y-btn-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    flex-shrink: 0;
}

#a11yReset {
    border-color: #fecaca;
    color: #b91c1c;
    background: #fef2f2;
}

.a11y-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

@media (max-width: 991px) {
    .a11y-widget {
        right: 10px;
        bottom: 84px;
        width: min(390px, calc(100vw - 20px));
    }

    .a11y-trigger {
        width: 66px;
        height: 66px;
    }

    .a11y-actions {
        grid-template-columns: 1fr;
    }
}
