﻿/* ============================================================================
   :root – Branding Variables
   ============================================================================ */
   @import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');
   
:root {
  --nav-bg: var(--mf-primary-dark);
  --nav-accent: var(--mf-primary);
  --nav-fg: var(--mf-text-light);
  --submenu-bg: #ffffff;
  --submenu-fg: #333333;
  --max-container: 1400px;
}

#pnlViewportCenter {margin-top:30px;}

/* ============================================================================
   1. GLOBAL RESETS & UTILITIES
   ============================================================================ */
a {
  text-decoration: none !important;
  color: inherit;
}

video {
  max-width: 100%;
  height: auto;
}

/* ----------------------------------------------------------------------------
   1.1 Layout Containers / Max-Width Overrides
   ------------------------------------------------------------------------ */
.header_container,
.TopNav .container-fluid,
footer .container-fluid,
.HomepageBlocksDiv .container-fluid {
  max-width: var(--max-container);
  margin: 0 auto;
  padding: 0 15px;
}

/* ----------------------------------------------------------------------------
   1.2 Global Hides
   ------------------------------------------------------------------------ */
#ucHeader_searchPanel {
  display: none;
}

/* ----------------------------------------------------------------------------
   1.3 Base Typography & Body
   ------------------------------------------------------------------------ */
html,
body {
  font-family: "Red Hat Display", sans-serif;
  background: #fff;
  color: var(--mf-text-dark);
  font-size: 16px;
  margin: 0;
  padding: 0;
}

/* ============================================================================
   Header Styles
   ============================================================================ */
#website-header {
  font-family: 'Rubik', sans-serif;
  color: var(--mf-text-dark);
}

/* -- Top Bar --------------------------------------------------------------- */
#website-header .top-bar {
  background: var(--mf-primary);
  color: var(--mf-text-light);
  font-size: 0.875rem;
}

#website-header .top-bar a {
  text-decoration: none;
}

#website-header .top-bar a:hover {
  text-decoration: underline;
}

#website-header .top-bar i {
  width: 1em;
  text-align: center;
}

/* -- Main Header ---------------------------------------------------------- */
#website-header .main-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#website-header .main-header .logo {
  max-height: 80px;
}

#website-header .site-title {
  font-size: 1.75rem;
  margin: 0;
}

#website-header .site-title a {
  color: var(--mf-primary-dark);
  text-decoration: none;
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}

#website-header .site-title a:hover {
  transform: translateY(-2px);
  text-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

#website-header .tagline {
  color: var(--mf-primary);
  font-weight:bold;
}

/* -- Buttons -------------------------------------------------------------- */
#website-header .btn {
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  border-radius: 0.25rem;
}

#website-header .btn-primary {
  background: var(--mf-primary);
  border-color: var(--mf-primary);
}

#website-header .btn-primary:hover {
  background: var(--mf-primary-dark);
  border-color: var(--mf-primary-dark);
}

#website-header .btn-outline-primary {
  color: var(--mf-primary);
  border-color: var(--mf-primary);
}

#website-header .btn-outline-primary:hover {
  background: var(--mf-primary);
  color: var(--mf-text-light);
}

/* -- Social Icons --------------------------------------------------------- */
#website-header .social-media i {
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

#website-header .social-media a:hover i {
  color: var(--mf-accent);
}

/* -- Responsive Adjustments ----------------------------------------------- */
@media (max-width: 767px) {
  #website-header .top-bar .d-flex>div {
    width: 100%;
    justify-content: center !important;
    margin-bottom: 0.5rem;
  }

  #website-header .main-header {
    padding: 1.5rem 0.5rem;
  }

  #website-header .site-title {
    font-size: 1.5rem;
  }
}


/* ----------------------------------------------------------------------------
   2.6 TOP NAVIGATION (desktop)
   ------------------------------------------------------------------------ */
@media screen and (min-width: 767px) {
  .TopNav {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .TopNav nav {
    background: #333;
    border-radius: 0 0 30px 30px;
    margin: auto 30px;
  }

  #navigation {
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
  }

  #navigation>li {
    position: relative;
  }

  #navigation>li>a {
    padding: 10px 16px;
    font-weight: 500;
    color: var(--nav-fg);
    transition: background 0.2s ease, color 0.2s ease;
  }

  #navigation>li>a:hover,
  #navigation>li>a:focus,
  #navigation>li:hover>a,
  #navigation>li:focus-within>a {
    background: var(--nav-accent);
    color:var(--nav-fg);
  }

  .sub-nav-group {
    position: absolute;
    top: 95%;
    left: 0;
    min-width: 280px;
    margin-top: 2px;
    padding: 8px 0;
    background: var(--submenu-bg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    list-style: none;
	border-radius:0 0 20px 20px;
  }

  #navigation>li:hover .sub-nav-group,
  #navigation>li:focus-within .sub-nav-group {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .sub-nav-group li a {
    display: block;
    padding: 10px 16px;
    color: var(--submenu-fg);
  }

  .sub-nav-group li a:hover {
    background: var(--nav-accent);
    color: var(--nav-fg);
  }

  .sub-nav-group .nav_title {
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    background: #f5f5f5;
    border-bottom: 1px solid var(--mf-border);
    pointer-events: none;
  }
}

