/*
 * Shared header/mobile-nav styles used on every page (via header.php),
 * extracted from cssnewhome/style.css and cssnewhome/homepagemobile.css.
 *
 * Only the rules the header, its mega-menu dropdowns, and the mobile
 * slide-out nav actually need are here - deliberately NOT the full
 * homepage stylesheets, which also carry global resets (*, body, headings)
 * that changed fonts/spacing on every other page when loaded wholesale.
 * Everything below is scoped to header-only selectors/classes.
 */

/* ---------- Desktop header (#siteHeader) ---------- */

/*
 * #siteHeader only ever renders at 1024px+ (hidden below that by the
 * media query in header.php, where the mobile header takes over), so its
 * layout is spelled out directly here instead of via Tailwind utility
 * classes - Tailwind's CDN build generates utility CSS asynchronously via a
 * MutationObserver, so classes like `fixed`/`hidden`/`lg:flex` can briefly
 * have no effect at all right after the header is inserted, which is what
 * was causing the un-centered/overlapping-with-the-ticker layout. Plain CSS
 * in this file loads synchronously with the page, so there's no such gap.
 */
#siteHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1003 !important;
  color: #000;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  padding: .75rem 1rem;
}

#siteHeader:has(.expanded-dropdown.visible) .header_div {
  border-radius: 30px 30px 0 0;
}

.header_div {
  border-radius: 75px;
  background-color: #fff;
  transition: .3s;
  position: relative;
}

.gg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;

}

.gg-nav {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 0 0 auto;
  max-width: max-content;
  justify-content: center;
}

.gg-menu {
  display: flex;
  flex: 1 1 0%;
  list-style: none;
  align-items: center;
  justify-content: center;
  gap: .25rem;
margin-bottom:0px!important;
}

.gg-nav-link {
  display: inline-flex;
  height: 2.5rem;
  width: max-content;
  align-items: center;
  justify-content: center;
  border-radius: .375rem;
  padding: .5rem 1rem;
  font-size: 15px;
  font-weight: 500;
  transition: all .3s;
color:#000000!important;
text-decoration:none;
}

.gg-nav-link:hover {
  background-color: #f3f4f6;
}

/* Product/Solutions/Resources are plain <button> elements - reset the
   browser's native button chrome (grey background, border, appearance)
   so they look like plain text + chevron, same as the nav links next to them. */
.gg-menu button {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding: .5rem 1rem;
  background: transparent !important;
  border: none !important;
  border-radius: .375rem;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: inherit;
  appearance: none;
  cursor: pointer;
  transition: all .3s;
}

.gg-menu button:hover {
  background-color: #f3f4f6 !important;
}

.gg-chevron {
  position: relative;
  top: 1px;
  margin-left: .25rem;
  height: .75rem;
  width: .75rem;
  transition: transform .3s;
}

.gg-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: .25rem;
}

.gg-actions-inner {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.logo-container {
  position: relative;
  height: 45px;
  width: 140px;
  display: inline-flex;
  align-items: center;
}

.logo-large,
.logo-small {
  transition: opacity .3s, transform .3s;
  position: absolute;
  top: 0;
  left: 0;
}

.logo-large {
  display: block;
}

.logo-small {
  display: none;
  opacity: 0;
  transform: scale(.8);
}

.logo-mobile {
  display: none;
}

/* Scrolled (and mega-menu-open) state: header shrinks, small logo swaps in */
body.dropdown-open #siteHeader,
#siteHeader.scrolled {
  padding-top: .5rem !important;
  padding-bottom: .5rem !important;
}

body.dropdown-open #siteHeader .header_div,
#siteHeader.scrolled .header_div {
  border-radius: 75px;
  background-color: #fff;
  transition: .3s;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  padding: .75rem 1rem;
}

#siteHeader.scrolled .header_div {
  padding: .5rem 1rem;
}

