/* ===============================
   FINANCIAL RULES – ENHANCED VISUAL
   =============================== */

main {
  width: 100%;
}

/* Scroll container */
.scroll-area {
  width: 100%;
  padding: 40px 48px 80px;
  box-sizing: border-box;
}

/* Grid */
.rules-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* ===============================
   RULE TILE
   =============================== */

.rule-tile {
  position: relative; /* REQUIRED for blue line */
  background: linear-gradient(180deg, #020617 0%, #020617cc 100%);
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 22px 24px 22px 28px; /* space for line */
  box-shadow:
    inset 0 0 0 1px rgba(56, 189, 248, 0.03),
    0 12px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

/* Hover */
.rule-tile:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px rgba(56, 189, 248, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.6);
}

/* ===============================
   FADED BLUE ACCENT LINE (KEY PART)
   =============================== */

.rule-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(
    180deg,
    rgba(56, 189, 248, 0.0),
    rgba(56, 189, 248, 0.9),
    rgba(56, 189, 248, 0.0)
  );
}

/* ===============================
   HEADINGS
   =============================== */

.rule-tile h2 {
  color: #38bdf8;
  margin-bottom: 14px;
  font-size: 1.1rem;
}

/* ===============================
   CONTENT
   =============================== */

.rule-tile ul {
  padding-left: 18px;
}

.rule-tile li,
.rule-tile p {
  color: #e5e7eb;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Nested lists */
.rule-tile ul ul {
  margin-top: 6px;
}

/* ===============================
   FULL WIDTH TILE (If used)
   =============================== */

.rule-tile.full-width {
  grid-column: 1 / -1;
  padding: 32px 32px 32px 36px;
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.12),
    rgba(2, 6, 23, 0.95)
  );
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* Glow title (optional usage) */
.glow-title {
  color: #7dd3fc;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
  margin-bottom: 16px;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 768px) {
  .scroll-area {
    padding: 28px 20px 60px;
  }
}
