/* NIT Andhra Pradesh - Accessibility Widget */
:root {
  --nitap-a11y-blue: #2457e7;
  --nitap-a11y-text: #172033;
  --nitap-a11y-muted: #687895;
  --nitap-a11y-panel: #ffffff;
  --nitap-a11y-focus: #ff9f1c;
}
#nitap-a11y-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999990;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 15px;
  background: var(--nitap-a11y-blue);
  color: #fff;
  box-shadow: 0 2px 12px rgb(0 0 0 / 30%);
  cursor: pointer;
}
#nitap-a11y-launcher svg { width: 30px; height: 30px; }
#nitap-a11y-panel,
#nitap-a11y-panel * { box-sizing: border-box; }
#nitap-a11y-panel {
  position: fixed;
  right: 20px;
  bottom: 86px;
  z-index: 999991;
  width: 320px;
  max-width: calc(100vw - 28px);
  max-height: min(78vh, 690px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #e3e8f0;
  border-radius: 18px;
  background: var(--nitap-a11y-panel);
  color: var(--nitap-a11y-text);
  box-shadow: 0 8px 35px rgb(0 0 0 / 25%);
  font: 14px/1.45 Arial, Helvetica, sans-serif;
}
#nitap-a11y-panel[hidden] { display: none !important; }
.nitap-a11y-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.nitap-a11y-title { margin: 0; font-size: 18px; font-weight: 700; }
.nitap-a11y-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 23px;
  cursor: pointer;
}
.nitap-a11y-section { margin: 17px 0 0; }
.nitap-a11y-section h3 {
  margin: 0 0 9px;
  color: var(--nitap-a11y-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nitap-a11y-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nitap-a11y-action {
  min-height: 39px;
  padding: 9px 7px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #edf2ff;
  color: #2457e7;
  font: 600 11px/1.3 Arial, Helvetica, sans-serif;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.nitap-a11y-action[data-active="true"] { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.nitap-a11y-action.green { background: #eafbf3; color: #008b61; }
.nitap-a11y-action.orange { background: #fff4e8; color: #b95300; }
.nitap-a11y-action:focus-visible,
.nitap-a11y-close:focus-visible,
#nitap-a11y-launcher:focus-visible,
#nitap-a11y-reset:focus-visible {
  outline: 3px solid var(--nitap-a11y-focus);
  outline-offset: 3px;
}
#nitap-a11y-reset {
  width: 100%;
  min-height: 43px;
  margin-top: 19px;
  padding: 10px;
  border: 1px solid #aeb7c4;
  border-radius: 11px;
  background: #f1f5f9;
  color: #334155;
  font: 600 12px Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.nitap-a11y-status {
  margin: 12px 0 0;
  color: #475569;
  font-size: 11px;
}
.nitap-a11y-sr-only {
  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;
  white-space: nowrap !important;
  border: 0 !important;
}
/* Preferences are scoped to the website document. */
html.nitap-a11y-high-contrast body {
  background: #000 !important;
  color: #fff !important;
}
html.nitap-a11y-high-contrast body *:not(img):not(video):not(svg):not(path) {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}
html.nitap-a11y-invert { filter: invert(1) hue-rotate(180deg); }
html.nitap-a11y-invert img,
html.nitap-a11y-invert video,
html.nitap-a11y-invert iframe { filter: invert(1) hue-rotate(180deg); }
html.nitap-a11y-highlight-links a {
  outline: 2px solid #e11d48 !important;
  outline-offset: 2px !important;
  background: #fff4b8 !important;
  color: #111 !important;
  text-decoration: underline !important;
}
html.nitap-a11y-big-cursor,
html.nitap-a11y-big-cursor * { cursor: crosshair !important; }
html.nitap-a11y-hide-images img,
html.nitap-a11y-hide-images picture,
html.nitap-a11y-hide-images video,
html.nitap-a11y-hide-images svg:not(#nitap-a11y-panel svg):not(#nitap-a11y-launcher svg) {
  visibility: hidden !important;
}
html.nitap-a11y-dyslexia-font body,
html.nitap-a11y-dyslexia-font body * {
  font-family: Verdana, Arial, sans-serif !important;
}
html.nitap-a11y-saturation-low { filter: saturate(.5); }
html.nitap-a11y-saturation-high { filter: saturate(1.5); }
html.nitap-a11y-line-height body { line-height: 1.8 !important; }
html.nitap-a11y-line-height body * { line-height: inherit; }
html.nitap-a11y-letter-spacing body,
html.nitap-a11y-letter-spacing body * { letter-spacing: .06em !important; }
@media (max-width: 480px) {
  #nitap-a11y-launcher { right: 14px; bottom: 14px; width: 48px; height: 48px; }
  #nitap-a11y-panel { right: 10px; bottom: 72px; max-width: calc(100vw - 20px); padding: 17px; }
}
@media (prefers-reduced-motion: no-preference) {
  #nitap-a11y-panel { animation: nitap-a11y-appear .12s ease-out; }
  @keyframes nitap-a11y-appear {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

#nitap-a11y-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999990;
  /* other styles */
}

/* Modern animated accessibility launcher */
#nitap-a11y-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border: 2px solid #ffffff;
    border-radius: 18px;
    background: linear-gradient(135deg, #0758c9, #06347c);
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 65, 160, 0.35);
    cursor: pointer;
    overflow: visible;
    animation: nitap-a11y-float 3s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animated glowing ring */
#nitap-a11y-launcher::before {
    content: "";
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(0, 105, 255, 0.65);
    border-radius: 23px;
    animation: nitap-a11y-ring 2.4s ease-out infinite;
    pointer-events: none;
}

/* Smooth hover effect */
#nitap-a11y-launcher:hover {
    transform: scale(1.12) rotate(-3deg);
    box-shadow: 0 8px 28px rgba(0, 65, 160, 0.5);
}

/* Keep the accessibility symbol clear */
#nitap-a11y-launcher svg {
    width: 30px;
    height: 30px;
    display: block;
    margin: auto;
}

@keyframes nitap-a11y-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes nitap-a11y-ring {
    0% {
        transform: scale(0.92);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    #nitap-a11y-launcher,
    #nitap-a11y-launcher::before {
        animation: none;
    }

    #nitap-a11y-launcher {
        transition: none;
    }
}



/* Style icons in the accessibility panel */
#nitap-a11y-panel .nitap-a11y-action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    text-align: left;
}

#nitap-a11y-panel .nitap-a11y-action i {
    width: 16px;
    flex-shrink: 0;
    font-size: 14px;
}

