/* =========================
   RULES PAGE
========================= */

.rules-page {
  max-width: 900px;
}

/* HERO / COVER */
.rules-hero {
  width: 100%;
  height: 400px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 40px;
  position: relative;
}

.rules-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* dark fade kao GitBook */
.rules-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.30)
  );
}

/* HEADER */
.rules-header {
  max-width: 720px;
}

.rules-label {
  display: inline-block;
  color: #e67e22;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 8px;
}

.rules-header h1 {
  font-size: 36px;
  margin: 8px 0 16px;
}

.rules-intro {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}

/* CONTENT */
.rules-content {
  margin-top: 30px;
  max-width: 720px;
}

.rules-content ul {
  padding-left: 20px;
}

.rules-content li {
  margin-bottom: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
}

/* PREVIOUS / NEXT */
.rules-nav {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 720px;
}

.rules-nav a {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  color: #fff;
  transition: all .25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rules-nav a:hover {
  border-color: #e67e22;
  background: rgba(230,126,34,0.08);
}

.rules-nav .next {
  justify-content: flex-end;
}

/* LAST UPDATED */
.rules-updated {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .rules-hero {
    height: 200px;
  }

  .rules-header h1 {
    font-size: 28px;
  }

  .rules-nav {
    grid-template-columns: 1fr;
  }

  .rules-nav a {
    justify-content: center;
  }
}

