/* =========================================================
   OII Header / Topbar / Footer v2
   Sleek, professional, slightly "metal" but on-brand
   ====================================================== */

/* ------------------------------
   0. Design tokens
   --------------------------- */

:root {
  /* Brand palette (existing) */
  --oii-navy:       #00273f;
  --oii-orange:     #d95a00;
  --oii-burgundy:   #590c05;
  --oii-cream:      #f7f4f1;
  --oii-soft-blue:  #eef4f8;

  /* Neutrals */
  --oii-white:      #ffffff;
  --oii-black:      #101216;
  --oii-grey-100:   #f3f4f6;
  --oii-grey-200:   #e5e7eb;
  --oii-grey-300:   #d1d5db;
  --oii-grey-400:   #9ca3af;
  --oii-grey-600:   #4b5563;
  --oii-grey-800:   #1f2933;

  /* "Metal / silk" accents */
  --oii-metal-light: rgba(255, 255, 255, 0.40);
  --oii-metal-dark:  rgba(6, 18, 32, 0.78);

  /* Header heights */
  --oii-topbar-height: 40px;
  --oii-header-height: 80px;

  /* Radii & shadows */
  --oii-radius-pill: 999px;
  --oii-radius-lg:   18px;
  --oii-shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.10);
  --oii-shadow-subtle: 0 8px 18px rgba(0, 0, 0, 0.06);

  /* Animations */
  --oii-ease: cubic-bezier(0.19, 1, 0.22, 1);
  --oii-fast: 150ms;
  --oii-med:  260ms;
}


/* =========================================================
   1. Topbar
   ====================================================== */

.topbar {
  height: var(--oii-topbar-height);
  background: linear-gradient(
    135deg,
    rgba(0, 39, 63, 0.96),
    rgba(0, 39, 63, 0.86)
  );
  color: var(--oii-white);
  font-size: 0.82rem;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 6000;
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Small pill badges used in topbar (e.g. “Newcomer Support”) */
.topbar-badge {
  padding: 0.15rem 0.65rem;
  border-radius: var(--oii-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: radial-gradient(circle at top left,
    rgba(255, 255, 255, 0.32),
    transparent 60%
  );
  font-weight: 500;
}

/* Topbar links */
.topbar a {
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: opacity var(--oii-fast) ease, transform var(--oii-fast) ease;
}

.topbar a:hover,
.topbar a:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

/* Language switcher */
.topbar-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--oii-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.12);
  font-weight: 500;
  
}

/* Social icons row */
.topbar-social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-social a {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  opacity: 0.88;
}

@media (max-width: 768px) {
  .topbar-inner {
    justify-content: space-between;
  }
  .topbar-left {
    
  }
}

/* =========================================================
   2. Site Header (main nav)
   ====================================================== */

/* =========================================================
   2. Site Header (main nav) — FIXED LAYOUT
   Logo LEFT · Navigation RIGHT · Mobile-safe
   ====================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 9000;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(238, 244, 248, 0.95)
  );
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148,163,184,0.22);
  transition: all var(--oii-med) var(--oii-ease);
}

/* Header core container */
.site-header__inner {
  height: var(--oii-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between; /* LOGO LEFT, NAV RIGHT */
  gap: rem;
}

/* ---------------------------
   LOGO AREA
---------------------------- */

.site-branding {
  display: flex;
  align-items: center;
  flex: 0 0 auto;  /* DO NOT stretch */
}

.site-branding a {
  display: flex;
  align-items: center;
}

.site-branding img.logo {
  height: 44px;
  display: block;
}

/* Logo swapping */
.logo-normal { display: block; }
.logo-white  { display: none; }

.site-header.on-dark .logo-normal { display: none; }
.site-header.on-dark .logo-white  { display: block; }


/* ---------------------------
   NAVIGATION AREA
---------------------------- */

#site-navigation {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* PUSH NAV RIGHT */
}

/* Main menu list */
#site-navigation .oii-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Nav items */
.oii-nav-item {
  position: relative;
	font-family:'Poppins', sans-serif;
}

.oii-nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--oii-navy);
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--oii-radius-pill);
  transition:
    transform var(--oii-fast) ease,
    background var(--oii-fast) ease,
    box-shadow var(--oii-fast) ease;
}