#nitap-a11y-panel .nitap-a11y-section h3 i {
    margin-right: 6px;
    color: #2457e7;
}

/* Accessibility text scaling */
html.nitap-a11y-text-scaled body {
    zoom: var(--nitap-a11y-font-scale, 100%);
}

@supports (zoom: 1) {
    html.nitap-a11y-text-scaled body {
        zoom: var(--nitap-a11y-font-scale, 100%);
    }
}


/* Fix accessibility launcher clickability */
#nitap-a11y-launcher {
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    z-index: 2147483647 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    isolation: isolate;
}

/* Keep the launcher symbol from blocking clicks */
#nitap-a11y-launcher svg {
    pointer-events: none !important;
}

#nitap-a11y-launcher::before {
    pointer-events: none !important;
}


/* NIT AP Footer Visitor Counter */
.nitap-visitor-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 12px auto;
    padding: 8px 14px;
    color: #2457e7;
    background: #f1f6ff;
    border: 1px solid #d5e3ff;
    border-radius: 5px;
    font-size: 14px;
}

.nitap-visitor-counter i {
    font-size: 17px;
}

.nitap-visitor-counter strong {
    font-weight: 700;
    letter-spacing: 0.5px;
}


/* Footer date and visitor counter alignment */
.footer-bottom .website-last-updated {
    white-space: nowrap;
    font-size: 12px !important;
}

.footer-bottom .nitap-visitor-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    margin-left: 10px;
}

@media (max-width: 767px) {
    .footer-bottom .website-last-updated {
        white-space: normal;
    }

    .footer-bottom .nitap-visitor-counter {
        margin: 8px 0 0 0;
    }
}


