
/* ==========================================
   JKR - ERM LIST CARDS
   ========================================== */

.jkr-erm-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Individual card */
.jkr-erm-list > li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 72px;
  margin: 0;
  padding: 12px;
  background-color: #ffffff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  box-sizing: border-box;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

/* Icon on the left */
.jkr-erm-list > li::before {
  content: "";
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  background-image: url("../images/law-icon.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Text */
.jkr-erm-list > li > p {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #243447;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: break-word;
}

/* Hover effect */
.jkr-erm-list > li:hover {
  background-color: #f5f9ff;
  border-color: #7da9dc;
  box-shadow: 0 4px 12px rgba(0, 45, 100, 0.08);
  transform: translateY(-2px);
}

/* Tablet */
@media (max-width: 1199px) {
  .jkr-erm-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Small tablet / large mobile */
@media (max-width: 767px) {
  .jkr-erm-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .jkr-erm-list > li {
    min-height: 64px;
    padding: 10px;
  }

  .jkr-erm-list > li > p {
    font-size: 13px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .jkr-erm-list {
    grid-template-columns: 1fr;
  }

  .jkr-erm-list > li {
    min-height: 60px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .jkr-erm-list > li {
    transition: none;
  }

  .jkr-erm-list > li:hover {
    transform: none;
  }
}


/* ==========================================
   JKR - MATLAMAT INFORMATION BOX
   ========================================== */

.jkr-matlamat-box {
  width: 100%;
  padding: 16px 20px;
  margin: 16px 0;
  background-color: #f3f5f8;
  border-radius: 9px;
  box-sizing: border-box;
}

/* Heading */
.jkr-matlamat-box > h3 {
  margin: 0 0 12px;
  padding: 0;
  color: #14233b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  text-transform: capitalize;
}

/* Description */
.jkr-matlamat-box > p {
  margin: 0;
  padding: 0;
  color: #14233b;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

/* Mobile responsive */
@media (max-width: 767px) {
  .jkr-matlamat-box {
    padding: 14px 16px;
    border-radius: 8px;
  }

  .jkr-matlamat-box > h3 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .jkr-matlamat-box > p {
    font-size: 13px;
    line-height: 1.6;
  }
}



/* ==========================================
   JKR - TANAH CATEGORY BOXES
   ========================================== */

.jkr-tanah-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Individual box */
.jkr-tanah-list > li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 12px 10px;
  background-color: #f8f9fa;
  border: 1px solid #dfe3e8;
  border-radius: 6px;
  box-sizing: border-box;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

/* Centered text */
.jkr-tanah-list > li > p {
  margin: 0;
  padding: 0;
  color: #14233b;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

/* Hover effect */
.jkr-tanah-list > li:hover {
  background-color: #eef3f9;
  border-color: #a8c1df;
}

/* Tablet */
@media (max-width: 767px) {
  .jkr-tanah-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .jkr-tanah-list {
    grid-template-columns: 1fr;
  }
}