/* Hover effect */
.oii-nav-item > a:hover,
.oii-nav-item:focus-within > a {
  background: rgba(0,39,63,0.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* Chevron rotate */
.oii-nav-item:hover i,
.oii-nav-item:focus-within i {
  transform: rotate(180deg);
}

.oii-mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---------------------------
   DONATE BUTTON
---------------------------- */

.header-donate-button {
  padding: 0.45rem 1.2rem;
  border-radius: 4px;
  background: linear-gradient(135deg, #590c05, #8a3100);
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow:
    0 10px 22px rgba(217,90,0,0.35);
}

.header-donate-button:hover {
  background: linear-gradient(135deg, #f56c12, #b84502);
}


/* ---------------------------
   DARK HEADER MODE
---------------------------- */

.site-header.on-dark {
  background: linear-gradient(135deg, #00273f, #020f18);
  color: #fff;
}

.site-header.on-dark .oii-nav-item > a {
  color: #fff;
}

.site-header.on-dark .oii-nav-item > a:hover {
  background: rgba(255,255,255,0.12);
}


/* ---------------------------
   MOBILE HEADER FIX
---------------------------- */

@media (max-width: 992px) {

  .site-header__inner {
    padding: 0.75rem 1rem;
  }

  /* Hide desktop nav */
  #site-navigation .oii-nav {
    display: none;
  }

  /* Hamburger */
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(148,163,184,0.15);
  }

  /* Logo scale */
  .site-branding img.logo {
    height: 36px;
  }
}

/* ============================================================
   TOPBAR MENU FIX — Horizontal, clean, no bullets
   ============================================================ */

.topbar-menu,
.topbar-menu ul,
.topbar-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.topbar-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem; /* spacing between links */
}

.topbar-menu li {
    display: inline-flex;
}

.topbar-menu a {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: #ffffff; /* you can set nav color override depending on header mode */
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.topbar-menu a:hover,
.topbar-menu a:focus {
    opacity: 1;
}

/* When header is in light mode */
.site-header.on-light .topbar-menu a {
    color: var(--oii-navy);
}

/* When header is in dark mode */
.site-header.on-dark .topbar-menu a {
    color: #fff;
}

/* Ensure the topbar stays above header */
.topbar {
    position: relative;
    z-index: 10000;
}
/* ============================================================
   Sticky Header — Base Structure
   ============================================================ 
/* Light Mode */
.site-header.on-light {
    background: rgba(255,255,255,0.82);
    color: var(--oii-navy);
}

.site-header.on-light .logo-normal { display: block; }
.site-header.on-light .logo-white { display: none; }

.site-header.on-light .oii-nav a,
.site-header.on-light .nav-toggle {
    color: var(--oii-navy);
}

/* Dark Mode */
.site-header.on-dark {
    background: rgba(0,0,0,0.48);
    color: var(--oii-white);
}

.site-header.on-dark .logo-normal { display: none; }
.site-header.on-dark .logo-white { display: block; }

.site-header.on-dark .oii-nav a,
.site-header.on-dark .nav-toggle {
    color: var(--oii-white);
}

/* Colored Mode — uses detected section color */
.site-header.on-colored {
    background: var(--detected-color);
    color: white;
}

.site-header.on-colored .logo-normal { display: none; }
.site-header.on-colored .logo-white { display: block; }

.site-header.on-colored .oii-nav a,
.site-header.on-colored .nav-toggle {
    color: white;
}

/* Scroll Shadow */
.site-header.scrolled {
    box-shadow: 0 6px 22px rgba(0,0,0,0.18);
}
/* ============================================================
   Mobile Toggle
   ============================================================ */

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-toggle-icon {
  width: 24px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 2px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  left: 0;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.nav-toggle:hover {
  background: rgba(148,163,184,0.20);
}

/* Light/dark inherited from header modes */

/* ============================================================
   Mobile Drawer
   ============================================================ */

#oii-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 19999;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  display: none;
}

#oii-mobile-menu.open {
  display: block;
}

.oii-mobile-inner {
  width: min(340px, 85vw);
  height: 100%;
  background: #ffffff;
  position: absolute;
  right: 0;
  top: 0;
  overflow-y: auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: -20px 0 40px rgba(0,0,0,0.35);
}

/* Close button */
.oii-mobile-close {
  align-self: flex-end;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Nav List */
.mobile-nav-area .oii-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-area .oii-nav-item > a {
  display: block;
  padding: 0.75rem 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--oii-navy);
  border-radius: 0.5rem;
  text-decoration: none;
}

.mobile-nav-area .oii-nav-item > a:hover {
  background: rgba(0,39,63,0.08);
}

/* Show the toggle when below 992px */
@media (max-width: 992px) {
  #site-navigation .oii-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* ============================================================
   MOBILE HEADER ALIGNMENT FIX
   ============================================================ */

@media (max-width: 992px) {

    /* Ensure header inner container behaves properly */
    .site-header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem; /* balanced spacing on mobile */
    }

    /* Logo scaling for mobile */
    .site-branding img.logo {
        height: 36px;
    }

    /* Make sure nav area does not push the hamburger outside */
    #site-navigation {
        flex: 0 0 auto; /* do NOT stretch */
        display: flex;
        align-items: center;
    }

    /* Fix hamburger position */
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        margin: 0;
        border-radius: 50%;
        background: rgba(255,255,255,0.15);
        color: inherit; /* respects light/dark mode */
    }

    /* Ensure the hamburger icon is centered inside */
    .nav-toggle-icon,
    .nav-toggle-icon::before,
    .nav-toggle-icon::after {
        width: 22px;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-toggle-icon::before { top: -6px; }
    .nav-toggle-icon::after { top: 6px; }

    /* Prevent any overflow */
    .site-header {
        overflow: hidden;
    }
}

/* ============================================================
   MEGA MENU — PANEL BASE
   ============================================================ */

.oii-mega-menu {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100vw;                   /* FULL WIDTH PANEL */
  margin-left: calc(50% - 50vw);  /* ALIGN TO VIEWPORT */
  background: var(--oii-navy);    /* NAVY BACKGROUND */
  color: #fff;
  padding: 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border-top: 3px solid var(--oii-orange);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .28s ease;
  z-index: 9000;
}

.oii-mega-menu a {
	word-break: break-word;
}

.oii-child-columns .child-block, .oii-section ul li {
  word-wrap: break-word;
  hyphens: auto;
}

.oii-mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Container inside mega menu */
.oii-mega-menu .oii-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
}

