/* Premium glassmorphic Accessibility widget styles */

:root {
    --a11y-primary: #064F96;
    --a11y-primary-light: #0088FF;
    --a11y-bg: rgba(255, 255, 255, 0.88);
    --a11y-card-bg: rgba(255, 255, 255, 0.6);
    --a11y-card-border: rgba(255, 255, 255, 0.5);
    --a11y-text: #1f1a17;
    --a11y-text-muted: #666666;
    --a11y-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --a11y-font: 'Lexend', 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* -------------------------------------------------------------
   WIDGET WRAPPER AND TRIGGER BUTTON
------------------------------------------------------------- */

.a11y-widget-container {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: var(--a11y-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
    z-index: 999998;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    font-family: var(--a11y-font);
    color: var(--a11y-text);
    text-align: left;
}

.a11y-widget-container.open {
    right: 0;
}

.a11y-widget-container * {
    box-sizing: border-box;
}

.a11y-trigger-btn {
    position: fixed;
    bottom: 160px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--a11y-primary), var(--a11y-primary-light));
    border: none;
    color: #ffffff;
    cursor: pointer;
    z-index: 999997;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(6, 79, 150, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.a11y-trigger-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(6, 79, 150, 0.6);
}

.a11y-trigger-btn svg {
    width: 26px;
    height: 26px;
    stroke: #ffffff;
}

/* Radar pulse animation for trigger */
.a11y-trigger-btn::before,
.a11y-trigger-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(6, 79, 150, 0.4);
    z-index: -1;
    animation: a11y-radar 2.5s infinite;
}

.a11y-trigger-btn::after {
    animation-delay: 1.25s;
}

@keyframes a11y-radar {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

/* -------------------------------------------------------------
   WIDGET HEADER AND FOOTER
------------------------------------------------------------- */

.a11y-header {
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.a11y-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--a11y-primary);
    line-height: 1.2;
}

.a11y-reset-btn {
    background: transparent;
    border: 1px solid rgba(6, 79, 150, 0.3);
    color: var(--a11y-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.a11y-reset-btn:hover {
    background: var(--a11y-primary);
    color: #ffffff;
    border-color: var(--a11y-primary);
}

.a11y-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.a11y-close-btn {
    background: transparent;
    border: none;
    color: var(--a11y-text-muted);
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

.a11y-close-btn:hover {
    color: #ff3b30;
    transform: scale(1.15);
}

.a11y-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.a11y-body::-webkit-scrollbar {
    width: 6px;
}

.a11y-body::-webkit-scrollbar-track {
    background: transparent;
}

.a11y-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 3px;
}

.a11y-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.24);
}

.a11y-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
}

.a11y-footer p {
    margin: 0;
    font-size: 11px;
    color: var(--a11y-text-muted);
}

/* -------------------------------------------------------------
   CARD GRID & COMPONENT STYLING
------------------------------------------------------------- */

.a11y-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.a11y-card {
    background: var(--a11y-card-bg);
    border: 1px solid var(--a11y-card-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 155px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.a11y-card:hover {
    transform: translateY(-2px);
    border-color: rgba(6, 79, 150, 0.25);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.a11y-card-full {
    grid-column: span 2;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.a11y-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(6, 79, 150, 0.08);
    color: var(--a11y-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.a11y-card-full .a11y-card-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.a11y-card-icon svg {
    width: 20px;
    height: 20px;
}

.a11y-card-info {
    flex-grow: 1;
}

.a11y-card-info h3 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 700;
    color: #1f1a17;
}

.a11y-card-info p {
    margin: 0;
    font-size: 11px;
    color: var(--a11y-text-muted);
    line-height: 1.35;
}

/* Custom switch toggle */
.a11y-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin-top: 12px;
    align-self: flex-start;
}

.a11y-card-full .a11y-switch {
    margin-top: 0;
    align-self: center;
    flex-shrink: 0;
}

.a11y-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.a11y-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.12);
    transition: .3s;
    border-radius: 24px;
}

.a11y-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.a11y-switch input:checked+.a11y-slider {
    background-color: var(--a11y-primary);
}

.a11y-switch input:focus+.a11y-slider {
    box-shadow: 0 0 0 3px rgba(6, 79, 150, 0.25);
}

.a11y-switch input:checked+.a11y-slider:before {
    transform: translateX(20px);
}

/* Text Zoom controls inside Zoom card */
.a11y-zoom-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.a11y-zoom-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(6, 79, 150, 0.25);
    background: #ffffff;
    color: var(--a11y-primary);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
}

