/* SALAM AUSTRALIA — shared site chrome (nav, top bar, country switcher, footer) */
/* Extracted from what was previously duplicated inline on every page. */

/* ===== Main navigation ===== */
.main-nav {
  background: #012169;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  font-family: 'Tajawal', sans-serif;
  direction: ltr;
}
.main-nav .nav-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overflow-y: visible;
  display: flex;
  justify-content: flex-start;
}
.main-nav .nav-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100%;
  width: max-content;
  flex-shrink: 0;
  padding: 0 8px;
  white-space: nowrap;
}
.nav-item {
  position: relative;
  display: inline-block;
}
.nav-item > a {
  color: #fff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-left: 1px solid rgba(255,255,255,0.15);
  transition: background .15s;
  white-space: nowrap;
  cursor: pointer;
}
.nav-item > a:hover,
.nav-item.active > a {
  background: rgba(255,255,255,0.15);
}
.nav-item > a .nav-icon { display: none; }
.nav-item > a .arrow {
  font-size: 9px;
  opacity: .75;
  transition: transform .2s;
}
.nav-item.active > a .arrow {
  transform: rotate(180deg);
}
/* Submenu */
.sub-menu {
  display: none;
  position: fixed;
  min-width: 200px;
  background: #fff;
  border-top: 3px solid #012169;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 9999;
  direction: ltr;
  overflow: hidden;
}
.sub-menu.open { display: block; }
.sub-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  color: #1a1a18;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Tajawal', sans-serif;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background .13s, color .13s, padding .13s;
  white-space: nowrap;
}
.sub-menu a:last-child { border-bottom: none; }
.sub-menu a:hover {
  background: #f0f8f3;
  color: #012169;
  padding-left: 22px;
}
.sub-menu a .site-icon {
  width: 20px; height: 20px;
  border-radius: 5px;
  object-fit: contain;
  flex-shrink: 0;
  background: #f5f5f5;
}
.sub-menu a .badge {
  margin-left: auto;
  font-size: 10px;
  background: #012169;
  color: #fff;
  padding: 1px 6px;
  border-radius: 20px;
  font-weight: 700;
}