/* Visitor Counter - Black Background and White Text */
.footer-bottom .nitap-visitor-counter {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #ffffff;
    border-radius: 5px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.footer-bottom .nitap-visitor-counter span,
.footer-bottom .nitap-visitor-counter strong {
    color: #ffffff !important;
}

.footer-bottom .nitap-visitor-counter i {
    color: #ffffff !important;
}


/* Visitor counter: no box, same footer line */
.footer-bottom .nitap-visitor-counter {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-left: 18px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    color: #ffffff !important;
}

.footer-bottom .nitap-visitor-counter span,
.footer-bottom .nitap-visitor-counter strong,
.footer-bottom .nitap-visitor-counter i {
    color: #ffffff !important;
}

.footer-bottom .website-last-updated {
    white-space: nowrap;
    display: inline-block;
}

/* Footer text - larger and consistent */
.footer-bottom p,
.footer-bottom .website-last-updated,
.footer-bottom .nitap-visitor-counter,
.footer-bottom .nitap-visitor-counter span,
.footer-bottom .nitap-visitor-counter strong,
.footer-bottom .nitap-visitor-counter i {
    font-size: 12px !important;
    line-height: 1.5;
}


/* Government Logos Infinite Slider */
.govt-logo-section {
    width: 100%;
    background: #f2fbfd;
    padding: 22px 0;
    overflow: hidden;
    border-top: 1px solid #e2eef2;
}

.govt-logo-container {
    width: 100%;
    overflow: hidden;
}

.govt-logo-slider {
    display: flex;
    align-items: center;
    width: max-content;
    animation: govtLogoScroll 25s linear infinite;
}

.govt-logo-item {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    box-sizing: border-box;
}

.govt-logo-item img {
    width: auto;
    height: 48px;
    max-width: 160px;
    object-fit: contain;
}

.govt-logo-section:hover .govt-logo-slider {
    animation-play-state: paused;
}

@keyframes govtLogoScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 767px) {
    .govt-logo-item {
        flex-basis: 150px;
        padding: 0 15px;
    }

    .govt-logo-item img {
        height: 36px;
        max-width: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .govt-logo-slider {
        animation: none;
    }
}


/* NIT AP accessibility launcher - blue concentric rings */
#nitap-a11y-launcher {
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;

    width: 88px !important;
    height: 88px !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: rgba(0, 123, 255, 0.12) !important;
    border: 3px solid rgba(0, 123, 255, 0.16) !important;
    border-radius: 50% !important;

    box-shadow:
        0 0 0 8px rgba(0, 123, 255, 0.12),
        0 0 0 18px rgba(0, 123, 255, 0.08) !important;

    color: #ffffff !important;
    cursor: pointer;
    z-index: 99999 !important;
    transition: transform 0.2s ease !important;
}

/* Bright blue inner circle */
#nitap-a11y-launcher svg {
    width: 58px !important;
    height: 58px !important;
    padding: 12px !important;
    box-sizing: border-box !important;

    background: #0875e8 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
}

/* Hover effect */
#nitap-a11y-launcher:hover {
    transform: scale(1.05);
}

/* Keyboard focus */
#nitap-a11y-launcher:focus-visible {
    outline: 3px solid #064b9b !important;
    outline-offset: 4px !important;
}

/* Mobile adjustment */
@media (max-width: 767px) {
    #nitap-a11y-launcher {
        width: 68px !important;
        height: 68px !important;
        right: 18px !important;
        bottom: 18px !important;
    }

    #nitap-a11y-launcher svg {
        width: 46px !important;
        height: 46px !important;
        padding: 9px !important;
    }
}

/* Gold accessibility icon - NIT AP */
#nitap-a11y-launcher svg {
    background: #D4A017 !important;
    color: #ffffff !important;
}

/* Gold outer rings */
#nitap-a11y-launcher {
    background: rgba(212, 160, 23, 0.12) !important;
    border-color: rgba(212, 160, 23, 0.20) !important;

    box-shadow:
        0 0 0 8px rgba(212, 160, 23, 0.12),
        0 0 0 18px rgba(212, 160, 23, 0.08) !important;
}


/* FINAL FIX: Remove gray square from accessibility icon */
#nitap-a11y-launcher {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 50% !important;
    padding: 0 !important;
}

/* Gold circular center */
#nitap-a11y-launcher svg {
    background: #D4A017 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow:
        0 0 0 8px rgba(212, 160, 23, 0.12),
        0 0 0 16px rgba(212, 160, 23, 0.08) !important;
}

/* Remove the old animated square ring */
#nitap-a11y-launcher::before {
    content: none !important;
    display: none !important;
}

/* ==========================================
   NIT AP - Premium Accessibility Panel Theme
   ========================================== */

