/* Regulations Page - Advanced Premium Redesign */
.regulations-page {
  padding: 24px 0 70px;
  background:
    radial-gradient(circle at 10% 8%, rgba(0, 212, 255, 0.09), transparent 30%),
    radial-gradient(circle at 90% 14%, rgba(59, 130, 246, 0.08), transparent 28%),
    linear-gradient(180deg, #f6fbff 0%, #ffffff 32%);
}

.regulations-hero {
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 45%, #0b5a7a 100%);
  color: #fff;
  text-align: center;
  padding: 96px 28px;
  margin-bottom: 56px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(2, 52, 82, 0.24);
}

.regulations-hero::before,
.regulations-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.regulations-hero::before {
  width: 420px;
  height: 420px;
  top: -170px;
  left: -120px;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(8px);
}

.regulations-hero::after {
  width: 340px;
  height: 340px;
  bottom: -130px;
  right: -80px;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(10px);
}

.regulations-hero > * {
  position: relative;
  z-index: 1;
}

.regulations-header {
  margin-bottom: 24px;
  text-align: center;
}

.page-title {
  font-size: clamp(2.1rem, 3.9vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.1;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.page-subtitle {
  font-size: 1.08rem;
  color: #334155;
  line-height: 1.82;
  margin: 0 auto;
  max-width: 920px;
}

.regulations-toc {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d8ebff;
  border-radius: 18px;
  padding: 26px;
  margin: 34px 0 28px;
  box-shadow: 0 16px 38px rgba(2, 52, 82, 0.09);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.toc-title {
  font-size: 1.5rem;
  margin: 0 0 16px;
  color: #0f172a;
  font-weight: 800;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 22px;
}

.toc-list {
  margin: 0;
  padding-left: 18px;
}

.toc-list li {
  margin: 8px 0;
}

.toc-list a {
  color: #0a5f86;
  text-decoration: none;
  font-weight: 700;
  position: relative;
  transition: color 0.2s ease;
}

.toc-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: #0ea5e9;
  transition: width 0.2s ease;
}

.toc-list a:hover {
  color: #0b84b7;
}

.toc-list a:hover::after {
  width: 100%;
}

.regulations-section {
  background: #ffffff;
  border: 1px solid #e6eef7;
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.regulations-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.09);
}

.section-title {
  font-size: 1.55rem;
  margin: 0 0 14px;
  color: #0b1324;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.subsection-title {
  font-size: 1.12rem;
  margin: 18px 0 8px;
  color: #1d4ed8;
  font-weight: 700;
}

.section-content p {
  color: #334155;
  line-height: 1.85;
  margin: 0 0 14px;
}

.info-list {
  padding-left: 20px;
  color: #334155;
  margin: 0;
}

.info-list li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.info-box,
.warning-box {
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.info-box {
  background: #f0f9ff;
  border: 1px solid #bfe7ff;
}

.warning-box {
  background: #fff8ef;
  border: 1px solid #fed7aa;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.country-card {
  background: #f8fbff;
  border: 1px solid #e1ebf8;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.country-card:hover {
  transform: translateY(-2px);
  border-color: #b8ddff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09);
}

.country-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 10px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  border: 1px solid #e7eef9;
  background: #fff;
}

.country-card h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #0f172a;
  font-weight: 800;
}

.country-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #475569;
}

.arabic-block {
  direction: rtl;
  text-align: right;
  background: #f8fbff;
  border-right: 4px solid #0ea5e9;
  padding: 14px;
  border-radius: 10px;
  margin: 12px 0;
}

.last-updated {
  color: #64748b;
  text-align: center;
  margin-top: 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (max-width: 1100px) {
  .toc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .country-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .regulations-page {
    padding-top: 8px;
  }

  .regulations-hero {
    padding: 64px 18px;
    margin-bottom: 32px;
    border-radius: 16px;
  }

  .regulations-toc,
  .regulations-section {
    padding: 18px;
    border-radius: 12px;
  }

  .toc-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.32rem;
  }

  .page-subtitle {
    font-size: 1rem;
    line-height: 1.72;
  }
}
