/*
 * SEO heading fixes — style preservation
 * ------------------------------------------------------------------
 * Several headings were retagged so each page has a single H1 and a
 * heading outline with no skipped levels (audit 2026-11-13). The
 * markup keeps the original look with Bootstrap's .h1–.h6 size classes;
 * this file covers the places where page CSS targeted the old tag name.
 *
 * Loaded after every page stylesheet (templates/head.php). Keep rules
 * scoped to the retagged elements so nothing else is affected.
 */

/* ---------- Site footer: H6 -> H2 (.footer-heading) ---------- */
.footer .footer-heading {
  font-size: 1rem;
  line-height: 1.2;
  margin-top: 0;
}

/* ---------- Header mega menu: H2 labels -> <p class="content-title"> ----------
 * These labels render before each page's H1, so as headings they made every
 * page's outline start at H2. Restore what the H2 tag used to provide
 * (base.css heading font + weight, Bootstrap heading line-height/margins).
 */
.mega-menu-content .content-title {
  font-family: var(--font-heading);
  font-weight: 300 !important;
  line-height: 1.2;
  margin-top: 0;
}

/* ---------- "Let's Build Excellence Together" (home, services, success stories) ----------
 * The decorative butterfly used to sit inside the H2, so its alt text became part
 * of the heading. It now sits beside the H2 in this wrapper, which takes over the
 * H2's old positioning (relative + inline-block) so the butterfly lands in the
 * same place. The wrapper carries the H2's old mb-4 margin.
 */
.seo-heading-wrap {
  position: relative;
  display: inline-block;
}

/* ---------- Contact page: "Get In Touch" H1 -> H2 (.section-header-title) ----------
 * Mirrors contact-us.css ".section-header h1".
 */
.section-header .section-header-title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  margin-bottom: 15px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 30%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Contact page testimonials: company H4 -> H3 ----------
 * Mirrors contact-us.css ".author-info h4".
 */
.author-info .testimonial-company {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 2px;
}

/* ---------- Blogs listing: featured post titles H3 -> H2 ----------
 * Mirrors blogs.css ".card h3".
 */
.card .featured-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

/* ---------- Smart Hire AI: process step titles H4 -> H3 ----------
 * Mirrors smart-hire-ai.css ".step h4".
 */
.step .step-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ---------- Career detail: CKEditor job description ----------
 * Headings inside .jd-body are re-ranked to start at H3 (see
 * views/pages/careers/detail.php) and carry jd-h<original level>.
 * career-detail.css sizes .jd-body h2/h3/h4 by tag, so restore the
 * size each heading had before it was re-ranked.
 */
.jd-body .jd-h1 { font-size: calc(1.375rem + 1.5vw); }
.jd-body .jd-h2 { font-size: 1.35rem; }
.jd-body .jd-h3 { font-size: 1.15rem; }
.jd-body .jd-h4 { font-size: 1.05rem; }
@media (min-width: 1200px) {
  .jd-body .jd-h1 { font-size: 2.5rem; }
}
/* H5/H6 never had the accent bar; keep them plain if re-ranked to H3/H4. */
.jd-body .jd-h5,
.jd-body .jd-h6 {
  border-left: 0;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  font-weight: 500;
  color: inherit !important;
}
.jd-body .jd-h5 { font-size: 1.25rem; }
.jd-body .jd-h6 { font-size: 1rem; }
.jd-body .jd-h1:first-child,
.jd-body .jd-h2:first-child,
.jd-body .jd-h3:first-child,
.jd-body .jd-h4:first-child { margin-top: 0; }
