body.page-laws {
  background: #fbfaf5;
}

/*.laws-main {
  padding-top: 50px;
}*/

.laws-section.bg-white {
  background: #fff;
}

.laws-section.bg-light {
  background: #fbfaf5;
}

.laws-section.bg-dark {
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.laws-eligibility>p {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
  font-size: 16px;
}

.eligibility-block {
  margin-bottom: 30px;
}

.eligibility-block h4 {
  color: var(--teal);
  font-size: 20px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 10px;
}

.eligibility-block>p {
  color: #444;
  font-size: 18px;
  line-height: 1.6;
  padding-left: 10px;
}

.laws-section>p.laws-subtitle {
  text-align: center;
  margin-bottom: 40px;
  color: #666;
  font-size: 18px;
}

p.laws-subtitle-wide {
  text-align: center;
  margin-bottom: 40px;
  color: #666;
  font-size: 18px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.table-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.laws-table thead tr {
  background: var(--teal) !important;
  color: #fff;
}

.laws-table th {
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 600;
}

.laws-table th.text-left {
  text-align: left;
}

.laws-table th.text-center {
  text-align: center;
}

.laws-table tbody tr.bg-white {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
}

.laws-table tbody tr.bg-light {
  background: #fafafa;
  border-bottom: 1px solid #eaeaea;
}

.laws-table tbody tr.bg-white-last {
  background: #fff;
}

.laws-table td {
  padding: 20px;
}

.laws-table td.col-1 {
  font-weight: bold;
  color: var(--ink);
}

.laws-table td.col-2 {
  text-align: center;
  color: var(--teal);
  font-weight: bold;
  font-size: 20px;
}

.laws-table td.col-3 {
  text-align: center;
  color: #e74c3c;
  font-weight: bold;
  font-size: 20px;
}

.laws-table td.col-4 {
  color: #555;
}

.laws-section>p.laws-process-subtitle {
  text-align: center;
  margin-bottom: 50px;
  color: #666;
  font-size: 18px;
}

.laws-section.bg-dark h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.laws-section.bg-dark p {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.laws-section.bg-dark .button {
  font-size: 18px;
  padding: 15px 40px;
}
.laws-hero {
  padding: 180px 5% 100px;
  background: linear-gradient(135deg, #fdfdfd 0%, #f0f5f4 100%);
  text-align: center;
  border-bottom: 1px solid #eaeaea;
}

.laws-hero h1 {
  font-size: clamp(30px, 5vw, 56px);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
  white-space: nowrap;
}

.laws-hero p {
  font-size: 16px;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.laws-section {
  padding: 100px 5%;
}

.laws-section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 60px;
  color: var(--ink);
}

.laws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.laws-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.laws-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.laws-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 153, 136, 0.1);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.laws-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--ink);
}

.laws-card p {
  color: #666;
  line-height: 1.7;
}

.laws-highlight {
  border: 2px solid var(--teal);
  position: relative;
}

.laws-highlight::before {
  content: "推薦";
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
}

.laws-process {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  position: relative;
}

.laws-process::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: #eaeaea;
  z-index: 1;
}

.laws-step {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 200px;
}

.laws-step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--teal);
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.laws-step:hover .laws-step-num {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(0, 153, 136, 0.1);
}

.laws-step h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--ink);
  text-align: center;
}

.laws-step p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  text-align: left;
}

.laws-eligibility {
  background: #fff;
  border-radius: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding: 50px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid #eaeaea;
}

.laws-eligibility ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.laws-eligibility li {
  display: flex;
  align-items: center;
  font-size: 18px;
  color: #444;
}

.laws-eligibility li svg {
  color: var(--teal);
  margin-right: 12px;
  flex-shrink: 0;
}

.laws-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: none;
}

.laws-table tbody tr {
  border: 2px solid #eaeaea;
}

.laws-table th,
.laws-table td {
  border: none;
}

@media (max-width: 1024px) {
  .laws-hero {
    padding: 60px 20px !important;
  }

  .laws-section {
    padding: 50px 20px !important;
  }

  .laws-eligibility,
  .laws-card {
    padding: 30px 20px !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .laws-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
	
	.laws-hero h1{
		    font-size: 1.65rem;
	}
	
  .laws-process {
    flex-direction: column;
    align-items: center;
    padding-left: 0;
  }

  .laws-process::before {
    top: 0;
    bottom: 0;
    left: 30px;
    transform: translateX(-50%);
    right: auto;
    width: 2px;
    height: 100%;
  }

  .laws-step {
    display: flex;
    width: 100%;
    text-align: left;
    margin-bottom: 40px;
    flex-direction: row !important;
    align-items: flex-start !important;
  }

  .laws-step-num {
    margin: 0 24px 0 0 !important;
    flex-shrink: 0;
  }

  .laws-eligibility ul {
    grid-template-columns: 1fr;
  }

  .laws-eligibility {
    padding: 30px;
  }

  .laws-step h4 {
    text-align: left !important;
  }

  .laws-table,
  .laws-table thead,
  .laws-table tbody {
    border: none !important;
    display: block;
    width: 100%;
  }

  .laws-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .laws-table tr {
    margin-bottom: 20px;
    border: 2px solid #eaeaea;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    display: block;
  }

  .laws-table td {
    border: none !important;
    border-bottom: 1px solid #eee !important;
    padding: 15px !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    text-align: right !important;
    gap: 15px;
  }

  .laws-table td:last-child {
    border-bottom: 0 !important;
  }

  .laws-table td:before {
    white-space: normal;
    text-align: left;
    font-weight: bold;
    color: var(--teal);
    flex-shrink: 0;
  }

  .laws-table td:nth-of-type(1):before {
    content: "福利身分別";
  }

  .laws-table td:nth-of-type(2):before {
    content: "最高補助比例";
  }

  .laws-table td:nth-of-type(3):before {
    content: "自付額比例";
  }

  .laws-table td:nth-of-type(4):before {
    content: "說明範例(以月租金 1,000 元為例)";
  }

  .laws-table td:nth-of-type(4) {
    flex-direction: column !important;
    align-items: flex-start;
    text-align: left !important;
  }

  .laws-table td:nth-of-type(4):before {
    margin-bottom: 8px;
  }
}