/* --- Layout robustness fixes (v7) --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
.grid2, .grid3, .grid4 { width: 100%; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid2 > *, .grid3 > *, .grid4 > * { min-width: 0; }
.card { overflow: hidden; }
.section__head, .section-head { flex-wrap: wrap; gap: 12px; }
.section__head > *, .section-head > * { min-width: 0; }
.section__head .btn, .section-head .btn { flex: 0 0 auto; }

/* Flow diagram responsiveness */
.flow-diagram { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.flow-line { flex: 1 1 60px; min-width: 40px; height: 2px; background: #e6ecf2; }
.flow-diagram--wide .flow-node { flex: 1 1 220px; min-width: 220px; }
@media (max-width: 900px){
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-diagram--wide .flow-node { flex: 1 1 240px; min-width: 240px; }
}
@media (max-width: 640px){
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .flow-line { display:none; }
  .flow-diagram--wide .flow-node { min-width: 0; width: 100%; }
}


/* CredEnd Enterprise UI Fix */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section-sm {
  padding: 36px 0;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e6ecf2;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(16,42,67,0.04);
  transition: all .2s ease;
}

.card:hover {
  border-color: #d4af37;
  box-shadow: 0 6px 20px rgba(16,42,67,0.08);
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

@media(max-width:900px){
  .grid2,.grid3{
    grid-template-columns:1fr;
  }
}

.btn {
  background: #0b1f3a;
  color: #fff;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn:hover {
  background: #0f2d57;
}

.btn--ghost {
  background: #fff;
  border: 1px solid #d4af37;
  color: #0b1f3a;
}

.h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
}

.h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.lead {
  font-size: 18px;
  color: #5a6b7d;
}

.note {
  background: #f7f9fc;
  border: 1px solid #e6ecf2;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: #5a6b7d;
}

.rc-card {
  border: 1px solid #e6ecf2;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fdfefe;
}

.rc-footer {
  border-top: 1px solid #e6ecf2;
  margin-top: 16px;
  padding-top: 14px;
}

