/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

#top-bar {
    background-color: #333399;
    border-bottom: 5px solid #ffcc33;
}

.breaking-news {
	background-color: #666666 !important;
    border-bottom: 5px solid #ffcc33;
  }

.breaking-news a {
	color: #fff;
}
.py-3 {
  text-align: right;
    padding-top: 0px;
    padding-bottom: 0px;
}
.py-3 a{
  padding-left: 20px;
}
.py-3 a:hover{
    color: #000;
 
}

.breaking-news .top-links-sub-menu .top-links-item > a {
    color: #000000;
    padding: 5px;
  font-size: 12px;
    line-height: 13px;
}}
#section-about {
  margin-top: 20px;
}
.heading-block-1 {
  background-color: #e6e6e6;
  color: #000;
}
.heading-block-1 h2 {
    color: #000;
}

.dmr{
  background-color: #e6e6e6;
 }

.lower-nav{
    align-items: end;
    justify-content: end;
}
#section-about {
    margin-top: 50px;
}
.portfolio-item {
   /* padding-left: 5px;
    padding-right: 5px;*/
}
.btn-secondary {
    background-color: #c91b1b;
}

h3 a, h4 a, h5 a {
    color: #000;
}
.fullwidthimage-logo {
    float: right;
    margin: 0 0 15px 15px;
    max-width: 300px;
    padding: 5px;
}
.menu-link strong {
    font-weight: 900;
    color: #000;
}


.safety-reimagined-badge {
    width: 400px;
}
.top-links-item > a:hover {
        color: #000;
}

/* Main Nav BTM Bar/Links */
.top-links-container {
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-links-item {
  position: relative;
  display: inline-block;
  vertical-align: top;
}

.top-links-item > a {
  text-decoration: none;
  padding: 10px 15px;
  display: inline-block;
  color: #fff;
}

/* Submenu positioning */
.top-links-sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; /* ensures left edge aligns with parent link */
  min-width: 200px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 999;
}

/* Show submenu on hover */
.top-links-item:hover > .top-links-sub-menu {
  display: block;
}

/* Submenu items */
.top-links-sub-menu .top-links-item a {
  display: block;
  padding: 10px 15px;
  color: #333;
  white-space: nowrap;
  background: #fff;
}

.top-links-sub-menu .top-links-item a:hover {
  background: #f5f5f5;
  color: #00538e;
}

/* Reset / base */
.top-links-container,
.top-links-sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

/* --- Top-level items: inline and positioned for absolute children --- */
.top-links-container > .top-links-item {
  display: inline-block;      /* only first-level LIs inline */
  position: relative;         /* positioning context for submenu */
  vertical-align: middle;
}

/* Ensure the top-level link looks like a normal nav link */
.top-links-container > .top-links-item > a {
  display: inline-block;      /* keeps top nav compact */
  padding: 10px 15px;
  text-decoration: none;
  white-space: nowrap;
}

/* --- Submenu (drop-down) --- */
.top-links-sub-menu {
  position: absolute;
  top: 100%;                  /* directly under the parent link */
  left: 0;                    /* align left edge with parent <li> */
  display: none;              /* shown on hover */
  min-width: 200px;           /* adjust as needed */
  margin: 0;
  padding: 6px 0;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  z-index: 999;
}

/* Make submenu items stack vertically (IMPORTANT: scoping fixes the bug) */
.top-links-sub-menu > .top-links-item {
  display: block;             /* stack vertically */
}

/* Submenu links full-width and consistent */
.top-links-sub-menu > .top-links-item > a {
  display: block;
  padding: 8px 14px;
  white-space: nowrap;
  text-decoration: none;
}

/* Show submenu on hover of the top-level li */
.top-links-container > .top-links-item:hover > .top-links-sub-menu {
  display: block;
}

/* If your submenu anchors contain a <div>, make sure it doesn't break layout */
.top-links-sub-menu .top-links-item a > div {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Optional hover style */
.top-links-sub-menu .top-links-item a:hover {
  background: #f5f5f5;
  color: #00538e;
}
/* Keep submenu aligned directly under the parent link */
.top-links-item {
  position: relative;
}

.top-links-sub-menu {
  left: 0 !important;          /* lock submenu to parent's left edge */
  margin-left: 0 !important;   /* no added offset */
  padding-left: 0 !important;  /* remove interior spacing */
  text-align: left;            /* ensure text lines up left */
}

/* Make sure the submenu links don’t add their own offset */
.top-links-sub-menu .top-links-item a {
  padding-left: 12px;          /* small consistent padding only */
}

/* Optional: ensure the parent link’s padding doesn’t throw off alignment */
.top-links-container > .top-links-item > a {
  padding-left: 12px;
  padding-right: 12px;
}
