/* ==========================================================================
   Quantum Microfinance Bank — Design System Base (ds.css)
   Sharia-compliant microfinance bank · "Empowering Possibilities Digitally"
   All styles are class-scoped to avoid fighting Bootstrap / jango_sub theme.
   ========================================================================== */

:root {
  /* Brand palette */
  --q-orange:   #F47C20;
  --q-orange-d: #D9641A;
  --q-orange-t: #FDEEE0;
  --q-green:    #3AA935;
  --q-green-d:  #2E8A2A;
  --q-green-t:  #E8F5E7;
  --q-ink:      #111111;
  --q-grey:     #6B6B6B;
  --q-line:     #E5E7EB;

  /* Type stacks */
  --q-fh: "Montserrat", "Segoe UI", sans-serif;
  --q-fb: "Segoe UI", "SF Pro Text", -apple-system, system-ui, Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.qwrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.qsection {
  padding: 80px 0;
}
.qsection--tint    { background: var(--q-orange-t); }
.qsection--green-t { background: var(--q-green-t); }
.qsection--grey    { background: #F7F8FA; }
.qsection--dark    { background: var(--q-ink); color: #fff; }
.qsection--dark .qsub   { color: #C9CBCF; }
.qsection--dark .qtitle { color: #fff; }

/* --------------------------------------------------------------------------
   Section header block
   -------------------------------------------------------------------------- */
.qhead {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.qeyebrow {
  display: inline-block;
  color: var(--q-orange);
  font-family: var(--q-fb);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .8rem;
  margin: 0 0 .35rem;
}
.qtitle {
  font-family: var(--q-fh);
  font-size: 2.1rem;
  line-height: 1.18;
  font-weight: 800;
  color: var(--q-ink);
  margin: .4rem 0;
}
.qsub {
  font-family: var(--q-fb);
  color: var(--q-grey);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}
.qhead--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.qbtn {
  display: inline-block;
  font-family: var(--q-fb);
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.qbtn:hover,
.qbtn:focus { text-decoration: none; }
.qbtn:focus-visible { outline: 3px solid rgba(244,124,32,.45); outline-offset: 2px; }

.qbtn--primary {
  background: var(--q-orange);
  color: #fff;
  border-color: var(--q-orange);
  box-shadow: 0 6px 16px rgba(244,124,32,.28);
}
.qbtn--primary:hover {
  background: var(--q-orange-d);
  border-color: var(--q-orange-d);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(244,124,32,.36);
}

.qbtn--green {
  background: var(--q-green);
  color: #fff;
  border-color: var(--q-green);
  box-shadow: 0 6px 16px rgba(58,169,53,.26);
}
.qbtn--green:hover {
  background: var(--q-green-d);
  border-color: var(--q-green-d);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(58,169,53,.34);
}

.qbtn--outline {
  background: transparent;
  color: var(--q-orange);
  border-color: var(--q-orange);
}
.qbtn--outline:hover {
  background: var(--q-orange);
  color: #fff;
  border-color: var(--q-orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244,124,32,.28);
}

.qbtn--white {
  background: #fff;
  color: var(--q-ink);
  border-color: #fff;
}
.qbtn--white:hover {
  background: var(--q-ink);
  color: #fff;
  border-color: var(--q-ink);
  transform: translateY(-2px);
}

.qbtn--lg {
  padding: 16px 36px;
  font-size: 1.08rem;
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */
.qcard {
  background: #fff;
  border: 1px solid var(--q-line);
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(17,17,17,.05);
  transition: .2s ease;
}
.qcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(244,124,32,.16);
  border-color: var(--q-orange);
}
.qcard__body { padding: 26px; }

/* --------------------------------------------------------------------------
   Page hero (interior page banner)
   bg image supplied inline: style="background-image:url(...)"
   -------------------------------------------------------------------------- */
.qmfb-pagehero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  background-color: var(--q-ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.qmfb-pagehero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(17,17,17,.82) 0%, rgba(17,17,17,.55) 60%, rgba(17,17,17,.35) 100%);
  z-index: 1;
}
/* left orange accent bar */
.qmfb-pagehero::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 8px;
  background: var(--q-orange);
  z-index: 2;
}
.qmfb-pagehero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px;
  box-sizing: border-box;
}
.qmfb-pagehero__eyebrow {
  display: inline-block;
  font-family: var(--q-fb);
  color: var(--q-orange);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: .5rem;
}
.qmfb-pagehero__title {
  font-family: var(--q-fh);
  color: #fff;
  font-size: 2.4rem;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 .55rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.qmfb-pagehero__crumb {
  font-family: var(--q-fb);
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.qmfb-pagehero__crumb a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  transition: color .15s ease;
}
.qmfb-pagehero__crumb a:hover {
  color: #fff;
  text-decoration: underline;
}
.qmfb-pagehero__crumb .sep {
  color: var(--q-orange);
  opacity: .9;
}
.qmfb-pagehero__crumb .current { color: #fff; font-weight: 600; }

@media (max-width: 575px) {
  .qmfb-pagehero { min-height: 200px; }
  .qmfb-pagehero__title { font-size: 1.85rem; }
}

/* --------------------------------------------------------------------------
   Rich text — editorial body styling (scoped to .qmfb-rich)
   -------------------------------------------------------------------------- */
.qmfb-rich {
  font-family: var(--q-fb);
  color: #25282C;
  font-size: 1.02rem;
  line-height: 1.75;
}
.qmfb-rich > *:first-child { margin-top: 0; }
.qmfb-rich > *:last-child  { margin-bottom: 0; }

.qmfb-rich h2 {
  position: relative;
  font-family: var(--q-fh);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--q-ink);
  line-height: 1.25;
  margin: 2em 0 .7em;
  padding-bottom: .4rem;
}
.qmfb-rich h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 54px; height: 3px;
  border-radius: 3px;
  background: var(--q-orange);
}
.qmfb-rich h3 {
  font-family: var(--q-fh);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--q-ink);
  line-height: 1.3;
  margin: 1.6em 0 .5em;
}
.qmfb-rich h4 {
  font-family: var(--q-fh);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--q-ink);
  margin: 1.4em 0 .4em;
}
.qmfb-rich p { margin: 0 0 1.1em; }
.qmfb-rich strong, .qmfb-rich b { color: var(--q-ink); font-weight: 700; }
.qmfb-rich a {
  color: var(--q-orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(244,124,32,.35);
  transition: color .15s ease, border-color .15s ease;
}
.qmfb-rich a:hover {
  color: var(--q-green);
  border-bottom-color: var(--q-green);
}

/* Lists — custom orange check bullets */
.qmfb-rich ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.2em;
}
.qmfb-rich ul > li {
  position: relative;
  padding-left: 1.9em;
  margin: 0 0 .6em;
}
.qmfb-rich ul > li::before {
  content: "";
  position: absolute;
  left: 0; top: .18em;
  width: 1.15em; height: 1.15em;
  border-radius: 50%;
  background: var(--q-orange-t);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F47C20' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: .72em;
}
.qmfb-rich ol {
  padding-left: 1.4em;
  margin: 0 0 1.2em;
  counter-reset: q-ol;
  list-style: none;
}
.qmfb-rich ol > li {
  position: relative;
  padding-left: .6em;
  margin: 0 0 .6em;
  counter-increment: q-ol;
}
.qmfb-rich ol > li::before {
  content: counter(q-ol);
  position: absolute;
  left: -1.4em; top: .05em;
  min-width: 1.5em; height: 1.5em;
  padding: 0 .25em;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--q-fh);
  font-size: .78em;
  font-weight: 800;
  color: #fff;
  background: var(--q-orange);
  border-radius: 50%;
}
.qmfb-rich li > ul,
.qmfb-rich li > ol { margin: .55em 0 .2em; }

/* Tables */
.qmfb-rich table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: .96rem;
  border: 1px solid var(--q-line);
  border-radius: 10px;
  overflow: hidden;
}
.qmfb-rich thead th,
.qmfb-rich table th {
  background: var(--q-orange-t);
  color: var(--q-ink);
  font-family: var(--q-fh);
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--q-orange);
}
.qmfb-rich td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--q-line);
  vertical-align: top;
}
.qmfb-rich tbody tr:nth-child(even) { background: #FAFBFC; }
.qmfb-rich tbody tr:hover { background: var(--q-green-t); }
.qmfb-rich tbody tr:last-child td { border-bottom: 0; }

/* Blockquote */
.qmfb-rich blockquote {
  margin: 1.5em 0;
  padding: 1em 1.4em;
  border-left: 4px solid var(--q-green);
  background: var(--q-green-t);
  border-radius: 0 10px 10px 0;
  color: #2A3B29;
  font-style: italic;
  font-size: 1.05rem;
}
.qmfb-rich blockquote p:last-child { margin-bottom: 0; }

/* Media */
.qmfb-rich img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(17,17,17,.10);
}
.qmfb-rich hr {
  border: 0;
  height: 1px;
  background: var(--q-line);
  margin: 2.2em 0;
}
.qmfb-rich code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: #F3F4F6;
  color: var(--q-orange-d);
  padding: .12em .42em;
  border-radius: 5px;
  font-size: .9em;
}

/* --------------------------------------------------------------------------
   Back-to-top helper (styled fully in chrome.css; base presence here)
   -------------------------------------------------------------------------- */
.qmfb-top { font-family: var(--q-fb); }
