/* ================================================================
   BEYOND LINCS — Allied Health Page
   ================================================================ */

.ah-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ah-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.ah-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.ah-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.18;
}

.ah-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.ah-band {
  background: var(--soft);
}

.ah-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 46px;
  align-items: start;
}

.ah-list {
  display: grid;
  gap: 12px;
}

.ah-ndis-copy {
  max-width: 620px;
  margin-bottom: 26px;
}

.ah-ndis-copy h2 {
  max-width: 520px;
}

.ah-ndis-copy p {
  max-width: 620px;
  text-align: left;
}

.ah-ndis-box {
  max-width: 620px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #f2f8f7 100%);
  border: 1px solid #d9e8e6;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.ah-ndis-box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--teal), var(--gold));
}

.ah-ndis-box p {
  position: relative;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.ah-ndis-box p + p {
  margin-top: 14px;
}

.ah-ndis-note {
  padding-top: 14px;
  border-top: 1px solid #d9e8e6;
  color: var(--deep);
  font-weight: 700;
}

.ah-item {
  background: var(--white);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 15px;
  transition: border-color var(--transition), transform var(--transition);
}

.ah-item:hover {
  border-left-color: var(--gold);
  transform: translateX(4px);
}

.ah-panel {
  background: var(--deep);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.ah-panel h2 {
  font-size: 30px;
  line-height: 1.08;
  margin: 0 0 10px;
}

.ah-panel p {
  color: #c8d7d9;
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.5;
}

/* --- Allied Health line items --- */
.line-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.line-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.line-item:hover {
  box-shadow: var(--shadow);
}

.line-item .line-code {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--teal-light);
  color: var(--teal);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  transition: background-color var(--transition);
}

.line-item .line-code:hover {
  background: #d4eae8;
}

.line-item h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.18;
}

.line-item p {
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* --- Allied Health responsive --- */
@media (max-width: 880px) {
  .ah-grid,
  .ah-split,
  .line-item-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ah-card {
    padding: 22px 18px;
  }

  .ah-panel {
    padding: 24px 20px;
  }

  .ah-split {
    gap: 28px;
  }

  .line-item {
    padding: 20px 18px;
  }
}
