.accessibility-dropdown { position: relative; }

.accessibility-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  z-index: 9999;

  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
}

.accessibility-dropdown:hover .dropdown-menu,
.accessibility-dropdown.show .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.acc-grid { display: grid; gap: 8px; }
.acc-cards { grid-template-columns: repeat(3, 1fr); }

.acc-card {
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  position: relative;
}

.acc-card.active {
  border-color: #28a745;
  background: #eaf7ee;
}

/* Card button */
.acc-card {
  position: relative;
  overflow: visible; /* IMPORTANT */
}

/* Green tick badge */
.acc-card.active::after {
  content: "✔";
  position: absolute;
  top: -6px;
  right: -6px;

  width: 22px;
  height: 22px;
  background: #28a745;
  color: #fff;

  border-radius: 50%;
  font-size: 13px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 0 0 2px #fff; /* white ring like example */
  z-index: 2;
}


/* Dropdown positioning */
.accessibility-dropdown { position: relative; }

.accessibility-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  z-index: 9999;

  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
}

.accessibility-dropdown:hover .dropdown-menu,
.accessibility-dropdown.show .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Grid */
.acc-grid {
  display: grid;
  gap: 8px;
}
.acc-cards {
  grid-template-columns: repeat(3, 1fr);
}

/* Card */
.acc-card {
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  position: relative;
}

/* Icon + text */
.acc-icon {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}
.acc-text {
  font-size: 12px;
  line-height: 1.3;
}

/* ACTIVE CARD */
.acc-card.active {
  border-color: #000;
  background: #fff;
}

/* GREEN TICK BADGE */
.acc-card.active::after {
  content: "✔";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: #28a745;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}

/* ================= ACCESSIBILITY EFFECTS ================= */

.a11y-lineheight-1 * { line-height: 1.6 !important; }
.a11y-lineheight-2 * { line-height: 2 !important; }

.a11y-text-spacing-1 * {
  letter-spacing: .08em !important;
  word-spacing: .12em !important;
}
.a11y-text-spacing-2 * {
  letter-spacing: .16em !important;
  word-spacing: .32em !important;
}

.a11y-hide-images-1 img { display: none !important; }
.a11y-hide-images-2 img,
.a11y-hide-images-2 * { background-image: none !important; }

.a11y-highlight-links-1 a {
  background: #ffeb3b;
  color: #000 !important;
  text-decoration: underline !important;
}
.a11y-highlight-links-2 a {
  background: #ffeb3b;
  color: #000 !important;
  outline: 3px solid #000;
}


/* ================= EXCLUDE ACCESSIBILITY MENU FROM A11Y EFFECTS ================= */

.accessibility-dropdown,
.accessibility-dropdown * {
  font-size: initial !important;
  line-height: normal !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
}


/* ================= DROPDOWN CONTAINER ================= */

.accessibility-menu {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid #e5e7eb;
  min-width: 280px;
}

/* Header text */
.accessibility-menu .dropdown-header {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  padding-bottom: 6px;
}

/* Divider */
.accessibility-menu hr {
  border-color: #e5e7eb;
}

/* ================= GRID & CARDS ================= */

.acc-grid {
  display: grid;
  gap: 10px;
}

.acc-cards {
  grid-template-columns: repeat(3, 1fr);
}

/* Card base */
.acc-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

/* Hover */
.acc-card:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

/* Focus (keyboard users) */
.acc-card:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* ================= ICON & TEXT ================= */

.acc-icon {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
  color: #111827;
}

.acc-text {
  font-size: 11.5px;
  line-height: 1.35;
  color: #374151;
  font-weight: 500;
}

/* ================= ACTIVE STATE ================= */

.acc-card.active {
  background: #f0fdf4;
  border-color: #22c55e;
}

/* Green tick badge */
.acc-card.active::after {
  content: "✔";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: #22c55e;
  color: #ffffff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #ffffff;
  z-index: 3;
}

/* ================= THEME SECTION ================= */

.accessibility-menu .acc-cards:last-child .acc-card {
  padding: 16px 8px;
}

/* ================= MOBILE FRIENDLY ================= */

@media (max-width: 576px) {
  .acc-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
.acc-icon {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
  color: #111827;
  line-height: 1;
}

.accessibility-menu .acc-text 
{
	font-size:10px !Important;
	font-weight:bold;
	line-height:2;
}

/* Level 3 navbar submenu (dropdown-submenu) - hover only, overrides style.css .dropdown-menu */
.navbar .dropdown-submenu {
  position: relative;
  overflow: visible;
}
.navbar .dropdown-menu1 .dropdown-submenu .dropdown-menu.dropdown-menu-level3 {
  display: none !important;
  opacity: 0 !important;
  position: absolute !important;
  left: 100% !important;
  top: 0 !important;
  margin-top: 0 !important;
  margin-left: 2px !important;
  min-width: 12rem;
  width: max-content;
  max-width: 90vw;
  z-index: 1060;
  visibility: hidden;
  transition: opacity 0.15s ease;
  /* Vertical list, one item per line; no internal scroll – page scrolls if menu is long */
}
.navbar .dropdown-menu1 .dropdown-submenu .dropdown-menu.dropdown-menu-level3 > li {
  display: block;
  white-space: nowrap;
}
/* When no space on right, show Level 3 to the left (JS adds .dropdown-menu-level3-left) */
.navbar .dropdown-menu1 .dropdown-submenu .dropdown-menu.dropdown-menu-level3.dropdown-menu-level3-left {
  left: auto !important;
  right: 100% !important;
  margin-left: 0 !important;
  margin-right: 2px !important;
  max-width: min(45vw, 420px);
}
.navbar .dropdown-menu1 .dropdown-submenu:hover .dropdown-menu.dropdown-menu-level3,
.navbar .dropdown-menu1 .dropdown-submenu.show .dropdown-menu.dropdown-menu-level3 {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.navbar .dropdown-menu1 {
  overflow: visible;
}

/* Mobile (offcanvas): Level 3 below Level 2, click + to expand like Level 1 -> Level 2 */
@media (max-width: 991.98px) {
  #navbarOffcanvas .dropdown-submenu .dropdown-menu.dropdown-menu-level3 {
    position: static !important;
    display: none !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1rem;
    column-count: 1;
    box-shadow: none;
    border-left: 2px solid rgba(255,255,255,0.3);
  }
  #navbarOffcanvas .dropdown-submenu.show-mobile .dropdown-menu.dropdown-menu-level3 {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  #navbarOffcanvas .dropdown-submenu-toggle {
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
  }
}
