.top-nav-bar {
  position: relative;
  z-index: 9999;
}

.top-nav-inner {
  position: relative;
  z-index: 99999;
}

.top-nav-bar,
.top-nav-inner {
  overflow: visible;
}

.top-nav-bar #top-menu {
  align-items: center;
}

.top-nav-bar #top-menu li .dt-wrap a {
      padding: 0.2rem 1.8rem;
}

@media (max-width: 1024px){
  #primary-menu .top-nav-wrapper .dt-menu {
    display: none !important;
  }
  #primary-menu .top-nav-wrapper .dt-menu.open {
    display: flex !important;
    flex-direction: column;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  #primary-menu .top-nav-wrapper .dt-menu.open {
    left: 1rem;
  }
}
.dt-wrap { 
  position: relative; 
  display: inline-block; 
}

.dt-wrap .dt-current { 
  opacity: .85; 
}

/* Dropdown menu (positions relative to the button) */
.dt-wrap .dt-menu{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  list-style: none;
  margin: 0;
  padding: .4rem 0;
  min-width: 220px;
  background: #EBF6FB;
  color: #1C78CA !important;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  display: none;
  z-index: 1000;
}
.dt-wrap .dt-menu.open{ 
  display: flex;
  flex-direction: column;
}
.dt-wrap .dt-menu li{ 
  padding:.5rem .8rem; 
  cursor:pointer; 
}
.dt-wrap .dt-menu li:hover{ 
  background:#f5f5f5; 
}
.dt-wrap .dt-menu li.selected{ 
  font-weight:600; 
}

.dt-wrap.dt-dropup .dt-menu{
  top: auto;
  bottom: calc(100% + 8px);
}

.dt-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  vertical-align: middle;
}

.dt-icon {
  display: inline-flex;
  margin-top: 1px;
}

.dt-icon svg {
  display: block;
  width: 50px;
  height: 20px;
}

.dt-trigger span,
.dt-trigger {
  line-height: 1;
}

/* Modal disclaimer */
.dt-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.dt-modal[aria-hidden="false"]{ 
  display:flex; 
}
.dt-modal-inner{
  background: #fff;
  border-radius: .75rem;
  padding: 1rem 1.2rem;
  max-width: 520px;
  width: 92%;
}
.dt-actions{ 
  display:flex; 
  gap:.6rem; 
  justify-content:flex-end; 
  margin-top:.8rem; 
}
.dt-actions .dt-accept, .dt-actions .dt-cancel{
  padding:.5rem .8rem;
  border:1px solid #ddd;
  border-radius:.5rem;
  background:#fafafa;
  cursor:pointer;
}
.dt-actions .dt-accept{ 
  border-color:#7c3aed; 
}

/* Hide Google’s top bar + select (optional; keeps your layout clean) */
body .goog-te-banner-frame { 
  display:none !important; 
}
body { 
  top: 0 !important; 
}
.skiptranslate { 
  display:none; 
}

/* RTL toggle for Arabic */
html[dir="rtl"] body,
html[dir="rtl"] .dt-wrap,
html[dir="rtl"] .dt-modal-inner{ 
  direction: rtl; 
}

.footer-card { 
  overflow: visible; 
}

@media (max-width: 640px){
  .dt-wrap .dt-menu{ 
    left: 0; 
    right: auto; 
    min-width: 200px; 
  }
}

/*Modal*/
/* Backdrop */
.dayton-modal-backdrop {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

/* Modal Content */
.dayton-modal-content {
  position: relative;
  background-color: #fff;
  margin: 8% auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  max-width: 700px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.19);
  animation: animatetop 0.4s;
  border-radius: 8px;
  font-family: Arial, sans-serif;
}

/* Animation */
@keyframes animatetop {
  from { top: -300px; opacity: 0 }
  to { top: 0; opacity: 1 }
}

.dayton-modal-header,
.dayton-modal-footer {
  padding: 0.1rem 1rem;
  background-color: #1c78ca;
  color: #FFFFFF;
}

.dayton-modal-header h3 {
  color: #FFFFFF;
}

.dayton-modal-body {
  padding: 16px;
  line-height: 1.5;
}

.dayton-modal-close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.dayton-modal-button:hover {
  opacity: 0.8;
}
/* Hide Google Translate tooltip popup */
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.goog-te-balloon-frame {
  display: none !important;
}

/* Remove yellow highlight on hover for translated text */
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}