/* =========================================================
   Page: قوانین و مقررات طعم بندر
   File suggestion: assets/css/modules/rules.css
   ========================================================= */

.tb-rules-page {
  background:
    radial-gradient(circle at 10% 10%, rgba(34, 197, 94, 0.16), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(239, 68, 68, 0.12), transparent 26%),
    var(--bg);
}

.tb-rules-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.tb-rules-breadcrumb a {
  color: var(--ink);
}

.tb-rules-hero__box {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 18px;
  padding: clamp(18px, 3vw, 34px);
  overflow: hidden;
  position: relative;
}

.tb-rules-hero__box::before {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.13);
  pointer-events: none;
}

.tb-rules-hero__content {
  position: relative;
  z-index: 1;
}

.tb-rules-hero__content .lead {
  max-width: 760px;
}

.tb-rules-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tb-rules-summary {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.tb-rules-summary__item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r16);
  background: rgba(255, 255, 255, 0.7);
}

.tb-rules-summary__item strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 950;
}

.tb-rules-summary__item strong i {
  color: var(--teal2);
  font-size: 15px;
}
.tb-rules-summary__item span {
  color: var(--muted);
  font-weight: 750;
  font-size: 14px;
}

.tb-rules-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.tb-rules-sidebar {
  position: sticky;
  top: 100px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.tb-rules-sidebar strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-weight: 950;
}

.tb-rules-sidebar strong i {
  color: var(--brand2);
}

.tb-rules-sidebar a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 850;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.tb-rules-sidebar a i {
  width: 18px;
  text-align: center;
  color: var(--teal2);
  font-size: 14px;
}

.tb-rules-sidebar a:hover {
  background: rgba(34, 197, 94, 0.1);
  color: var(--ink);
  transform: translateX(-2px);
}

.tb-rules-article {
  padding: clamp(18px, 3vw, 34px);
}

.tb-rules-section {
  position: relative;
  padding: 0 0 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 110px;
}

.tb-rules-section:last-of-type {
  border-bottom: 0;
}

.tb-rules-section p,
.tb-rules-note p {
  margin: 10px 0 0;
  color: #244b35;
  font-weight: 650;
  line-height: 2.05;
}

.tb-rules-section a {
  color: var(--teal2);
  font-weight: 950;
  border-bottom: 1px dashed rgba(22, 163, 74, 0.45);
}

.tb-rules-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.12), rgba(34, 197, 94, 0.1));
  color: var(--brand2);
  border: 1px solid rgba(239, 68, 68, 0.18);
  box-shadow: 0 10px 24px rgba(5, 46, 27, 0.08);
  font-size: 18px;
}

.tb-rules-num i {
  line-height: 1;
}

.tb-rules-note {
  padding: 18px;
  border-radius: var(--r20);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(239, 68, 68, 0.08));
  border: 1px solid var(--border);
}

@media (max-width: 980px) {
  .tb-rules-hero__box,
  .tb-rules-layout {
    grid-template-columns: 1fr;
  }

  .tb-rules-sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
  }

  .tb-rules-sidebar strong {
    display: none;
  }

  .tb-rules-sidebar a {
    flex: 0 0 auto;
  }
}

@media (max-width: 520px) {
  .tb-rules-hero__box,
  .tb-rules-article {
    padding: 16px;
  }

  .tb-rules-actions .btn {
    width: 100%;
  }

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

  .tb-rules-section p,
  .tb-rules-note p {
    font-size: 14px;
  }
}

.tb-rules-actions .btn i {
  font-size: 15px;
}

.tb-rules-note .tb-rules-num {
  background: rgba(34, 197, 94, 0.12);
  color: var(--teal2);
  border-color: rgba(34, 197, 94, 0.22);
}

@media (max-width: 980px) {
  .tb-rules-sidebar {
    padding: 12px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .tb-rules-sidebar a {
    min-width: max-content;
  }
}