/* =====================================================================
   QMFB — Quantum Microfinance Bank Limited
   pages.css — PRODUCT pages (.qmfb-prod) + BOARD/TEAM page (.qmfb-team)
   Theme: jango_sub. Depends on ds.css (:root vars + base .q* classes).
   Everything prefixed; no global leakage. Do NOT redefine .qmfb-rich base.
   ===================================================================== */

/* ---------- Local fallbacks (only if ds.css vars are absent) ---------- */
.qmfb-prod,
.qmfb-team {
  --q-orange: var(--q-orange, #F47C20);
  --q-orange-d: var(--q-orange-d, #D9641A);
  --q-orange-t: var(--q-orange-t, #FDEEE0);
  --q-green: var(--q-green, #3AA935);
  --q-green-d: var(--q-green-d, #2E8A2A);
  --q-green-t: var(--q-green-t, #E8F5E7);
  --q-ink: var(--q-ink, #111111);
  --q-grey: var(--q-grey, #6B6B6B);
  --q-line: var(--q-line, #E5E7EB);

  --qp-radius: 16px;
  --qp-radius-sm: 12px;
  --qp-shadow: 0 6px 24px rgba(17, 17, 17, 0.06);
  --qp-shadow-lg: 0 18px 48px rgba(17, 17, 17, 0.12);
  --qp-shadow-hover: 0 16px 40px rgba(244, 124, 32, 0.16);
  --qp-font-head: Montserrat, 'Segoe UI', sans-serif;
  --qp-font-body: 'Segoe UI', system-ui, sans-serif;

  font-family: var(--qp-font-body);
  color: var(--q-ink);
}

/* =====================================================================
   SHARED — Sharia badge (reusable anywhere)
   ===================================================================== */
.qbadge-sharia {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 10px;
  border-radius: 999px;
  background: var(--q-green-t);
  color: var(--q-green-d);
  border: 1px solid rgba(58, 169, 53, 0.28);
  font-family: var(--qp-font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}
.qbadge-sharia svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: var(--q-green);
}

/* =====================================================================
   1) PRODUCT PAGE  —  scope: .qmfb-prod
   ===================================================================== */
.qmfb-prod {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 40px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 0 24px;
}

/* ---------- LEFT: main rich content ---------- */
.qmfb-prod__main {
  min-width: 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: #2a2a2a;
}

.qmfb-prod__main > *:first-child {
  margin-top: 0;
}

/* Paragraphs */
.qmfb-prod__main p {
  margin: 0 0 18px;
  color: #34373b;
}

/* h2 → section titles with orange left accent */
.qmfb-prod__main h2 {
  position: relative;
  font-family: var(--qp-font-head);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--q-ink);
  letter-spacing: -0.01em;
  margin: 38px 0 18px;
  padding-left: 16px;
}
.qmfb-prod__main h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--q-orange), var(--q-orange-d));
}
.qmfb-prod__main > h2:first-of-type {
  margin-top: 6px;
}

/* h3 → sub-titles */
.qmfb-prod__main h3 {
  font-family: var(--qp-font-head);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--q-ink);
  margin: 26px 0 12px;
}

/* ---------- Key Features: orange check-circle bullets, 2-col ---------- */
.qmfb-prod__main ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}
.qmfb-prod__main ol + *,
.qmfb-prod__main ul + * {
  margin-top: 4px;
}
.qmfb-prod__main ul li {
  position: relative;
  padding: 4px 0 4px 34px;
  line-height: 1.55;
  color: #34373b;
}
.qmfb-prod__main ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--q-orange-t);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F47C20' d='M9.55 17.05 4.5 12l1.4-1.4 3.65 3.6 8.15-8.15L19.1 7.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
}

/* ---------- Eligibility / Requirements: tinted card ----------
   Robust hook: add class .qmfb-prod__elig to a wrapper if available,
   otherwise the generic ul styling still reads well. */
.qmfb-prod__elig,
.qmfb-prod__card {
  background: linear-gradient(180deg, #fff, var(--q-green-t));
  border: 1px solid rgba(58, 169, 53, 0.22);
  border-radius: var(--qp-radius);
  padding: 22px 26px 6px;
  margin: 22px 0 28px;
  box-shadow: var(--qp-shadow);
}
.qmfb-prod__elig h2,
.qmfb-prod__elig h3,
.qmfb-prod__card h2,
.qmfb-prod__card h3 {
  margin-top: 6px;
}
.qmfb-prod__elig ul,
.qmfb-prod__card ul {
  grid-template-columns: 1fr;
}
.qmfb-prod__elig ul li::before,
.qmfb-prod__card ul li::before {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233AA935' d='M9.55 17.05 4.5 12l1.4-1.4 3.65 3.6 8.15-8.15L19.1 7.5z'/%3E%3C/svg%3E");
}

/* ---------- How to Apply: numbered step chips ----------
   Works automatically on <ol>; counter-driven round orange numbers. */
.qmfb-prod__main ol {
  list-style: none;
  counter-reset: qstep;
  margin: 6px 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qmfb-prod__main ol li {
  counter-increment: qstep;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px 14px 16px;
  background: #fff;
  border: 1px solid var(--q-line);
  border-radius: var(--qp-radius-sm);
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.04);
  line-height: 1.55;
  color: #34373b;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.qmfb-prod__main ol li:hover {
  border-color: rgba(244, 124, 32, 0.4);
  box-shadow: 0 8px 22px rgba(244, 124, 32, 0.12);
  transform: translateY(-1px);
}
.qmfb-prod__main ol li::before {
  content: counter(qstep);
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--q-orange), var(--q-orange-d));
  color: #fff;
  font-family: var(--qp-font-head);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(244, 124, 32, 0.35);
}