body.dropdown-open #siteHeader .logo-large,
#siteHeader.scrolled .logo-large {
  opacity: 0;
  transform: scale(.8);
}

body.dropdown-open #siteHeader .logo-small,
#siteHeader.scrolled .logo-small {
  opacity: 1;
  transform: scale(1);
  display: block !important;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 3rem;
  padding: 0 1.5rem;
  background: #034737;
  color: #fff;
  border-radius: 30px;
  border: none;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
  letter-spacing: -.01em;
  font-size: .9375rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: .3s;
}

.cta-btn:hover {
  background: #262626;
  box-shadow: 0 3px 8px -1px rgba(0, 0, 0, .12), 0 2px 4px -1px rgba(0, 0, 0, .08);
}

.arrow-icon {
  transition: transform .3s;
}

.cta-btn:hover .arrow-icon {
  transform: translateX(4px);
}

/* ---------- Mega-menu dropdown panels (Product/Solutions/Resources) ---------- */

.expanded-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  z-index: 1;
  border-radius: 0 0 30px 30px;
  transition: .3s;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  padding: 0;
}

.expanded-dropdown.visible {
  opacity: 1;
  visibility: visible;
  max-height: 600px;
  padding: 1.5rem;
  overflow-y: auto;
  box-shadow: 0 19px 25px rgba(0, 0, 0, .15);
}

.expanded-dropdown.visible::-webkit-scrollbar {
  display: none;
}

.channel-tab {
  display: flex;
  text-align: left;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: .75rem 1rem;
  border-radius: .5rem;
  color: #4b5563;
  background: transparent;
  border: none;
  font-size: .9375rem;
  cursor: pointer;
  transition: .2s;
}

.channel-tab:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}

.channel-tab.active {
  background-color: #f5f5f5;
  color: #034737;
  font-weight: 500;
}

.channel-tab img {
  flex-shrink: 0;
}

.menu-column {
  padding: 0 1rem;
}

.menu-column:not(:last-child) {
  border-right: none;
}

.menu-column h3 {
  text-align: left;
  color: #1f2937;
  padding-bottom: .5rem;
  border-bottom: 1px solid #e5e7eb;
}

.menu-column ul {
  margin-top: 1rem;
}

.menu-column a {
  display: flex;
  align-items: center;
  padding: .5rem 0;
  color: #4b5563;
  border-radius: .375rem;
  transition: .2s;
}

.menu-column a:hover {
  color: #034737;
  background-color: #f8fafc;
  padding-left: .1rem;
}

.menu-column a span {
  display: block;
}

.menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  flex-shrink: 0;
}

.menu-icon-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
}

.menu-icon-image img {
  width: 2rem;
  flex-shrink: 0;
  border-radius: 50%;
}

.integration_column {
  padding: 1rem !important;
  border-radius: 10px;
}

.integration_image {
  border-radius: 10px;
}

.officialmetapartnerimage {
  padding: 12px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.officialmetapartnerimage img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid #c9c9c9;
  border-radius: 46px;
  padding: 5px;
}

.max-w-full.mx-auto.productdrop {
  padding: 0 20px;
}

@media (max-width: 1024px) {
  .channels-column,
  .menu-column:not(:last-child) {
    border-right: none;
  }

  .menu-column {
    grid-column: span 1;
  }
}

/* ---------- Mobile header + slide-out nav ---------- */

.mobile-header-inner,
.mobile-nav-header {
  justify-content: space-between;
  display: flex;
}

.mobile-header,
.mobile-nav-overlay {
  transition: .3s;
  position: fixed;
  right: 0;
}

.mobile-header {
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
  padding: 12px 20px;
}

.mobile-header-inner {
  align-items: center;
  max-width: 100%;
}

