@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');
#cssmenu,
#cssmenu ul,
#cssmenu ul li,
#cssmenu ul li a,
#cssmenu #menu-button {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  line-height: 1;
  display: block;
  position: relative;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
#cssmenu:after,
#cssmenu > ul:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}
#cssmenu #menu-button {
  display: none;
}
#cssmenu {
  width: auto;
  font-family: Raleway, sans-serif;
  line-height: 1;
}
#cssmenu > ul {
  background: #c72222;
}
#cssmenu > ul > li {
  float: left;
  -webkit-perspective: 1000px;
  -moz-perspective: 1000px;
  perspective: 1000px;
}
#cssmenu.align-center > ul {
  font-size: 0;
  text-align: center;
}
#cssmenu.align-center > ul > li {
  display: inline-block;
  float: none;
}
#cssmenu.align-right > ul > li {
  float: right;
}
#cssmenu > ul > li > a {
  padding: 16px 20px;
  font-size: 14px;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  background: #c72222;
  -webkit-transition: all .3s;
  -moz-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
  -webkit-transform-origin: 50% 0;
  -moz-transform-origin: 50% 0;
  transform-origin: 50% 0;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  transform-style: preserve-3d;
}
#cssmenu > ul > li.active > a {
  color: #dff2fa;
}
#cssmenu > ul > li:hover > a,
#cssmenu > ul > li > a:hover {
  color: #dff2fa;
  -webkit-transform: rotateX(90deg) translateY(-23px);
  -moz-transform: rotateX(90deg) translateY(-23px);
  transform: rotateX(90deg) translateY(-23px);
  -ms-transform: none;
}
#cssmenu > ul > li > a::before {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: -1;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 16px 20px;
  color: #dff2fa;
  background: #5c1111;
  content: attr(data-title);
  -webkit-transition: background 0.3s;
  -moz-transition: background 0.3s;
  transition: background 0.3s;
  -webkit-transform: rotateX(-90deg);
  -moz-transform: rotateX(-90deg);
  transform: rotateX(-90deg);
  -webkit-transform-origin: 50% 0;
  -moz-transform-origin: 50% 0;
  transform-origin: 50% 0;
  -ms-transform: translateY(- -18px);
}
#cssmenu > ul > li:hover > a::before,
#cssmenu > ul > li > a:hover::before {
  background: #c72222;
}
#cssmenu.small-screen {
  width: 100%;
}
#cssmenu.small-screen > ul,
#cssmenu.small-screen.align-center > ul {
  width: 100%;
  text-align: left;
}
#cssmenu.small-screen > ul > li,
#cssmenu.small-screen.align-center {
  float: none;
  display: block;
  border-top: 1px solid rgba(100, 100, 100, 0.1);
}
#cssmenu.small-screen > ul > li:hover > a,
#cssmenu.small-screen > ul > li > a:hover {
  color: #dff2fa;
  -webkit-transform: none;
  -moz-transform: none;
  transform: none;
  -ms-transform: none;
}
#cssmenu.small-screen > ul > li > a::before {
  display: none;
}
#cssmenu.small-screen #menu-button {
  display: block;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #c72222;
}
#cssmenu.small-screen #menu-button:after {
  content: "";
  position: absolute;
  right: 20px;
  top: 17px;
  display: block;
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  border-top: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  width: 22px;
  height: 3px;
}
#cssmenu.small-screen #menu-button.menu-opened:after {
  border-top: 2px solid #dff2fa;
  border-bottom: 2px solid #dff2fa;
}
#cssmenu.small-screen #menu-button:before {
  content: "";
  position: absolute;
  right: 20px;
  top: 27px;
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
}
#cssmenu.small-screen #menu-button.menu-opened:before {
  background: #dff2fa;
}
#cssmenu ul ul {
  border-top: 6px solid #a80329;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}
#cssmenu ul ul a {
  line-height: 43px;
}
#cssmenu li ul {
  background: #e0e0e0;
  border-left: 2px solid #a80329;
  border-right: 2px solid #a80329;
  border-bottom: 2px solid #a80329;
  display: none;
  height: auto;
  filter: alpha(opacity=95);
  opacity: 0.95;
  position: absolute;
  width: 225px;
  z-index: 200;
  /*top:1em;
    /*left:0;*/
}

/* --- NAV FIX: make the top menu robust and push CONTACT to the right --- */
#cssmenu > ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;       /* prevent second-line wrapping */
}

/* turn off floats for flex layout */
#cssmenu > ul > li {
  float: none;
}

/* push only the CONTACT <li> to the far right */
#cssmenu > ul > li.contact {
  margin-left: auto;
}

/* ensure anchors fill their li */
#cssmenu > ul > li > a {
  display: block;
}


/* === NAV FIXES === */

/* 1) Ensure link text is shown (some themes hide labels and draw them via ::before) */
#cssmenu > ul > li > a {
  display: block !important;
  text-indent: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  color: #fff !important;     /* keep white text on red tab */
  position: relative !important;
  z-index: 2 !important;
}

/* 2) Stop pseudo-elements from replacing/hiding the label */
#cssmenu > ul > li > a::before,
#cssmenu > ul > li > a::after,
#cssmenu > ul > li::after {
  content: none !important;
  display: none !important;
}

/* 3) In small-screen mode, the hamburger overlaps the list.
      Give the <ul> padding so text isn't under the icon. */
#cssmenu.small-screen > ul {
  padding-left: 60px;    /* If your hamburger is on the LEFT */
  /* padding-right: 60px;  If it’s on the RIGHT, use this instead and remove the left one */
}

/* 4) Position the hamburger so it doesn't cover links */
#cssmenu #menu-button {
  position: absolute !important;
  left: 10px;           /* or right:10px if your icon is on the right */
  top: 10px;
  z-index: 1;           /* lower than link z-index so text is clickable/visible */
}
/* === NAV: make labels visible and stop triangle overlap === */
#cssmenu > ul > li { position: relative !important; overflow: visible !important; }
#cssmenu > ul > li > a {
  display: block !important;
  text-indent: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  color: #fff !important;
  position: relative !important;
  z-index: 2 !important;      /* keep text above triangles */
  padding-left: 28px !important; /* give room if a left triangle exists */
}

/* Triangles / fancy bits shouldn’t cover text or capture clicks */
#cssmenu > ul > li::before,
#cssmenu > ul > li::after,
#cssmenu > ul > li > a::before,
#cssmenu > ul > li > a::after {
  pointer-events: none !important;
  z-index: 1 !important;      /* below the link text */
}

/* Mobile (small-screen) layout: keep text away from hamburger icon */
@media (max-width: 992px) {
  #cssmenu.small-screen > ul {
    padding-left: 60px;       /* if hamburger is on the LEFT */
    /* padding-right: 60px;   // use this instead if your hamburger is on the right */
  }
  #cssmenu #menu-button {
    position: absolute !important;
    left: 10px;               /* or right:10px if it sits on the right */
    top: 10px;
    z-index: 1;               /* below the link text */
  }
}

/* ==============================
   AI Tools Page Adjustments
   ============================== */

.ai-tools main.container {
  background:#fff;
  padding-top:8px;
}

.ai-tools main.container h1 {
  margin-top:0;
}

/* Force top red banner on AI Tools page */
.ai-tools #cssmenu{
  background:#b60000 !important;
  padding:10px 0;
  border-bottom:1px solid #990000;
  position:relative;
  z-index: 10;
}
.ai-tools #cssmenu ul{ margin:0; }
.ai-tools #cssmenu a{ color:#fff !important; }