/* Inline links inside main */
.qmfb-prod__main a {
  color: var(--q-orange-d);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 100, 26, 0.3);
  transition: border-color 0.2s ease;
}
.qmfb-prod__main a:hover {
  border-bottom-color: var(--q-orange-d);
}

/* =====================================================================
   PRODUCT — RIGHT: sticky Quick-Apply aside
   ===================================================================== */
.qmfb-prod__aside {
  position: sticky;
  top: 92px;
  align-self: start;
}

.qmfb-prod__apply {
  position: relative;
  overflow: hidden;
  border-radius: var(--qp-radius);
  background: #fff;
  border: 1px solid var(--q-line);
  box-shadow: var(--qp-shadow-lg);
}
/* gradient header band */
.qmfb-prod__apply::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--q-orange), var(--q-orange-d) 55%, var(--q-green));
}

.qmfb-prod__apply-inner {
  padding: 24px 24px 22px;
}

.qmfb-prod__apply h3,
.qmfb-prod__apply-title {
  font-family: var(--qp-font-head);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--q-ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.qmfb-prod__apply-sub {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--q-grey);
}

/* The big CTA — pairs with .qbtn .qbtn--primary .qbtn--lg from ds.css,
   but also self-sufficient if those classes are missing. */
.qmfb-prod__apply .qbtn,
.qmfb-prod__apply-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px 18px;
  border: none;
  border-radius: var(--qp-radius-sm);
  background: linear-gradient(135deg, var(--q-orange), var(--q-orange-d));
  color: #fff;
  font-family: var(--qp-font-head);
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(244, 124, 32, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.qmfb-prod__apply .qbtn:hover,
.qmfb-prod__apply-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(244, 124, 32, 0.42);
  filter: saturate(1.05);
}
.qmfb-prod__apply-cta svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* divider */
.qmfb-prod__apply-div {
  height: 1px;
  background: var(--q-line);
  margin: 20px 0 16px;
}

/* quick-contact rows */
.qmfb-prod__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 4px;
}
.qmfb-prod__contacts li {
  margin: 0;
  padding: 0 !important;
}
.qmfb-prod__contacts li::before {
  display: none !important;
}
.qmfb-prod__contact {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--q-ink);
  transition: background 0.18s ease;
}
.qmfb-prod__contact:hover {
  background: var(--q-orange-t);
}
.qmfb-prod__contact-ic {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--q-orange-t);
  color: var(--q-orange-d);
}
.qmfb-prod__contact-ic svg {
  width: 19px;
  height: 19px;
  fill: var(--q-orange-d);
}
.qmfb-prod__contact:nth-child(2) .qmfb-prod__contact-ic {
  background: var(--q-green-t);
  color: var(--q-green-d);
}
.qmfb-prod__contact:nth-child(2) .qmfb-prod__contact-ic svg {
  fill: var(--q-green-d);
}
.qmfb-prod__contact-tx {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.qmfb-prod__contact-tx b {
  font-family: var(--qp-font-head);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--q-ink);
}
.qmfb-prod__contact-tx span {
  font-size: 12px;
  color: var(--q-grey);
}

.qmfb-prod__apply .qbadge-sharia {
  margin-top: 18px;
}

/* =====================================================================
   PRODUCT — responsive
   ===================================================================== */
@media (max-width: 900px) {
  .qmfb-prod {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .qmfb-prod__aside {
    position: static;
    top: auto;
  }
  .qmfb-prod__main ul {
    grid-template-columns: 1fr;
    gap: 6px 0;
  }
}

/* =====================================================================
   2) BOARD / TEAM PAGE  —  scope: .qmfb-team
   ===================================================================== */
.qmfb-team {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 0 32px;
}

/* ---------- Intro / lead ---------- */
.qmfb-team__intro {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}
.qmfb-team__intro h2 {
  font-family: var(--qp-font-head);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--q-ink);
  margin: 0 0 14px;
}
.qmfb-team__intro p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--q-grey);
  margin: 0 0 16px;
}
.qmfb-team__intro .qbadge-sharia {
  margin-top: 4px;
}