.mobile-logo img,
.mobile-nav-logo {
  height: 32px;
  width: auto;
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-cta-btn {
  background: #034737;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: .3s;
  box-shadow: 0 2px 8px rgba(3, 71, 55, .2);
}

.mobile-cta-btn:active {
  transform: scale(.95);
}

.mobile-menu-toggle {
  background: transparent;
  border: none;
  font-size: 28px;
  color: #1a1a1a;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-overlay {
  top: 0;
  left: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: #fff;
  z-index: 1200;
  transition: right .3s;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, .1);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-header {
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.mobile-nav-button,
.mobile-nav-close {
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-nav-close {
  font-size: 24px;
  color: #1a1a1a;
  padding: 4px;
}

.mobile-nav-content {
  padding: 20px;
}

.mobile-nav-button,
.mobile-nav-button-link {
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  transition: .3s;
}

.mobile-nav-item {
  margin-bottom: 8px;
}

.mobile-nav-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px;
}

.mobile-nav-button-link:active,
.mobile-nav-button:active,
.mobile-nav-link:active,
.mobile-nav-sublink:active {
  background: #f5f5f5;
}

.mobile-nav-button.active i {
  transform: rotate(180deg);
}

.mobile-nav-button i {
  transition: transform .3s;
  font-size: 14px;
}

.mobile-nav-button-link {
  display: block;
  text-decoration: none;
  border-radius: 12px;
}

.mobile-nav-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s;
  padding-left: 16px;
}

.mobile-nav-dropdown.active {
  max-height: 800px;
  margin-top: 8px;
  overflow-y: auto;
  overflow-x: hidden;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #525252;
  text-decoration: none;
  border-radius: 8px;
  font-size: 15px;
  transition: .3s;
  margin-bottom: 4px;
}

.mobile-nav-link i {
  font-size: 18px;
  color: #034737;
  flex-shrink: 0;
}

.mobile-nav-link div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-title {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 15px;
}

.link-subtitle {
  font-size: 12px;
  color: #737373;
  font-weight: 400;
}

.mobile-nav-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.mobile-nav-section:last-child {
  border-bottom: none;
}

.mobile-nav-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
  padding-left: 16px;
}

.mobile-nav-sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #525252;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  transition: .3s;
  margin-bottom: 4px;
}

.mobile-nav-sublink i {
  font-size: 16px;
  color: #034737;
}

.mobile-nav-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, .05);
}

.mobile-login-btn {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: center;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  background: #f5f5f5;
  border-radius: 12px;
  transition: .3s;
}

.mobile-login-btn:active {
  background: #e5e5e5;
}

.mobile-channel-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f5f5f5;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  transition: .3s;
  margin-bottom: 8px;
}

.mobile-channel-toggle:active {
  background: #e5e5e5;
}

.mobile-channel-toggle.active {
  background: #034737;
  color: #fff;
}

.mobile-channel-toggle.active i {
  transform: rotate(90deg);
  color: #fff;
}

.mobile-channel-toggle i {
  margin-left: auto;
  font-size: 14px;
  transition: transform .3s;
}

.mobile-channel-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s;
  padding-left: 12px;
}

.mobile-channel-content.active {
  max-height: 1000px;
  margin-bottom: 12px;
}

.mobile-channel-group {
  margin-bottom: 16px;
}

.mobile-channel-group h5 {
  font-size: 13px;
  font-weight: 600;
  color: #737373;
  margin-bottom: 8px;
  padding-left: 16px;
}

.mobile-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: #034737;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: .3s;
}

.mobile-view-all:active {
  gap: 10px;
}

.mobile-view-all i {
  font-size: 14px;
}

.mobile-integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 16px;
}

.mobile-integration-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  aspect-ratio: 1;
  background: #f5f5f5;
  border-radius: 12px;
  transition: .3s;
}

.mobile-integration-logo:active {
  background: #e5e5e5;
  transform: scale(.95);
}

.mobile-integration-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.mobile-integration-logo.mobile-view-more {
  background: #034737;
}

.mobile-integration-logo.mobile-view-more i {
  font-size: 28px;
  color: #fff;
}
