/* QEL sprint overrides — keep Labrix custom.css unchanged */

/* Disable Labrix custom cursor — use system pointer */
.cb-cursor {
  display: none !important;
}

.section-title h1,
.section-title h2 {
  cursor: auto;
}

/* About page — sticky Our Story heading (same pattern as team-member-contact-box) */
.about-story-box {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 60px;
  align-items: stretch;
}

.about-story-info {
  width: calc(58% - 30px);
}

.about-story-info .section-title {
  position: sticky;
  top: 50px;
  margin-bottom: 0;
}

.about-story-content {
  width: calc(42% - 30px);
}

@media (max-width: 991.98px) {
  .about-story-info,
  .about-story-content {
    width: 100%;
  }

  .about-story-info .section-title {
    position: static;
    margin-bottom: 40px;
  }
}

.footer-cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0 0;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cert-item img {
  max-height: 48px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(100%);
  transition: opacity 0.2s, filter 0.2s;
}

.footer-cert-item img:hover {
  opacity: 1;
  filter: none;
}

.project-client {
  font-size: 0.875rem;
  opacity: 0.75;
  margin-top: 0.35rem;
}

/* Team detail — biography and profile PDF */
.team-bio p + p {
  margin-top: 1rem;
}

.team-profile-pdf {
  margin-top: 1.5rem;
}

.team-profile-pdf.d-none {
  display: none !important;
}

/* Services — full discipline catalogue */
.service-disciplines {
  padding: 80px 0;
}

.service-discipline-item {
  background: var(--white-color, #fff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-discipline-item:hover {
  border-color: var(--primary-color, #0d6efd);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.service-discipline-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.service-discipline-item h3 a {
  color: inherit;
  text-decoration: none;
}

.service-discipline-item h3 a:hover {
  color: var(--primary-color, #0d6efd);
}

.service-discipline-item .discipline-desc {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.8;
  line-height: 1.5;
}

.page-category-list ul li.active a {
  font-weight: 600;
  color: var(--primary-color, #0d6efd);
}

/* Service pillar cards — Labrix template assumes one-line copy; QEL uses
   longer descriptions, so let cards grow to content (equal height per row)
   instead of a fixed aspect ratio that clips text. */
.service-item {
  aspect-ratio: auto !important;
  height: calc(100% - 30px);
  min-height: 300px;
}

.service-content {
  margin-top: 20px;
}

.service-desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}
