/* Programme Helplines page */

.hl-page {
  background: #f7f8fb;
}

.hl-bar {
  background: var(--brand-primary, #173058);
  color: #fff !important;
  border-bottom: 3px solid var(--brand-accent, #aa222e);
}

.hl-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.25rem;
  min-height: 3.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.hl-bar__mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-accent, #aa222e);
  box-shadow: 0 0 0 4px rgba(170, 34, 46, 0.25);
  flex: 0 0 auto;
}

.hl-bar__text {
  margin: 0;
  color: #ffffff !important;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw + 0.7rem, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hl-bar__icons {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #ffffff;
  font-size: 1.05rem;
}

.hl-section {
  padding: 2.5rem 0 2rem;
}

.hl-section__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.hl-section__title {
  margin: 0 0 0.65rem;
  color: var(--brand-primary, #173058);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.5vw + 0.85rem, 1.95rem);
  font-weight: 750;
}

.hl-section__note {
  margin: 0;
  color: var(--text-muted, #64748b);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hl-blocks {
  display: grid;
  gap: 1.75rem;
}

.hl-block__title {
  margin: 0 0 0.75rem;
  color: var(--brand-primary, #173058);
  font-size: 1.15rem;
  font-weight: 750;
}

.hl-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border, #e5e9f0);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px -22px rgba(23, 48, 88, 0.4);
}

.hl-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  min-width: 720px;
}

.hl-table th,
.hl-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border, #e5e9f0);
  font-size: 0.92rem;
  line-height: 1.45;
}

.hl-table thead th {
  background: var(--brand-primary, #173058);
  color: #ffffff !important;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 0;
}

.hl-table tbody tr:nth-child(even) {
  background: #f7f8fb;
}

.hl-table tbody tr:last-child td {
  border-bottom: 0;
}

.hl-table td {
  color: var(--brand-primary, #173058);
}

.hl-cell__icon {
  display: none;
}

.hl-num {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  background: rgba(23, 48, 88, 0.06);
  color: var(--text-muted, #64748b);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.hl-table a {
  color: var(--brand-accent, #aa222e);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: normal;
}

.hl-table a:hover {
  text-decoration: underline;
}

.hl-cta {
  padding: 2.5rem 0;
  background:
    linear-gradient(120deg, rgba(15, 32, 58, 0.94), rgba(23, 48, 88, 0.88)),
    url("../images/optimized/asbuilding.jpg") center / cover no-repeat;
  color: #fff;
}

.hl-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
}

.hl-cta h2 {
  margin: 0 0 0.4rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.5vw + 0.8rem, 1.85rem);
  font-weight: 750;
}

.hl-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}

.hl-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 991.98px) {
  .hl-section {
    padding: 1.5rem 0 5.5rem;
  }

  .hl-block__title {
    font-size: 1.2rem;
    margin-bottom: 0.9rem;
  }

  .hl-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .hl-table {
    min-width: 0;
  }

  .hl-table thead {
    display: none;
  }

  .hl-table,
  .hl-table tbody,
  .hl-table tr,
  .hl-table td {
    display: block;
    width: 100%;
  }

  .hl-table tbody {
    display: grid;
    gap: 0.85rem;
  }

  .hl-table tr,
  .hl-table tbody tr:nth-child(even) {
    background: #fff;
  }

  .hl-table tr {
    padding: 1rem 1rem 0.85rem;
    border: 1px solid var(--border, #e5e9f0);
    border-radius: 16px;
    box-shadow: 0 10px 24px -18px rgba(23, 48, 88, 0.45);
  }

  .hl-table tr:last-child {
    border-bottom: 1px solid var(--border, #e5e9f0);
  }

  .hl-table td {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0;
    border-bottom: 0;
    min-width: 0;
  }

  .hl-table td::before {
    content: none;
  }

  .hl-cell--institute {
    font-size: 1.02rem;
    font-weight: 750;
    line-height: 1.3;
    color: var(--brand-primary, #173058);
  }

  .hl-cell--programme {
    margin: 0.2rem 0 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border, #e5e9f0);
    color: var(--text-muted, #64748b);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
  }

  .hl-table td.hl-cell--phone,
  .hl-table td.hl-cell--email {
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.45rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    background: #f7f8fb;
    min-height: 44px;
  }

  .hl-table td.hl-cell--phone .hl-cell__icon,
  .hl-table td.hl-cell--email .hl-cell__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.7rem;
    height: 1.7rem;
    margin-top: 0;
    border-radius: 999px;
    background: rgba(23, 48, 88, 0.08);
    color: var(--brand-primary, #173058);
    font-size: 0.78rem;
  }

  .hl-table td.hl-cell--email .hl-cell__icon {
    color: var(--brand-accent, #aa222e);
  }

  .hl-table td.hl-cell--phone .hl-num,
  .hl-table td.hl-cell--email a {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }

  .hl-table td.hl-cell--phone .hl-num {
    display: block;
    padding: 0;
    background: transparent;
    color: var(--brand-primary, #173058);
    font-size: 0.95rem;
  }

  .hl-table td.hl-cell--email a,
  .hl-table a[href^="mailto:"] {
    display: block;
    color: var(--brand-accent, #aa222e);
    font-size: 0.92rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: none;
  }

  .hl-cta__actions {
    width: 100%;
  }

  .hl-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hl-cta__actions .btn[href^="mailto:"] {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
  }
}
