/* PHP site supplements on top of migrated main.css */
.home-hero {
  min-height: 560px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(18, 103, 172, 0.82), rgba(18, 103, 172, 0.35)),
    var(--hero-image, none) center / cover;
}
.home-hero h1 { font-size: clamp(40px, 6vw, 64px); margin: 12px 0 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.eyebrow { color: var(--teal); font-weight: 800; }
.home-about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.home-about img { width: 100%; border-radius: 0; object-fit: cover; max-height: 420px; }
.process-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.process-card { background: #fff; border: 1px solid var(--line); padding: 18px; min-height: 160px; }
.process-card span { color: var(--teal); font-weight: 900; }
.category-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.category-chip { background: #fff; border: 1px solid var(--line); padding: 10px 14px; }
.sub-nav { background: #fff; border-bottom: 1px solid var(--line); }
.sub-nav .container { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 0; }
.sub-nav a.active { color: var(--teal); font-weight: 800; }
.content-card { background: #fff; border: 1px solid var(--line); padding: 28px; }
.text-link { color: var(--teal); font-weight: 800; }
.nav-item.active > a,
.main-nav a.active { color: var(--teal); font-weight: 800; }
.header-phone { color: var(--blue); font-weight: 800; white-space: nowrap; }
.site-logo-image {
  display: block;
  height: 54px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.news-side { display: grid; gap: 12px; }
.side-link { display: grid; gap: 4px; padding: 14px; background: #fff; border: 1px solid var(--line); }
.side-link span { color: var(--teal); font-size: 13px; font-weight: 800; }
.keyword-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.keyword-strip span { background: #eef7f6; color: #148a7a; padding: 6px 10px; font-size: 13px; }
.qualification-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.qualification-card { margin: 0; border: 1px solid var(--line); }
.qualification-card figcaption { text-align: center; padding: 10px; font-weight: 800; color: var(--blue); }
.qualification-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #fff;
  display: block;
}
.sample-single {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.button:disabled { opacity: .65; cursor: not-allowed; }
.about-figure { margin-top: 20px; width: 100%; max-width: 720px; }
.rich-text p { margin: 0 0 14px; line-height: 1.8; color: #46515d; }

/* downloads: dedicated row layout (avoid old .download-card 46px grid) */
.download-card,
.dl-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
  grid-template-columns: none !important;
}
.dl-row-main,
.download-card > div,
.download-card-body {
  min-width: 0;
  flex: 1 1 auto;
  width: auto !important;
  max-width: none !important;
}
.dl-row-meta {
  display: block;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}
.dl-row-title,
.download-card h2 {
  margin: 8px 0;
  font-size: 22px;
  line-height: 1.4;
  word-break: normal;
  white-space: normal;
}
.dl-row-desc,
.download-card p {
  margin: 0;
  color: #46515d;
  line-height: 1.7;
}
.dl-row-action,
.download-card .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .download-card,
  .dl-row {
    flex-direction: column;
    align-items: stretch;
  }
  .dl-row-action,
  .download-card .button {
    width: 100%;
    text-align: center;
  }
}
.logo-image {
  height: 54px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  background: transparent;
}

@media (max-width: 1060px) {
  .home-about, .process-grid, .qualification-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
