/* =========================
   RULES PAGE
   dùng chung home.css
========================= */

.rules-hero {
  min-height: 520px;
  position: relative;
  padding: 72px 42px 64px;
  border-bottom: 1px solid rgba(62, 157, 255, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rules-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(2, 7, 17, 0.98) 0%,
      rgba(2, 7, 17, 0.86) 32%,
      rgba(2, 7, 17, 0.48) 62%,
      rgba(2, 7, 17, 0.16) 100%
    ),
    radial-gradient(circle at 45% 58%, rgba(0, 210, 255, 0.18), transparent 30%);
  z-index: 2;
  pointer-events: none;
}

.rules-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/home.png") center center / cover no-repeat;
  opacity: 0.48;
  z-index: 1;
}

.rules-hero > * {
  position: relative;
  z-index: 3;
}

.rules-hero h1 {
  margin-top: 26px;
  max-width: 900px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.13;
  font-weight: 900;
  letter-spacing: -1.5px;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.8);
}

.rules-hero h1 span {
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rules-hero p {
  max-width: 650px;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.75;
  color: #edf5ff;
}

/* SECTION */

.rules-section {
  padding: 38px 40px 10px;
}

.rules-section h2,
.punishment-section h2 {
  margin-top: 10px;
  text-align: center;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.rules-section span{
    text-align: center;
    display: block;
    padding: 20px 0;
}

/* GRID */

.rules-grid {
  margin: 24px auto 10px;
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* CARD */

.rule-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(7, 20, 38, 0.92), rgba(4, 13, 28, 0.92));
  border: 1px solid rgba(54, 152, 255, 0.45);
  box-shadow: inset 0 0 26px rgba(0, 153, 255, 0.06);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.rule-card:hover {
  transform: translateY(-6px);
  border-color: rgba(32, 227, 255, 0.85);
  box-shadow:
    0 0 30px rgba(0, 153, 255, 0.22),
    0 20px 40px rgba(0, 0, 0, 0.25),
    inset 0 0 26px rgba(0, 153, 255, 0.08);
}

.rule-icon {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  display: grid;
  place-items: center;
  font-size: 42px;
  border-radius: 20px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(32, 227, 255, 0.12);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.04);
}

.rule-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 900;
  color: var(--cyan);
}

.rule-card p {
  color: #e1eaf8;
  line-height: 1.65;
  font-size: 15.5px;
}

/* PUNISHMENT */

.punishment-section {
  padding: 38px 40px 70px;
}

.punishment-box {
  margin: 24px auto 0;
  width: min(900px, 100%);
  padding: 30px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(7, 20, 38, 0.92), rgba(4, 13, 28, 0.92));
  border: 1px solid rgba(54, 152, 255, 0.45);
  box-shadow: inset 0 0 26px rgba(0, 153, 255, 0.06);
}

.punishment-box p {
  color: #e1eaf8;
  line-height: 1.9;
  font-size: 16px;
}

.punishment-box strong {
  color: var(--cyan);
}

/* MOBILE */

@media (max-width: 1050px) {
  .rules-hero {
    min-height: 580px;
    padding: 42px 22px;
  }

  .rules-hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(2, 7, 17, 0.96),
        rgba(2, 7, 17, 0.72),
        rgba(2, 7, 17, 0.96)
      ),
      radial-gradient(circle at 45% 45%, rgba(0, 210, 255, 0.16), transparent 30%);
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .rules-section,
  .punishment-section {
    padding-left: 22px;
    padding-right: 22px;
  }
}