/* Mega menu Banks */
.banks-mega { padding: 0 !important; width: 620px !important; min-width: 620px !important; max-height: 65vh; overflow-y: auto; }
.banks-mega-cols { column-count: 2; column-gap: 0; column-rule: 1px solid rgba(0,0,0,0.06); }
@media (max-width: 640px) {
  .sub-menu {
    max-width: calc(100vw - 16px);
    max-height: 70vh;
    overflow-y: auto;
  }
  .banks-mega {
    min-width: 0 !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
  }
  .banks-mega > div:first-child { display: none !important; }
  .banks-mega-cols { column-count: 1 !important; }
  .banks-mega .bank-mega-row {
    grid-template-columns: 1fr !important;
    text-align: left;
    gap: 6px;
  }
  .banks-mega .bank-mega-btn { text-align: center; }
}
.bank-mega-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  direction: ltr;
  break-inside: avoid;
}
.bank-mega-row:hover { background: #f5fbf7; }
.bank-mega-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1a1a18;
  font-family: 'Tajawal', sans-serif;
  white-space: nowrap;
  min-width: 0;
}
.bank-mega-name .bmn-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
/* Standardize the size of all bank logos in the menu */
.bank-mega-name img,
.bank-mega-name .site-icon {
  width: 24px !important;
  height: 24px !important;
  border-radius: 5px !important;
  object-fit: contain !important;
  flex-shrink: 0;
  background: #f5f5f5;
  border: 1px solid #eee;
}
.bank-mega-btn {
  display: block;
  text-align: center;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  text-decoration: none;
  transition: background .13s, color .13s;
  white-space: nowrap;
}
.bank-mega-btn.personal  { background: #e8f2ff; color: #1a56db; }
.bank-mega-btn.business  { background: #e8f5ee; color: #012169; }
.bank-mega-btn.trading   { background: #fff4e5; color: #b45309; }
.bank-mega-btn.disabled  { background: #f5f5f5; color: #bbb; cursor: default; }
.bank-mega-btn.personal:hover  { background: #1a56db; color: #fff; }
.bank-mega-btn.business:hover  { background: #012169; color: #fff; }
.bank-mega-btn.trading:hover   { background: #b45309; color: #fff; }

/* ===== Top date/time bar ===== */
#topBarRow{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;background:#fafafa;border-bottom:1px solid #eee;padding:8px 10px;}
#topBarRow .nav-item > a{color:#012169;padding:4px 10px;font-size:.85rem;font-weight:700;border-left:none;background:transparent;}
#topBarRow .nav-item > a:hover, #topBarRow .nav-item.active > a{background:rgba(1,33,105,0.08);border-radius:6px;}
#topBarRow .nav-item > a .arrow{opacity:.6;}

/* ===== Country switcher ===== */
.country-switcher{position:relative;display:inline-flex;}
.country-switcher-btn{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:20px;border:1px solid #e2e2e2;background:#fff;color:#012169;font-size:.82rem;font-weight:700;font-family:inherit;cursor:pointer;white-space:nowrap;}
.country-switcher-btn:hover{background:#f2f6fb;}
.country-switcher-btn .cs-flag{width:18px;height:13px;object-fit:cover;border-radius:2px;flex-shrink:0;}
.country-switcher-btn .cs-arrow{font-size:8px;opacity:.65;transition:transform .2s;}
.country-switcher.open .cs-arrow{transform:rotate(180deg);}
.country-switcher-menu{display:none;position:absolute;top:calc(100% + 6px);left:0;background:#fff;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.15);min-width:170px;overflow:hidden;z-index:950;border-top:3px solid #012169;}
.country-switcher.open .country-switcher-menu{display:block;}
.country-switcher-menu a{display:flex;align-items:center;gap:9px;padding:10px 14px;color:#1a1a1a;text-decoration:none;font-size:.85rem;font-weight:600;font-family:inherit;border-bottom:1px solid rgba(0,0,0,.05);white-space:nowrap;}
.country-switcher-menu a:last-child{border-bottom:none;}
.country-switcher-menu a:hover{background:#f0f8f3;color:#012169;}
.country-switcher-menu img{width:20px;height:14px;object-fit:cover;border-radius:2px;flex-shrink:0;}
@media (prefers-color-scheme: dark){
  .country-switcher-btn{background:#1e1e1e;border-color:#333;color:#8ec1f2;}
  .country-switcher-btn:hover{background:#26344a;}
  .country-switcher-menu{background:#1e1e1e;box-shadow:0 8px 24px rgba(0,0,0,.5);}
  .country-switcher-menu a{color:#f0f0f0;border-bottom-color:rgba(255,255,255,.08);}
  .country-switcher-menu a:hover{background:#12291a;color:#8ec1f2;}
}

/* ===== Secondary nav links ===== */
.nav2-link {
  color: #012169;
  text-decoration: none;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 15px;
  display: inline-block;
  border-right: 1px solid rgba(0,108,53,0.12);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav2-link:hover {
  background: #012169;
  color: #fff;
}

/* ===== Services dropdown ===== */
.nav2-svc{background:none;border:none;cursor:pointer;font-family:'Tajawal',sans-serif;font-size:13px;font-weight:700;color:#012169}
.nav2-svc::after{content:"▾";margin-inline-start:5px;font-size:11px;}
.nav2-svc.open{background:#012169;color:#fff;}
.svc-drop{position:fixed;z-index:1200;background:#fff;border:1px solid rgba(0,108,53,.18);border-top:3px solid #012169;border-radius:0 0 12px 12px;box-shadow:0 12px 30px rgba(0,52,31,.18);padding:6px;min-width:230px;max-height:72vh;overflow-y:auto;display:none;font-family:'Tajawal',sans-serif;direction:ltr;}
.svc-drop.show{display:block;}
.svc-drop a{display:block;padding:10px 14px;text-decoration:none;color:#12281c;font-size:13.5px;font-weight:700;border-radius:8px;white-space:nowrap;transition:background .12s,color .12s;}
.svc-drop a:hover{background:#012169;color:#fff;}
.svc-drop .svc-head{color:#012169;border-bottom:1px solid rgba(0,108,53,.12);border-radius:8px 8px 0 0;margin-bottom:4px;}
.svc-drop .svc-head:hover{background:#004f27;color:#fff;}

/* ===== Unified site footer ===== */
/* ===== Unified site footer (all pages) ===== */
.site-footer{margin-top:20px;border-top:1px solid #e7e7e7;}
@media (prefers-color-scheme: dark){.site-footer{border-top-color:#333;}}
.footer-sections{max-width:980px;margin:0 auto;padding:28px 16px 6px;display:flex;flex-wrap:wrap;justify-content:center;gap:8px 6px;}
.footer-sections a{display:flex;flex-direction:column;align-items:center;gap:7px;width:76px;text-decoration:none;color:#666;padding:8px 2px 10px;border-radius:12px;transition:background .15s, transform .15s, color .15s;}
@media (prefers-color-scheme: dark){.footer-sections a{color:#aaa;}}
.footer-sections a:hover{background:rgba(1,33,105,.07);transform:translateY(-2px);color:#012169;}
.footer-sections .ic{width:38px;height:38px;border-radius:11px;background:rgba(1,33,105,.09);display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;}
.footer-sections a:hover .ic{background:#012169;}
.footer-sections span.lbl{font-size:10.5px;font-weight:700;text-align:center;line-height:1.3;}
.footer-credit{text-align:center;padding:16px 16px 4px;font-size:12.5px;color:#666;border-top:1px solid #e7e7e7;margin-top:6px;}
@media (prefers-color-scheme: dark){.footer-credit{color:#aaa;border-top-color:#333;}}
.footer-credit a{color:#012169;text-decoration:none;font-weight:700;}
.footer-legal{text-align:center;padding:10px 12px 22px;font-size:12px;line-height:2.2;color:#666;}
@media (prefers-color-scheme: dark){.footer-legal{color:#aaa;}}
.footer-legal a{color:#012169;text-decoration:none;font-weight:700;margin:0 5px;}
.footer-legal span{opacity:.4;}

/* ===== Cookie notice banner (informational, not a consent gate) ===== */
.cookie-banner{position:fixed;left:0;right:0;bottom:0;z-index:2000;background:#012169;color:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;font-family:'Tajawal',sans-serif;font-size:13px;line-height:1.6;box-shadow:0 -4px 16px rgba(0,0,0,.18);}
.cookie-banner.hidden{display:none;}
.cookie-banner p{margin:0;max-width:640px;}
.cookie-banner a{color:#8ec1f2;font-weight:700;text-decoration:none;}
.cookie-banner a:hover{text-decoration:underline;}
.cookie-banner button{background:#fff;color:#012169;border:none;border-radius:20px;padding:8px 18px;font-size:12.5px;font-weight:800;cursor:pointer;white-space:nowrap;font-family:inherit;flex-shrink:0;}
.cookie-banner button:hover{background:#e8f0fe;}