.a11y-zoom-btn:hover {
    background: var(--a11y-primary);
    color: #ffffff;
    border-color: var(--a11y-primary);
}

.a11y-zoom-value {
    font-size: 13px;
    font-weight: 700;
    min-width: 64px;
    text-align: center;
    color: var(--a11y-text);
}

/* Responsive adjustment for drawer panels */
@media (max-width: 480px) {
    .a11y-widget-container {
        width: 100%;
        right: -100%;
    }

    .a11y-grid {
        grid-template-columns: 1fr;
    }

    .a11y-card-full {
        flex-direction: column;
        align-items: flex-start;
    }

    .a11y-zoom-controls {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
}

/* -------------------------------------------------------------
   ACCESSIBILITY CONTROLS OVERRIDES
------------------------------------------------------------- */

/* 1. Color Contrast (High Contrast) */
body.a11y-high-contrast {
    background-color: #000000 !important;
    background-image: none !important;
    color: #ffffff !important;
}

body.a11y-high-contrast :not(.a11y-widget-container):not(.a11y-widget-container *):not(.a11y-trigger-btn):not(.a11y-trigger-btn *) {
    background-color: #000000 !important;
    background-image: none !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

body.a11y-high-contrast a:not(.a11y-widget-container):not(.a11y-widget-container *):not(.a11y-trigger-btn):not(.a11y-trigger-btn *) {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

body.a11y-high-contrast a:not(.a11y-widget-container):not(.a11y-widget-container *):not(.a11y-trigger-btn):not(.a11y-trigger-btn *):hover {
    background-color: #ffff00 !important;
    color: #000000 !important;
}

body.a11y-high-contrast img:not(.a11y-widget-container *):not(.a11y-trigger-btn *) {
    filter: brightness(0.8) contrast(1.2) !important;
}

/* 2. Screen Reader Outline Highlight */
.a11y-sr-highlight {
    outline: 3px dashed #0088ff !important;
    outline-offset: 2px !important;
    background-color: rgba(0, 136, 255, 0.15) !important;
    transition: outline 0.1s ease, background-color 0.1s ease !important;
}

/* 3. Keyboard Navigation Outline */
body.a11y-keyboard-nav *:focus:not(.a11y-widget-container *):not(.a11y-trigger-btn *) {
    outline: 4px dashed #0000ff !important;
    outline-offset: 2px !important;
}

.a11y-skip-link {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--a11y-primary);
    color: #ffffff !important;
    padding: 12px 24px;
    z-index: 1000001;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: var(--a11y-shadow);
    transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--a11y-font);
}

.a11y-skip-link:focus {
    top: 0;
    outline: 4px dashed #0000ff !important;
    outline-offset: 2px !important;
}

/* 5. Video (Pause animations/transitions) */
body.a11y-pause-animations *,
body.a11y-pause-animations *::before,
body.a11y-pause-animations *::after {
    animation-play-state: paused !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    animation-delay: 0s !important;
    scroll-behavior: auto !important;
}

/* 6. Color (Monochrome/Grayscale) */
body.a11y-grayscale {
    filter: grayscale(1) !important;
}

/* 7. Other A11y (Custom Cursor & Highlight Links) */
body.a11y-custom-cursor,
body.a11y-custom-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M0,0 L0,22 L6,16 L11,26 L14,24.5 L9.5,15 L16,15 Z' fill='black' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"), auto !important;
}

body.a11y-highlight-links a:not(.a11y-widget-container *):not(.a11y-trigger-btn *) {
    background-color: #ffff00 !important;
    color: #000000 !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
    padding: 2px 4px !important;
    border-radius: 2px !important;
    box-shadow: 0 2px 5px rgba(255, 255, 0, 0.4) !important;
}

/* Fix Industry Accolades slick dots overlap & accessibility */
.industry-slick {
    position: relative;
    padding-bottom: 30px !important;
}

.industry-slick .slick-dots {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99 !important;
    list-style: none !important;
    padding: 0 !important;
}

.industry-slick .slick-dots li {
    display: inline-block !important;
    margin: 0 6px !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
}

.industry-slick .slick-dots li button {
    display: block !important;
    opacity: 1 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}



/* Ensure focus outline shows up clearly on keyboard focus */
.industry-slick .slick-dots li button:focus-visible,
.industry-slick .slick-dots li button:focus {
    outline: 3px solid #005fcc !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.35) !important;
}

.slick-dots li.slick-active button {
    background: blue;
    height: 10px !important;
    width: 10px !important;

}

.slick-dots li button {
    height: 10px !important;
    border-radius: 50% !important;
    width: 10px !important;

}