/* HEADINGS */
.oii-mega-menu h2 {
  font-size: .90rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--oii-orange);
  letter-spacing: .08em;
}

/* Reduce padding ONLY inside mega menu sections */
.oii-mega-menu .oii-section {
    padding-top: 1.2rem !important;   /* or whatever value you want */
    padding-bottom: 1.2rem !important;
}

/* Add dotted border only under the first row of each column */
.oii-child-columns .child-block:nth-child(1),
.oii-child-columns .child-block:nth-child(2) {
  border-bottom: 1px dotted rgba(255,255,255,0.25);
}

.oii-section ul li em a {
  font-size: 0.7rem;
  margin: 0.4rem 0;
  padding-bottom: 0.4rem;          /* spacing before the line */
  border-bottom: 1px dotted rgba(255, 255, 255, 0.25); /* subtle dotted line */
}

.grandchild-chevron-list .chevron {
  display: inline-block;
  left: 0.9rem;
  flex: 0 0 auto;
  font-size: 0.85rem;
  opacity: 0.9;
  min-width: 0.9em;
  text-align: center;
  font-weight: bold;
  line-height: 1;
}

.grandchild-chevron-list li a:hover {
  color: var(--brand-amber);
}

.grandchild-chevron-list chevron:hover {
  color: var(--brand-amber);
}

/* ============================================================
   COLUMN 1 — CHILD PAGES
   ============================================================ */

/* ============================================================
   COLUMN 1 — CHILD PAGES (2-column layout)
   ============================================================ */

.oii-child-columns {
  display: grid;
  grid-template-columns: repeat(2,1fr); /* TWO COLUMNS */
  gap: 1.6rem 2.2rem;                    /* row gap, column gap */
}

.child-block {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.child-block > a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  transition: color .2s ease;
}

.child-block > a:hover {
  color: var(--oii-orange);
}
.child-block > a i {
  font-size: 0.95rem;
  flex: 0 0 auto;
}

/* grandchildren formatting */
.grandchild-chevron-list {
  margin: .3rem 0 0 0;
  padding: 0;
  list-style: none;
	font-size: 0.75rem;
}

.grandchild-chevron-list li a:hover {
  color: var(--oii-orange);
}

/* ============================================================
   COLUMN 2 — RELATED RESOURCES
   ============================================================ */

