/* ==========================================================================
   BNB DigiCred: information sections
   All class names are prefixed "dc-" so they will not clash with site styles.
   ========================================================================== */

/* ---- 1. Design tokens -------------------------------------------------- */
:root {
  --dc-navy:   #252b63;
  --dc-red:    #e1251b;
  --dc-red-dk: #bf1a12;
  --dc-mist:   #f4f7fc;
  --dc-line:   #e3e7f1;
  --dc-text:   #2b3050;
  --dc-muted:  #5d6385;

  --dc-radius: 18px;
  --dc-shadow: 0 18px 40px -18px rgba(20, 26, 69, .35);
  --dc-font:   "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---- 2. Base (scoped to our sections only) ----------------------------- */
.dc-section,
.dc-section *,
.dc-section *::before,
.dc-section *::after {
  box-sizing: border-box;
}

.dc-section {
  padding: 92px 0;
  font-family: var(--dc-font);
  line-height: 1.6;
  color: var(--dc-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.dc-section img { display: block; max-width: 100%; }
/* :where() keeps this reset low-specificity so component rules below can override it */
.dc-section :where(h2, h3, p) { margin: 0; }

.dc-wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.dc-section :focus-visible {
  outline: 3px solid var(--dc-red);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- 3. Shared components ---------------------------------------------- */
.dc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dc-red);
}
.dc-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.dc-title {
  margin-top: 14px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--dc-navy);
}

.dc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  font: 600 .95rem var(--dc-font);
  color: #fff;
  text-decoration: none;
  background: var(--dc-red);
  box-shadow: 0 12px 26px -10px rgba(225, 37, 27, .75);
  transition: transform .2s, background .2s;
}
.dc-btn:hover { background: var(--dc-red-dk); transform: translateY(-2px); }

.dc-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--dc-navy);
  border-radius: 50%;
  background: #fff;
}
.dc-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--dc-red);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   SECTION 1: What is DigiCred
   ========================================================================== */
.dc-about__layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.dc-about__copy {
  margin-top: 16px;
  color: var(--dc-muted);
}

.dc-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 24px 0 28px;
  padding: 16px 18px;
  border-left: 4px solid var(--dc-red);
  border-radius: 0 12px 12px 0;
  background: var(--dc-mist);
  font-size: .92rem;
  font-weight: 500;
  color: var(--dc-navy);
}
.dc-note__icon { flex: none; margin-top: 2px; color: var(--dc-red); }

/* Laptop with the phone overlapping its lower-right corner */
.dc-devices {
  position: relative;
  padding: 30px 0 40px;
}
.dc-devices::before {               /* soft panel behind the devices */
  content: "";
  position: absolute;
  inset: 6% 4% 8%;
  border-radius: 32px;
  background:
    radial-gradient(circle at 70% 30%, rgba(225, 37, 27, .16), transparent 55%),
    var(--dc-mist);
}
.dc-devices__laptop { position: relative; width: 92%; }
.dc-devices__phone  {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  filter: drop-shadow(0 24px 30px rgba(20, 26, 69, .35));
}

/* ==========================================================================
   SECTION 2: Loans available on DigiCred
   ========================================================================== */
.dc-products__head { text-align: center; }
.dc-products__lead {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--dc-muted);
}

/* Tabs */
.dc-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}
.dc-tab {
  padding: 12px 24px;
  border: 1.5px solid var(--dc-line);
  border-radius: 99px;
  background: #fff;
  font: 600 .92rem var(--dc-font);
  color: var(--dc-navy);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.dc-tab:hover { border-color: var(--dc-red); color: var(--dc-red); }
.dc-tab[aria-selected="true"] {
  border-color: var(--dc-navy);
  background: var(--dc-navy);
  color: #fff;
}

/* Panels and grids */
.dc-panel { margin-top: 36px; }
.dc-panel[hidden] { display: none; }
.dc-panel--narrow { max-width: 860px; margin-inline: auto; }

.dc-grid { display: grid; gap: 20px; }
.dc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.dc-grid--3 { grid-template-columns: repeat(3, 1fr); }

.dc-product {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius);
  background: #fff;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.dc-product:hover {
  border-color: var(--dc-red);
  box-shadow: var(--dc-shadow);
  transform: translateY(-4px);
}
.dc-product h3 { font-size: 1.02rem; line-height: 1.3; color: var(--dc-navy); }
.dc-product p  { margin-top: 4px; font-size: .86rem; color: var(--dc-muted); }

.dc-products__cta { margin-top: 44px; text-align: center; }
.dc-products__cta small {
  display: block;
  margin-top: 12px;
  font-size: .85rem;
  color: var(--dc-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .dc-about__layout { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .dc-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .dc-section { padding: 66px 0; }
  .dc-grid--2,
  .dc-grid--3 { grid-template-columns: 1fr; }
  .dc-tab { flex: 1 1 40%; padding: 12px 10px; text-align: center; }
  .dc-about .dc-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .dc-btn, .dc-product { transition: none; }
  .dc-btn:hover, .dc-product:hover { transform: none; }
}