:root {
    --nit-gold: #e5a000;
    --nit-gold-light: #fff4d6;
    --nit-brown: #9f5435;
    --nit-brown-dark: #783b25;
    --nit-text: #29231f;
    --nit-border: #ead9ca;
}

/* Main accessibility panel */
#nitap-a11y-panel {
    width: 370px !important;
    max-width: calc(100vw - 24px) !important;
    padding: 22px !important;
    background: #ffffff !important;
    color: var(--nit-text) !important;
    border: 1px solid var(--nit-border) !important;
    border-top: 5px solid var(--nit-gold) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 35px rgba(70, 40, 20, 0.20) !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Main title */
#nitap-a11y-panel .nitap-a11y-title {
    color: var(--nit-brown-dark) !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    letter-spacing: -0.3px !important;
}

/* Section headings */
#nitap-a11y-panel .nitap-a11y-section h3 {
    color: var(--nit-brown) !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.7px !important;
    margin: 20px 0 11px !important;
    padding-bottom: 7px !important;
    border-bottom: 1px solid #f0e4d9 !important;
    text-transform: uppercase;
}

/* Section heading icons */
#nitap-a11y-panel .nitap-a11y-section h3 i {
    color: var(--nit-gold) !important;
    font-size: 16px !important;
    margin-right: 8px !important;
}

/* Two-column layout */
#nitap-a11y-panel .nitap-a11y-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

/* All option buttons - consistent NIT theme */
#nitap-a11y-panel .nitap-a11y-action {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;

    min-height: 46px !important;
    padding: 10px !important;

    background: #fffaf1 !important;
    color: var(--nit-brown-dark) !important;
    border: 1px solid #ead6b0 !important;
    border-radius: 10px !important;

    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: left !important;

    cursor: pointer;
    transition: background 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease !important;
}

/* Override previous green and orange button colors */
#nitap-a11y-panel .nitap-a11y-action.green,
#nitap-a11y-panel .nitap-a11y-action.orange {
    background: #fffaf1 !important;
    color: var(--nit-brown-dark) !important;
    border-color: #ead6b0 !important;
}

/* Option icons */
#nitap-a11y-panel .nitap-a11y-action i {
    flex: 0 0 18px !important;
    width: 18px !important;
    margin: 0 !important;
    color: var(--nit-gold) !important;
    font-size: 15px !important;
    text-align: center !important;
}

/* Hover effect */
#nitap-a11y-panel .nitap-a11y-action:hover {
    background: var(--nit-brown) !important;
    color: #ffffff !important;
    border-color: var(--nit-brown) !important;
    transform: translateY(-1px);
}

#nitap-a11y-panel .nitap-a11y-action:hover i {
    color: #ffd36b !important;
}

/* Active accessibility options */
#nitap-a11y-panel .nitap-a11y-action[data-active="true"] {
    background: var(--nit-gold-light) !important;
    color: var(--nit-brown-dark) !important;
    border: 2px solid var(--nit-gold) !important;
}

/* Close button */
#nitap-a11y-panel .nitap-a11y-close {
    background: #fff4d6 !important;
    color: var(--nit-brown-dark) !important;
    border: 1px solid #ead6b0 !important;
    border-radius: 8px !important;
    font-size: 23px !important;
}

/* Reset button */
#nitap-a11y-panel #nitap-a11y-reset {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 45px !important;
    margin-top: 20px !important;

    background: var(--nit-brown) !important;
    color: #ffffff !important;
    border: 1px solid var(--nit-brown) !important;
    border-radius: 10px !important;

    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer;
}

#nitap-a11y-panel #nitap-a11y-reset:hover {
    background: var(--nit-brown-dark) !important;
}

/* Status message */
#nitap-a11y-panel .nitap-a11y-status {
    color: #625246 !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 12px !important;
}

/* Keyboard focus */
#nitap-a11y-panel button:focus-visible {
    outline: 3px solid var(--nit-gold) !important;
    outline-offset: 3px !important;
}

/* Smaller screens */
@media (max-width: 480px) {
    #nitap-a11y-panel {
        width: calc(100vw - 20px) !important;
        right: 10px !important;
        padding: 17px !important;
    }

    #nitap-a11y-panel .nitap-a11y-action {
        font-size: 11px !important;
        padding: 9px 7px !important;
    }
}