.oii-section li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.8rem;
  text-decoration: none;
}
.oii-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.oii-section ul li {
  margin-bottom: .7rem;
}

.oii-section ul li a {
  color: #fff;
  font-size: .80rem;
  font-weight: 500;
  text-decoration: none;
  opacity: .85;
}

.oii-section ul li a:hover {
  opacity: 1;
  color: var(--oii-orange);
}

/* ============================================================
   COLUMN 3 — FEATURED ITEM
   ============================================================ */

.oii-featured .featured-item {
  background: rgba(255,255,255,0.08);
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.oii-featured img {
  border-radius: 8px;
}

.oii-featured h3 a {
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}

.oii-featured h3 a:hover {
  color: var(--oii-orange);
}

/* ============================================================
   RESPONSIVE — MOBILE (hide mega, use drawer)
   ============================================================ */

@media (max-width: 992px) {
  .oii-mega-menu {
    display: none !important;
  }
}

/* =========================================================
   5. Footer
   ====================================================== */

.site-footer {
  background: radial-gradient(circle at top left,
      rgba(0, 39, 63, 0.96),
      rgba(2, 6, 23, 0.98)
    );
  color: var(--oii-white);
  padding-top: 3.5rem;
}

/* Footer widgets area */
.footer-widgets {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.4fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.34);
}

.footer-widget-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(226, 232, 240, 0.92);
  margin-bottom: 0.85rem;
}

.footer-logo-block {
  max-width: 280px;
}

.footer-logo-block img {
  height: 40px;
  width: auto;
  margin-bottom: 0.65rem;
}

.footer-logo-text {
  font-size: 0.86rem;
  color: rgba(226, 232, 240, 0.85);
}

/* Footer links lists */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0;
}

.footer-menu li + li {
  margin-top: 0.2rem;
}

.footer-menu a {
  display: inline-block;
  font-size: 0.86rem;
  color: rgba(203, 213, 225, 0.92);
  text-decoration: none;
  padding: 0.15rem 0;
  transition:
    color var(--oii-fast) ease,
    transform var(--oii-fast) ease,
    text-shadow var(--oii-fast) ease;
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
  color: #ffffff;
  transform: translateX(1px);
  text-shadow: 0 0 12px rgba(148, 163, 184, 0.7);
}

/* Footer small pill (e.g. CRA number, charity info) */
.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.58);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(226, 232, 240, 0.92);
}

/* Newsletter form area (if any) */
.footer-newsletter {
  margin-top: 0.75rem;
}

.footer-newsletter input[type="email"] {
  width: 100%;
  border-radius: var(--oii-radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.55rem 0.9rem;
  font-size: 0.86rem;
  background: rgba(15, 23, 42, 0.75);
  color: var(--oii-white);
}

.footer-newsletter input[type="email"]::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.footer-newsletter button[type="submit"] {
  margin-top: 0.5rem;
  border-radius: var(--oii-radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.88);
  background: linear-gradient(135deg, #d95a00, #8a3100);
  color: var(--oii-white);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.4rem 1.2rem;
  cursor: pointer;
}

/* Footer bottom */
.footer-bottom {
  padding-block: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: rgba(203, 213, 225, 0.86);
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--oii-fast) ease;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  border-color: rgba(203, 213, 225, 0.8);
}

/* Footer social row */
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social a {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at top left,
    rgba(255, 255, 255, 0.2),
    rgba(15, 23, 42, 0.3)
  );
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.75);
}

/* Accessibility */
/* Accessibility Toolbar */
#accessibility-toolbar {
  position: fixed;
  bottom: 15px;
  right: 70px;
  z-index: 9999;
}

#accessibility-toggle {
  background: rgb(0, 61, 104) !important;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background 0.3s;
}
#accessibility-toggle:hover {
  background: #00273f;
}

#accessibility-panel {
  display: none;
  position: absolute;
  bottom: 60px;
  right: 0;
  background: #fff;
  border: 2px solid #00273f;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  width: 220px;
}
#accessibility-panel.active {
  display: block;
}

#accessibility-panel .a11y-btn {
  display: block;
  width: 100%;
  margin: 5px 0;
  padding: 8px;
  font-size: 14px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}
#accessibility-panel .a11y-btn:hover {
  background: #00273f;
  color: #fff;
}
#a11y-icon,
#a11y-icon img {
  width: 24px;
  height: 24px;
}