/* ============================================================================
   3. RESPONSIVE ADJUSTMENTS
   ============================================================================ */
@media screen and (max-width: 767px) {
  header {
    padding: 2rem 1rem 1rem;
  }

  .TopNav nav {
    padding-top: 1rem;
  }

  #navigation {
    flex-direction: column;
  }
}


/* 2) TOP NAVIGATION + MOBILE MENU CSS */
/* ── 2A) GLOBAL DEFAULTS ── */
.TopNav .mobile-menu-toggle,
.TopNav .mobile-menu-header,
.TopNav .submenu-toggle.mobile-arrow {
  display: none;
}

/* Mobile-only branding block: hidden by default */
.TopNav .mobile-brand {
  display: none;
}

.dropdown-toggle::after {
  display: none !important;
}

@media screen and (max-width: 767px) {

  /* 1) Show the toggle bubble */
  .TopNav .mobile-menu-toggle {
    display: flex;
    position: fixed !important;
    bottom: 10px !important;
    right: 10px !important;
    width: 60px;
    height: 60px;
    background: #000;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10002;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    align-items: center;
    justify-content: center;
    text-indent: -9999px;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .TopNav .mobile-menu-toggle i,
  .TopNav .mobile-menu-toggle svg {
    pointer-events: none;
    text-indent: 0;
  }

  /* When open: red background + “X” */
  .TopNav .mobile-menu-toggle.open {
    background-color: #DB4437 !important;
    /* Cancel the indent so the ::before text isn’t hidden */
    text-indent: 0;
  }

  .TopNav .mobile-menu-toggle.open i {
    transform: rotate(45deg);
    opacity: 0;
  }

  .TopNav .mobile-menu-toggle.open::before {
    content: "X";
    position: absolute;
    font-size: 2rem;
    color: white;
    /* Make sure the “X” isn’t indented off-screen */
    text-indent: 0;
  }

  /* 2) “Menu” header inside overlay, aligned top-left */
  .TopNav .mobile-menu-header {
    display: block;
    position: absolute;
    top: 0;
    left: 20px;
    transform: translateY(-100%);
    opacity: 0;
    color: #b4b4b4;
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px;
    transition: transform 0.6s ease, opacity 0.6s ease;
    z-index: 10003;
  }

  /* 3) Mobile-brand block: centered, larger logo */
  .TopNav .mobile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 20px 20px;
    background: #292729;
    margin-bottom: 10px;
    border-bottom: 1px solid grey;
  }

  .TopNav .mobile-brand img {
    height: 130px;
    /* larger logo */
    margin-bottom: 8px;
  }

  .TopNav .mobile-brand .mobile-brand-text {
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 4) Hide <nav> by default; show as full-screen overlay when open */
  .TopNav nav {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #292729;
    overflow-y: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10001;
    padding-top: 5px;
    /* account for header + branding heights */
  }

  .TopNav nav.open {
    opacity: 1;
    visibility: visible;
  }

  .TopNav nav.open .mobile-menu-header {
    transform: translateY(0);
    opacity: 1;
  }

  /* 5) Top-level list: keep link left, arrow right, and let submenu push items down */
  .TopNav nav ul#navigation {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 90%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
  }

  .TopNav nav ul#navigation li.nav-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 10px 0;
    position: relative;
    border-bottom: 1px solid #444;
    flex-wrap: wrap;
  }

  .TopNav nav ul#navigation li.nav-item>a {
    flex: 0 1 auto;
    /* width only as wide as the text */
    color: #b4b4b4;
    padding: 10px 0;
    text-align: left;
  }

  .TopNav nav ul#navigation li.nav-item>a:hover {
    color: #fefefe;
  }

  /* 6) Sub-menu stays IN-FLOW so it pushes items below downward */
  .TopNav nav ul#navigation li .sub-nav-group {
    display: none !important;
    flex-direction: column;
    width: 100%;
    background: #3a3a3a;
    margin: 0;
    padding: 0;
  }

  .TopNav nav ul#navigation li .sub-nav-group.open {
    display: flex !important;
  }

  .TopNav nav ul#navigation li .sub-nav-group li {
    padding-left: 20px;
    list-style:none;
  }

  .TopNav nav ul#navigation li .sub-nav-group li a {
    color: #fff !important;
    padding: 8px 0;
    display: block;
  }

  .TopNav nav ul#navigation li .sub-nav-group li a:hover {
    background: #4a4a4a;
  }

  /* 7) Arrow: fix at far-right, never shifts */
  .TopNav .submenu-toggle.mobile-arrow {
    flex: 0 0 32px;
    /* fixed 32px slot on the right */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #6b6b6b;
    border-radius: 50%;
    color: #6b6b6b;
    opacity: 0.6;
    cursor: pointer;
  }

  .TopNav .submenu-toggle.mobile-arrow.open {
    border-color: #555;
    background: #eaeaea;
  }
}