/* ---------- Section heading helper ---------- */
.qmfb-team__h {
  font-family: var(--qp-font-head);
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--q-ink);
  text-align: center;
  margin: 8px 0 6px;
}
.qmfb-team__h-sub {
  text-align: center;
  color: var(--q-grey);
  font-size: 15px;
  margin: 0 auto 32px;
  max-width: 620px;
}

/* ---------- Directors grid ---------- */
.qmfb-team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
  margin: 0 0 64px;
}

/* ---------- Director card ---------- */
.qmember {
  position: relative;
  background: #fff;
  border: 1px solid var(--q-line);
  border-radius: var(--qp-radius);
  padding: 30px 22px 24px;
  text-align: center;
  box-shadow: var(--qp-shadow);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
/* thin orange top accent bar */
.qmember::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--q-orange), var(--q-orange-d) 60%, var(--q-green));
  transform: scaleX(0.4);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.qmember:hover {
  transform: translateY(-6px);
  box-shadow: var(--qp-shadow-hover);
  border-color: rgba(244, 124, 32, 0.35);
}
.qmember:hover::before {
  transform: scaleX(1);
}

/* avatar circle */
.qmember__avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--q-orange) 0%, var(--q-orange-d) 45%, var(--q-green) 100%);
  box-shadow: 0 8px 20px rgba(244, 124, 32, 0.28);
  overflow: hidden;
  position: relative;
}
.qmember__avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.qmember__initials {
  font-family: var(--qp-font-head);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.qmember__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.qmember__name {
  font-family: var(--qp-font-head);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--q-ink);
  letter-spacing: -0.01em;
  margin: 0 0 3px;
  line-height: 1.25;
}
.qmember__role {
  font-size: 13px;
  font-weight: 700;
  color: var(--q-orange-d);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

/* tag pill */
.qmember__tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--q-green-t);
  color: var(--q-green-d);
  border: 1px solid rgba(58, 169, 53, 0.25);
  font-family: var(--qp-font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}
.qmember__tag--orange {
  background: var(--q-orange-t);
  color: var(--q-orange-d);
  border-color: rgba(244, 124, 32, 0.25);
}

/* social icon row */
.qmember__social {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
}
.qmember__social a,
.qmember__social span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f5f6;
  color: var(--q-grey);
  border: 1px solid var(--q-line);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.qmember__social a svg,
.qmember__social span svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.qmember__social a:hover {
  background: var(--q-orange);
  color: #fff;
  border-color: var(--q-orange);
  transform: translateY(-2px);
}

/* =====================================================================
   TEAM — Board committees
   ===================================================================== */
.qmfb-team__committees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.qcommittee {
  position: relative;
  background: #fff;
  border: 1px solid var(--q-line);
  border-radius: var(--qp-radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--qp-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.qcommittee:hover {
  transform: translateY(-4px);
  box-shadow: var(--qp-shadow-lg);
}

/* committee header */
.qcommittee__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: linear-gradient(180deg, var(--q-orange-t), #fff);
  border-bottom: 2px solid rgba(244, 124, 32, 0.18);
}
.qcommittee__ic {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--q-orange), var(--q-orange-d));
  box-shadow: 0 4px 10px rgba(244, 124, 32, 0.3);
}
.qcommittee__ic svg {
  width: 19px;
  height: 19px;
  fill: #fff;
}
.qcommittee__title {
  font-family: var(--qp-font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--q-orange-d);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
}

/* committee member rows */
.qcommittee__members {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.qcommittee__members li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 22px;
  font-size: 14.5px;
  color: var(--q-ink);
  border-bottom: 1px solid #f1f2f4;
}
.qcommittee__members li:last-child {
  border-bottom: none;
}
.qcommittee__members li .qc-name {
  font-weight: 600;
}
.qcommittee__members li .qc-role {
  font-size: 12px;
  color: var(--q-grey);
  white-space: nowrap;
}

/* highlighted Chairman row */
.qcommittee__members li.is-chair,
.qcommittee__chair {
  background: var(--q-green-t);
}
.qcommittee__members li.is-chair .qc-name,
.qcommittee__chair .qc-name {
  font-weight: 800;
  color: var(--q-green-d);
}
.qcommittee__members li.is-chair .qc-role,
.qcommittee__chair .qc-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--q-green);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* =====================================================================
   TEAM — responsive
   ===================================================================== */
@media (max-width: 560px) {
  .qmfb-team__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .qmember {
    padding: 24px 14px 20px;
  }
  .qmember__avatar {
    width: 78px;
    height: 78px;
  }
  .qmember__initials {
    font-size: 1.6rem;
  }
}
@media (max-width: 380px) {
  .qmfb-team__grid {
    grid-template-columns: 1fr;
  }
}