#accessibility-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #590c05; /* maroon */
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background 0.3s;
}

#accessibility-toggle:hover {
  background: #00273f; /* navy */
}

#a11y-icon {
  width: 28px;
  height: 28px;
  display: block;
}
#accessibility-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;

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

  border: none;
  background: #004080; /* example: dark blue */
  border-radius: 50%;   /* makes it circular */
  cursor: pointer;

  transition: background 0.3s ease;
}

#accessibility-toggle:hover,
#accessibility-toggle:focus {
  background: #0066cc;
  outline: 2px solid #fff; /* visible focus */
  outline-offset: 2px;
}


/* High contrast */
.high-contrast {
  background: #000 !important;
  color: #fff !important;
}
.high-contrast a { color: yellow !important; }

/* Grayscale */
.grayscale {
  filter: grayscale(100%);
}

/* Highlight links */
.highlight-links a {
  background: yellow !important;
  color: #000 !important;
  padding: 2px 4px;
}

/* Dyslexia-friendly font */
@font-face {
  font-family: "OpenDyslexic";
  src: url("https://cdn.jsdelivr.net/npm/open-dyslexic@1.0.3/otf/OpenDyslexic3-Regular.otf");
}
.dyslexia-font {
  font-family: "OpenDyslexic", Arial, sans-serif !important;
}

/* Make sure both are truly viewport-fixed */
#accessibility-toggle,
#scroll-top {
  position: fixed !important; /* lock to viewport */
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;   /* large enough for accessibility */
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}

/* Accessibility button bottom right */
#accessibility-toggle {
  bottom: 15px;
  right: 80px;
}

/* Scroll-to-top button above it */
#scroll-top {
  bottom: 80px; /* stacked above accessibility button */
  right: 15px;
}



/* Responsive footer */
@media (max-width: 992px) {
  .footer-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .footer-widgets {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */

.topbar-lang {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
	z-index: 10000;
}

.topbar-lang i {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* Dropdown */
.lang-dropdown {
    position: absolute;
    top: 120%;
    left: 0;
    width: 150px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 0.5rem 0;
    display: none;
    z-index: 9999;
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #444;
}

.lang-option:hover {
    background: #f0f0f0;
    color: var(--oii-navy);
}
@media (max-width:768px){
  .topbar-left { display:none; }

  /* Put language switcher inside right side on mobile */
  .topbar-right .topbar-lang {
      display:flex !important;
  }
}

/*css for the resource center mega menu */
/* ============================================================
   RESOURCE CENTER — MEGAMENU 4-COLUMN LAYOUT
   Applies ONLY when the mega menu belongs to resource-center
   ============================================================ */

/* Wrapper */
#mega-resource-center {
    background: #00273f;
    padding: 2rem 0;
    border-top: 3px solid rgba(255,255,255,0.08);
}

#mega-resource-center .oii-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.4rem;
}

/* Section title */
#mega-resource-center .oii-section h2 {
    color: #fff;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    letter-spacing: .05em;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 0.45rem;
}

/* List items */
#mega-resource-center .oii-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#mega-resource-center .oii-section ul li {
    margin: 0.4rem 0 0.55rem;
}

#mega-resource-center .oii-section ul li a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.15rem 0;
    transition: color .15s ease, transform .15s ease;
}

#mega-resource-center .oii-section ul li a:hover {
    color: var(--brand-amber, #D95A00);
    transform: translateX(3px);
}

#mega-resource-center .oii-section ul li i {
    font-size: 0.45rem;
    opacity: 0.75;
}

/* Featured item column */
#mega-resource-center .featured-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
}

#mega-resource-center .featured-item:last-child {
    border-bottom: none;
}

#mega-resource-center .featured-thumb img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    box-shadow: 0 5px 14px rgba(0,0,0,0.25);
}

#mega-resource-center .featured-item h3 {
    margin: 0;
    font-size: .9rem;
}

#mega-resource-center .featured-item h3 a {
    color: #fff;
    text-decoration: none;
    transition: color .15s ease;
}

#mega-resource-center .featured-item h3 a:hover {
    color: var(--brand-amber, #D95A00);
}

/* Mobile Behavior */
@media (max-width: 1024px) {
    #mega-resource-center .oii-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 700px) {
    #mega-resource-center .oii-container {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        padding-bottom: 1.5rem;
    }
}
