:root {
  color-scheme: light;
  --qz-ink: #14213a;
  --qz-muted: #667085;
  --qz-brand: #2f77ff;
  --qz-brand-dark: #1b56c5;
  --qz-line: #e5eaf1;
  --qz-soft: #f7f9fc;
}

html { scroll-behavior: smooth; }
body.finqadam-template,
body.finqadam-component {
  margin: 0;
  color: var(--qz-ink);
  background: #f8fafc;
  font-family: "Segoe UI Variable Text", "Segoe UI", "Noto Sans", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.qz-shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.qz-skip {
  position: fixed; z-index: 999; top: 8px; left: 8px; transform: translateY(-150%);
  padding: 10px 14px; color: #fff; background: var(--qz-ink); border-radius: 9px;
}
.qz-skip:focus { transform: none; }

.qz-header {
  position: sticky; z-index: 30; top: 0;
  color: #fff; background: #0d2f5f; border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 5px 22px rgba(3,19,45,.13);
}
.qz-topline { color: rgba(255,255,255,.7); background: #0a274f; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12px; }
.qz-topline .qz-shell { display: flex; justify-content: space-between; gap: 20px; padding-block: 7px; }
.qz-topline a { color: #b9ffef; font-weight: 700; text-decoration: none; }
.qz-navbar { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; min-height: 72px; }
.qz-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.qz-logo img { display: block; width: 42px; height: 42px; flex: 0 0 42px; }
.qz-logo strong { font-size: 22px; font-weight: 850; letter-spacing: -.045em; }
.qz-logo small { margin-left: 2px; color: #b9ffef; font-size: 12px; letter-spacing: -.01em; }
.qz-menu { display: flex; justify-content: center; gap: 27px; }
.qz-menu a {
  position: relative; padding-block: 25px; color: rgba(255,255,255,.82);
  font-size: 14px; font-weight: 700; text-decoration: none; transition: color .18s ease;
}
.qz-menu a::after {
  content: ''; position: absolute; right: 50%; bottom: 16px; left: 50%; height: 2px;
  background: #b9ffef; border-radius: 2px; transition: left .18s ease, right .18s ease;
}
.qz-menu a:hover { color: #fff; }
.qz-menu a:hover::after { right: 0; left: 0; }
.qz-lang { display: flex; padding: 3px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; }
.qz-lang a { padding: 6px 9px; color: rgba(255,255,255,.7); border-radius: 999px; font-size: 11px; font-weight: 800; text-decoration: none; }
.qz-lang a.is-active { color: #0d2f5f; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.qz-menu-toggle { display: none; }

main { min-height: 58vh; }
.qz-breadcrumbs { color: rgba(255,255,255,.7); background: #0d2f5f; border-bottom: 1px solid rgba(255,255,255,.08); }
.qz-breadcrumbs > nav { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.qz-breadcrumbs .mod-breadcrumbs { display: flex; gap: 8px; margin: 0; padding: 12px 0; list-style: none; color: rgba(255,255,255,.72); font-size: 12px; }
.qz-breadcrumbs a { color: #fff; text-decoration: none; }
.qz-breadcrumbs .mod-breadcrumbs__here { display: none; }
.qz-breadcrumbs .mod-breadcrumbs__item + .mod-breadcrumbs__item::before { content: '/'; margin-right: 8px; color: #c1c8d2; }
.alert { width: min(1160px, calc(100% - 40px)); margin: 16px auto; padding: 14px 16px; border: 1px solid #b8e2d5; border-radius: 12px; background: #effaf6; }
.alert-error, .alert-danger { border-color: #f2bbb6; background: #fff3f2; }

.qz-footer { padding-top: 60px; color: #cbd5e1; background: #111827; }
.qz-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 56px; }
.qz-footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.qz-logo.is-footer { margin-bottom: 8px; color: #fff; }
.qz-footer p { color: #94a3b8; }
.qz-footer strong { margin-bottom: 6px; color: #fff; }
.qz-footer a:not(.qz-logo) { color: #cbd5e1; text-decoration: none; font-size: 14px; }
.qz-footer-contact { line-height: 1.7; }
.qz-footer a:hover { color: #fff; }
.qz-footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 48px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.qz-footer-bottom p { max-width: 660px; margin: 0; text-align: right; }

.qz-error { display: grid; place-items: center; min-height: 100vh; margin: 0; background: #f5f7fb; font-family: system-ui,sans-serif; }
.qz-error main { max-width: 620px; min-height: auto; padding: 50px; text-align: center; }
.qz-error main > span { color: var(--qz-brand); font-size: 84px; font-weight: 850; }
.qz-error h1 { margin: 0 0 15px; font-size: 38px; }
.qz-error a { display: inline-block; margin-top: 15px; padding: 12px 18px; color: #fff; background: var(--qz-brand); border-radius: 10px; text-decoration: none; font-weight: 800; }

@media (max-width: 960px) {
  .qz-navbar { grid-template-columns: auto auto 1fr auto; }
  .qz-menu-toggle { display: flex; align-items: center; gap: 3px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.1); border-radius: 10px; }
  .qz-menu-toggle span { width: 15px; height: 2px; background: #fff; }
  .qz-menu-toggle b { margin-left: 5px; font-size: 11px; }
  .qz-menu { position: absolute; top: 100%; left: 20px; right: 20px; display: none; flex-direction: column; gap: 0; padding: 12px; border: 1px solid var(--qz-line); background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(15,23,42,.14); }
  .qz-menu.is-open { display: flex; }
  .qz-menu a { padding: 12px; color: #344054; }
  .qz-menu a:hover { color: var(--qz-brand-dark); }
  .qz-menu a::after { display: none; }
  .qz-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .qz-shell { width: min(100% - 24px, 1160px); }
  .qz-topline span { display: none; }
  .qz-navbar { grid-template-columns: auto 1fr auto; gap: 10px; min-height: 66px; }
  .qz-logo strong { font-size: 20px; }
  .qz-menu-toggle { justify-self: end; }
  .qz-menu-toggle b { display: none; }
  .qz-lang { grid-column: 3; }
  .qz-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .qz-footer-bottom { flex-direction: column; }
  .qz-footer-bottom p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* FinQadam 1.6: calmer navigation and a wider desktop rhythm. */
:root {
  --qz-ink: #172033;
  --qz-muted: #64748b;
  --qz-brand: #2563eb;
  --qz-brand-dark: #1d4ed8;
  --qz-line: #e2e8f0;
  --qz-soft: #f5f7fa;
}

body.finqadam-template,
body.finqadam-component { background: var(--qz-soft); }

.qz-shell { width: min(1320px, calc(100% - 56px)); }
.qz-header {
  color: var(--qz-ink);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--qz-line);
  box-shadow: 0 5px 18px rgba(15,23,42,.055);
  backdrop-filter: blur(14px);
}
.qz-topline {
  color: #64748b;
  background: #eff6f7;
  border-bottom: 1px solid #dfebed;
  font-size: 11px;
}
.qz-topline .qz-shell { padding-block: 6px; }
.qz-topline a { color: #087f72; font-weight: 600; }
.qz-navbar { gap: 36px; min-height: 66px; }
.qz-logo { color: #172c4a; }
.qz-logo strong { font-size: 21px; font-weight: 650; }
.qz-logo small { color: #0f8f80; }
.qz-menu { gap: 30px; }
.qz-menu a { padding-block: 22px; color: #475569; font-size: 14px; font-weight: 550; }
.qz-menu a:hover { color: #1d4ed8; }
.qz-menu a::after { bottom: 13px; height: 2px; background: #2563eb; }
.qz-lang { background: #f1f5f9; border-color: #dce4ee; }
.qz-lang a { color: #64748b; font-weight: 600; }
.qz-lang a.is-active { color: #fff; background: #1e3a5f; box-shadow: none; }
.qz-breadcrumbs { color: #64748b; background: #fff; border-bottom-color: var(--qz-line); }
.qz-breadcrumbs > nav { width: min(1320px, calc(100% - 56px)); }
.qz-breadcrumbs .mod-breadcrumbs { color: #64748b; }
.qz-breadcrumbs a { color: #334155; }
.qz-breadcrumbs .mod-breadcrumbs__item { font-weight: 500; }
.qz-breadcrumbs .mod-breadcrumbs__item:last-child { color: #64748b; }
.alert { width: min(1320px, calc(100% - 56px)); }
.qz-footer { color: #cbd5e1; background: #17243a; }

@media (max-width: 960px) {
  .qz-menu-toggle { color: #334155; background: #f8fafc; border-color: #dbe3ed; }
  .qz-menu-toggle span { background: #334155; }
  .qz-menu { box-shadow: 0 20px 50px rgba(15,23,42,.12); }
}

@media (max-width: 640px) {
  .qz-shell { width: min(100% - 28px, 1320px); }
  .qz-breadcrumbs > nav, .alert { width: min(100% - 28px, 1320px); }
}

/* FinQadam 1.6.6: structured product navigation. */
.qz-menu-group { position: relative; display: flex; align-self: stretch; align-items: center; }
.qz-menu-group > a { display: flex; align-items: center; height: 100%; }
.qz-menu-group > a::before {
  content: ''; width: 6px; height: 6px; margin-left: 7px; order: 2;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.qz-submenu {
  position: absolute; top: calc(100% - 5px); left: 50%; z-index: 40;
  display: grid; min-width: 245px; padding: 8px;
  background: #fff; border: 1px solid var(--qz-line); border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15,23,42,.14);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.qz-submenu a {
  padding: 10px 12px; color: #334155; border-radius: 9px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
}
.qz-submenu a::after { display: none; }
.qz-submenu a:hover { color: #1d4ed8; background: #f1f5f9; }
.qz-menu-group:hover .qz-submenu,
.qz-menu-group:focus-within .qz-submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .qz-menu-group { display: block; }
  .qz-menu-group > a { height: auto; }
  .qz-submenu {
    position: static; min-width: 0; margin: -4px 0 7px 18px; padding: 0 0 0 10px;
    background: transparent; border: 0; border-left: 1px solid #dbe3ed; border-radius: 0;
    box-shadow: none; opacity: 1; visibility: visible; transform: none;
  }
  .qz-submenu a { padding: 8px 10px; color: #64748b; font-size: 12px; }
}
