/* ==========================================================================
   Accessibility layer — WCAG 2.1 Level AA / SEBI Circular 131
   Credential Asset Management

   ADDITIVE ONLY. This file does not override any existing colour, typeface,
   size, spacing or layout rule from style.css / responsive.css. It adds:
     1. Skip-to-main-content link          (WCAG 2.4.1)
     2. Visible keyboard focus indicators  (WCAG 2.4.7, 1.4.11)
     3. Screen-reader-only utility class   (WCAG 1.1.1, 4.1.2)
     4. <h1> parity with the theme's <h2>  (WCAG 1.3.1, 2.4.6)
     5. Native <button> reset so semantic buttons look identical to the
        <div>s they replaced                (WCAG 2.1.1, 4.1.2)
     6. Carousel pause control              (WCAG 2.2.2)
     7. Reduced-motion support              (WCAG 2.3.3)
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Skip to main content (WCAG 2.4.1 Bypass Blocks)
   Off-screen until focused, then slides into view at the top-left.
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -200px;
    left: 0;
    z-index: 99999;
    display: inline-block;
    padding: 14px 24px;
    font-family: "Poppins", Sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    background-color: #22225F;
    text-decoration: none;
    border-bottom-right-radius: 4px;
    transition: top 0.15s ease-in-out;
}

.skip-link:focus,
.skip-link:active {
    top: 0;
    color: #ffffff;
    text-decoration: underline;
    outline: 3px solid #ffffff;
    outline-offset: -6px;
}


/* --------------------------------------------------------------------------
   2. Visible focus indicator (WCAG 2.4.7 Focus Visible, 1.4.11 Non-text Contrast)
   :focus-visible only, so mouse users see no change at all.
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #22225F;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Light outline where the surface behind the control is dark,
   so the indicator always clears 3:1 against its background. */
.main-nav a:focus-visible,
.navbar-dark a:focus-visible,
.mobile-nav a:focus-visible,
.mean-container a:focus-visible,
.footer-area a:focus-visible,
.footer-area button:focus-visible,
.copyright-area a:focus-visible,
.banner-area-two a:focus-visible,
.page-title-area a:focus-visible,
.page-title-team-area a:focus-visible,
.page-title-fund-area a:focus-visible,
.owl-nav button:focus-visible,
button.go-top:focus-visible,
.a11y-carousel-toggle:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* Fallback for browsers without :focus-visible support. */
@supports not selector(:focus-visible) {
    a:focus,
    button:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 3px solid #22225F;
        outline-offset: 2px;
    }
}


/* --------------------------------------------------------------------------
   3. Screen-reader-only text (WCAG 1.1.1, 2.4.4, 4.1.2)
   Gives icon-only controls an accessible name without altering the design.
   -------------------------------------------------------------------------- */
.sr-only-a11y {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* --------------------------------------------------------------------------
   4. <h1> parity (WCAG 1.3.1 Info and Relationships, 2.4.6 Headings and Labels)
   Interior page banners were marked up as <h2> with no <h1> anywhere on the
   page. The tag is now <h1>; these rules reproduce the theme's <h2> treatment
   byte-for-byte so nothing shifts by a pixel.
   -------------------------------------------------------------------------- */
.page-title-area .title-content h1,
.page-title-team-area .title-content h1,
.page-title-fund-area .title-content h1 {
    font-family: "Poppins", Sans-serif;
    font-size: 40px;
    font-weight: 600;
    text-transform: uppercase;
    color: #22225F;
    margin-bottom: 2px;
}

@media only screen and (max-width: 767px) {
    .page-title-area .title-content h1,
    .page-title-team-area .title-content h1,
    .page-title-fund-area .title-content h1 {
        font-size: 35px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .page-title-area .title-content h1,
    .page-title-team-area .title-content h1,
    .page-title-fund-area .title-content h1 {
        font-size: 40px;
    }
}


/* --------------------------------------------------------------------------
   5. Native button reset (WCAG 2.1.1 Keyboard, 4.1.2 Name Role Value)
   The "back to top" control was a <div> — unreachable by keyboard. It is now
   a real <button> carrying the same .go-top class, so this strips the UA
   button styling and leaves the theme's own .go-top rules in charge.
   -------------------------------------------------------------------------- */
button.go-top {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    line-height: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}


/* Portrait thumbnails on Our Fund opened their profile modal via a click
   handler on a bare <img>, which no keyboard could reach. They are now real
   <button> elements wrapping the same image — this strips the UA button
   chrome so the thumbnails render exactly as before. */
.a11y-img-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.a11y-img-btn img {
    display: block;
    width: 100%;
}


/* --------------------------------------------------------------------------
   6. Carousel pause control (WCAG 2.2.2 Pause, Stop, Hide)
   The homepage banner auto-advances every 4 seconds. 2.2.2 requires a
   mechanism to stop it. Styled to sit inside the existing .owl-nav cluster.
   -------------------------------------------------------------------------- */
.a11y-carousel-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 4px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background-color: rgba(34, 34, 95, 0.75);
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    transition: background-color 0.2s ease-in-out;
}

.a11y-carousel-toggle:hover,
.a11y-carousel-toggle:focus {
    background-color: #22225F;
    color: #ffffff;
}

.a11y-carousel-toggle i {
    pointer-events: none;
}


/* --------------------------------------------------------------------------
   7. Reduced motion (WCAG 2.3.3 Animation from Interactions)
   Honours the operating-system "reduce motion" preference.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .wow {
        visibility: visible !important;
    }
}


/* --------------------------------------------------------------------------
   8. Form field labels (WCAG 1.3.1, 3.3.2 Labels or Instructions)
   Labels are supplied for every input. They are visually hidden because the
   theme's design uses placeholder-only fields — the placeholder stays exactly
   as designed, the label exists for assistive technology.
   -------------------------------------------------------------------------- */
.form-group .help-block.with-errors ul {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}
