/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BODY ===== */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(120deg, #eef2ff, #f0fdf4);
  color: #0f172a;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1150px;
  margin: auto;
  padding: 20px;
}

/* ===== TITLE ===== */
.law-title {
  text-align: center;
  font-size: 34px;
  margin-bottom: 10px;
  font-weight: 700;
}

/* ===== INTRO ===== */
.law-intro {
  text-align: center;
  color: #475569;
  margin-bottom: 25px;
}

/* ===== INFO BOX ===== */
.law-info-box {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  padding: 22px;
  border-radius: 14px;
  margin-bottom: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #3b82f6;
}

/* ===== SECTION TITLE ===== */
.section-title {
  margin: 30px 0 15px;
  font-size: 22px;
  font-weight: 600;
  color: #1e293b;
}

/* ===== GRID ===== */
.law-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

/* ===== CARD BASE ===== */
.law-card {
  padding: 24px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: 0.35s;
}

/* glow */
.law-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  opacity: 0;
  transition: 0.3s;
}

.law-card:hover {
  transform: translateY(-10px) scale(1.03);
}

.law-card:hover::before {
  opacity: 1;
}

/* ===== CATEGORY COLORS ===== */

/* 🔴 Criminal */
.criminal {
  background: linear-gradient(135deg, #ff3b3b, #dc2626);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35);
}

/* 🔵 Civil */
.civil {
  background: linear-gradient(135deg, #1e90ff, #1d4ed8);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}

/* 🟠 Family */
.family {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.35);
}

/* ⚫ Business */
.business {
  background: linear-gradient(135deg, #111827, #000000);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* ===== CARD TEXT ===== */
.law-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.law-card p {
  font-size: 14px;
  opacity: 0.9;
}

/* ===== LIST BOX ===== */
.law-list {
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  padding: 18px;
  border-radius: 14px;
  list-style: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-left: 5px solid #10b981;
  margin-bottom: 20px;
}

.law-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.law-list li:last-child {
  border-bottom: none;
}

.law-list a {
  text-decoration: none;
  color: #2563eb;
  font-weight: 500;
}

.law-list a:hover {
  text-decoration: underline;
}




/* ===== BUTTON ===== */
.law-btn-wrap {
  text-align: center;
  margin-top: 35px;
}

.law-btn {
  display: inline-block;
  padding: 13px 24px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  transition: 0.3s;
}

.law-btn:hover {
  transform: translateY(-2px);
}


/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .law-title {
    font-size: 26px;
  }

  .law-card:active {
    transform: scale(0.98);
  }
}
