/* Shared, compact call-to-action treatment. Page copy and links stay page-specific. */
main > section:is([class*="cta"], [id*="contact"]) {
  padding-block: clamp(38px, 4.2vw, 58px) !important;
}

main > section:is([class*="cta"], [id*="contact"]) :is(
  .cc,
  .cta-card,
  .cta-box,
  .cta,
  .final-cta-shell,
  .final-cta-box,
  .cloud-cta,
  .grc-cta,
  .soc-cta,
  .rt-cta,
  .ni-cta-layout
) {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding: clamp(32px, 4vw, 46px) clamp(22px, 4vw, 44px) !important;
  border: 1px solid rgba(117, 188, 255, 0.28);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(47, 140, 255, 0.24), transparent 44%),
    linear-gradient(135deg, #0b2850 0%, #07152f 72%, #091d39 100%) !important;
  color: #f7fbff !important;
  text-align: center !important;
  box-shadow: 0 22px 54px rgba(7, 21, 47, 0.16);
}

main > section:is([class*="cta"], [id*="contact"]) :is(
  .cta-content,
  .cta-copy,
  .cta-inner,
  .final-cta-content,
  .cloud-cta-content,
  .grc-cta-content,
  .soc-cta-content,
  .rt-cta-content,
  .ni-cta-copy,
  .cta-grid
) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  text-align: center !important;
}

main > section:is([class*="cta"], [id*="contact"]) :is(
  .cc h2,
  .cta-card h2,
  .cta-box h2,
  .cta h2,
  .final-cta-shell h2,
  .final-cta-box h2,
  .cloud-cta h2,
  .grc-cta h2,
  .soc-cta h2,
  .rt-cta h2,
  .ni-cta h2
) {
  width: 100%;
  max-width: 820px;
  margin: 12px auto 0 !important;
  color: #ffffff !important;
  font-family: "Sora", Inter, sans-serif !important;
  font-size: clamp(1.8rem, 3.4vw, 2.55rem) !important;
  font-weight: 700;
  line-height: 1.16 !important;
  letter-spacing: -0.035em;
  text-align: center !important;
  text-wrap: balance;
}

main > section:is([class*="cta"], [id*="contact"]) :is(
  .cc p,
  .cta-card p,
  .cta-box p,
  .cta p,
  .final-cta-shell p,
  .final-cta-box p,
  .cloud-cta p,
  .grc-cta p,
  .soc-cta p,
  .rt-cta p,
  .ni-cta p
) {
  width: 100%;
  max-width: 760px;
  margin: 14px auto 0 !important;
  color: rgba(242, 248, 255, 0.9) !important;
  font-family: "Inter", sans-serif !important;
  font-size: 15px !important;
  font-weight: 400;
  line-height: 1.72 !important;
  text-align: center !important;
}

main > section:is([class*="cta"], [id*="contact"]) :is(
  .eyebrow,
  .section-label,
  .section-kicker,
  .cta-label,
  .cta-eyebrow,
  .cloud-cta-eyebrow,
  .grc-eyebrow,
  .soc-eyebrow,
  .rt-eyebrow,
  .ni-eyebrow
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 7px 12px;
  border: 1px solid rgba(142, 205, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09) !important;
  color: #c9f1ff !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

main > section:is([class*="cta"], [id*="contact"]) :is(
  .btn-row,
  .cta-actions,
  .final-cta-actions,
  .challenge-actions,
  .actions,
  .cta-buttons,
  .cta-links,
  .grc-cta-actions,
  .soc-cta-actions,
  .rt-cta-actions
) {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center !important;
  gap: 16px !important;
  width: 100%;
  margin: 22px auto 0 !important;
  text-align: center;
}

main > section:is([class*="cta"], [id*="contact"]) :is(.cta-card, .cta-box, .cta, .final-cta-shell, .final-cta-box, .cloud-cta, .grc-cta, .soc-cta, .rt-cta, .ni-cta-layout) > :is(a, .btn) {
  margin-inline: 0;
}

/* A consistent button hierarchy: blue primary, white secondary. */
main > section:is([class*="cta"], [id*="contact"]) :is(
  .cta-actions,
  .grc-cta-actions,
  .soc-cta-actions,
  .rt-cta-actions,
  .btn-row,
  .final-cta-actions,
  .actions
) > a:first-child,
main > section:is([class*="cta"], [id*="contact"]) :is(
  .btn-primary,
  .grc-btn--primary,
  .soc-btn--primary,
  .rt-btn-primary,
  .cloud-btn-primary,
  .ni-btn-primary
) {
  min-height: 50px;
  border: 1px solid #1769ff !important;
  border-radius: 12px;
  background: linear-gradient(135deg, #1769ff, #0b8ee8) !important;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(22, 119, 255, 0.22) !important;
}

main > section:is([class*="cta"], [id*="contact"]) :is(
  .cta-actions,
  .grc-cta-actions,
  .soc-cta-actions,
  .rt-cta-actions,
  .btn-row,
  .final-cta-actions,
  .actions
) > a:not(:first-child),
main > section:is([class*="cta"], [id*="contact"]) :is(
  .btn-secondary,
  .grc-btn--secondary,
  .soc-btn--secondary,
  .rt-btn-secondary
) {
  min-height: 50px;
  border: 1px solid #dce7f5 !important;
  border-radius: 12px;
  background: #ffffff !important;
  color: #07152f !important;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none !important;
}

/* Homepage CTA buttons match the Diploma CTA's blue-primary / white-secondary pair. */
main > section.cta#contact .cc .btn-p {
  border: 1px solid #1769ff !important;
  background: linear-gradient(135deg, #1769ff, #0b8ee8) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(22, 119, 255, 0.22) !important;
}

main > section.cta#contact .cc .btn-s {
  border: 1px solid #dce7f5 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #07152f !important;
  box-shadow: none !important;
}

@media (max-width: 600px) {
  main > section:is([class*="cta"], [id*="contact"]) {
    padding-block: 34px !important;
  }

  main > section:is([class*="cta"], [id*="contact"]) :is(
    .cc,
    .cta-card,
    .cta-box,
    .cta,
    .final-cta-shell,
    .final-cta-box,
    .cloud-cta,
    .grc-cta,
    .soc-cta,
    .rt-cta,
    .ni-cta-layout
  ) {
    padding: 28px 20px !important;
    border-radius: 21px;
  }

  main > section:is([class*="cta"], [id*="contact"]) :is(
    .btn-row,
    .cta-actions,
    .grc-cta-actions,
    .soc-cta-actions,
    .rt-cta-actions,
    .final-cta-actions,
    .challenge-actions,
    .actions,
    .cta-buttons,
    .cta-links
  ) {
    flex-direction: column;
    gap: 12px !important;
  }

  main > section:is([class*="cta"], [id*="contact"]) :is(
    .btn-row,
    .cta-actions,
    .grc-cta-actions,
    .soc-cta-actions,
    .rt-cta-actions,
    .final-cta-actions,
    .challenge-actions,
    .actions,
    .cta-buttons,
    .cta-links
  ) > a {
    width: min(100%, 320px);
    justify-content: center;
  }
}

/* Final shared rules for every CTA heading, including custom service-page cards. */
main > section:has(h2[data-hh="cta"]) {
  padding-block: clamp(38px, 4.2vw, 58px) !important;
}

main > section:has(h2[data-hh="cta"]) :is(
  .cc,
  .cta-card,
  .cta-box,
  .cta,
  .final-cta-shell,
  .final-cta-box,
  .cloud-cta,
  .grc-cta,
  .soc-cta,
  .rt-cta,
  .ni-cta-layout
) {
  text-align: center !important;
}

main > section:has(h2[data-hh="cta"]) h2[data-hh="cta"] {
  color: #fff !important;
  text-align: center !important;
  text-shadow: 0 2px 26px rgba(55, 145, 255, 0.28);
}

main > section:has(h2[data-hh="cta"]) h2[data-hh="cta"] span {
  background: linear-gradient(100deg, #78bdff 0%, #42a5ff 52%, #53c9ed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: none;
}

main > section:is([class*="cta"], [id*="contact"]) :is(
  .cc,
  .cta-card,
  .cta-box,
  .cta,
  .final-cta-shell,
  .final-cta-box,
  .cloud-cta,
  .grc-cta,
  .soc-cta,
  .rt-cta,
  .ni-cta,
  .ni-cta-layout
) h2 {
  color: #fff !important;
  text-align: center !important;
  text-shadow: 0 2px 26px rgba(55, 145, 255, 0.28);
}

main > section:is([class*="cta"], [id*="contact"]) :is(
  .cc,
  .cta-card,
  .cta-box,
  .cta,
  .final-cta-shell,
  .final-cta-box,
  .cloud-cta,
  .grc-cta,
  .soc-cta,
  .rt-cta,
  .ni-cta,
  .ni-cta-layout
) h2 span {
  background: linear-gradient(100deg, #78bdff 0%, #42a5ff 52%, #53c9ed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: none;
}

main > section:has(h2[data-hh="cta"]) :is(
  .cc p,
  .cta-card p,
  .cta-box p,
  .cta p,
  .final-cta-shell p,
  .final-cta-box p,
  .cloud-cta p,
  .grc-cta p,
  .soc-cta p,
  .rt-cta p,
  .ni-cta p
) {
  color: rgba(245, 249, 255, 0.92) !important;
  text-align: center !important;
}

main > section:has(h2[data-hh="cta"]) :is(
  .cc,
  .cta-card,
  .cta-box,
  .cta,
  .final-cta-shell,
  .final-cta-box,
  .cloud-cta,
  .grc-cta,
  .soc-cta,
  .rt-cta,
  .ni-cta-layout
) > :is(.cta-content, .cta-copy, .cta-inner, .final-cta-content, .cloud-cta-content, .grc-cta-content, .soc-cta-content, .rt-cta-content, .ni-cta-copy) {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  text-align: center !important;
}

main > section:has(h2[data-hh="cta"]) :is(
  .cta-actions,
  .hero-actions,
  .grc-cta-actions,
  .soc-cta-actions,
  .rt-cta-actions,
  .btn-row,
  .final-cta-actions,
  .actions
) {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center !important;
  gap: 16px !important;
  width: 100%;
  margin: 22px auto 0 !important;
}

main > section:has(h2[data-hh="cta"]) :is(
  .cta-actions,
  .grc-cta-actions,
  .soc-cta-actions,
  .rt-cta-actions,
  .btn-row,
  .final-cta-actions,
  .actions
) > a:first-child,
main > section:has(h2[data-hh="cta"]) :is(
  .btn-primary,
  .grc-btn--primary,
  .soc-btn--primary,
  .rt-btn-primary,
  .cloud-btn-primary,
  .ni-btn-primary
) {
  border: 1px solid #1769ff !important;
  background: linear-gradient(135deg, #1769ff, #0b8ee8) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(22, 119, 255, 0.24) !important;
}

main > section:has(h2[data-hh="cta"]) :is(
  .cta-actions,
  .grc-cta-actions,
  .soc-cta-actions,
  .rt-cta-actions,
  .btn-row,
  .final-cta-actions,
  .actions
) > a:not(:first-child),
main > section:has(h2[data-hh="cta"]) :is(
  .btn-secondary,
  .grc-btn--secondary,
  .soc-btn--secondary,
  .rt-btn-secondary
) {
  border: 1px solid #dce7f5 !important;
  background: #fff !important;
  color: #07152f !important;
  box-shadow: none !important;
}

main > section:has(h2[data-hh="cta"]) :is(.cloud-cta-content, .ni-cta-layout) > a:only-child {
  min-height: 50px;
  margin: 22px auto 0;
  border: 1px solid #1769ff !important;
  border-radius: 12px;
  background: linear-gradient(135deg, #1769ff, #0b8ee8) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(22, 119, 255, 0.24) !important;
}

@media (max-width: 600px) {
  main > section:has(h2[data-hh="cta"]) :is(
    .cta-actions,
    .hero-actions,
    .grc-cta-actions,
    .soc-cta-actions,
    .rt-cta-actions,
    .btn-row,
    .final-cta-actions,
    .actions
  ) {
    flex-direction: column;
    gap: 12px !important;
  }

  main > section:has(h2[data-hh="cta"]) :is(
    .cta-actions,
    .hero-actions,
    .grc-cta-actions,
    .soc-cta-actions,
    .rt-cta-actions,
    .btn-row,
    .final-cta-actions,
    .actions
  ) > a {
    width: min(100%, 320px);
    justify-content: center;
  }
}

/* Why HackHalt's custom single action uses the same blue primary treatment. */
main > section#contact .cta-card .cta-btn {
  min-height: 50px;
  margin-top: 22px;
  border: 1px solid #1769ff;
  border-radius: 12px;
  background: linear-gradient(135deg, #1769ff, #0b8ee8);
  color: #fff;
  box-shadow: 0 12px 28px rgba(22, 119, 255, 0.24);
}

/* Keep the Network CTA action clear of its supporting paragraph. */
main > section.ni-cta .ni-cta-layout > a {
  margin: 24px auto 0 !important;
}

/* Trinetra renders its final CTA directly under body rather than inside main. */
body > section.cta-wrap {
  padding-block: clamp(38px, 4.2vw, 58px) !important;
}

body > section.cta-wrap .cta {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding: clamp(32px, 4vw, 46px) clamp(22px, 4vw, 44px) !important;
  border: 1px solid rgba(117, 188, 255, 0.28);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(47, 140, 255, 0.24), transparent 44%),
    linear-gradient(135deg, #0b2850 0%, #07152f 72%, #091d39 100%) !important;
  color: #f7fbff !important;
  text-align: center !important;
  box-shadow: 0 22px 54px rgba(7, 21, 47, 0.16);
}

body > section.cta-wrap .cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  text-align: center !important;
}

body > section.cta-wrap .cta h2 {
  max-width: 820px;
  margin: 12px auto 0 !important;
  color: #fff !important;
  font-size: clamp(1.8rem, 3.4vw, 2.55rem) !important;
  line-height: 1.16 !important;
  text-align: center !important;
  text-shadow: 0 2px 26px rgba(55, 145, 255, 0.28);
}

body > section.cta-wrap .cta h2 span {
  background: linear-gradient(100deg, #78bdff 0%, #42a5ff 52%, #53c9ed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: none;
}

body > section.cta-wrap .cta p {
  max-width: 760px;
  margin: 14px auto 0 !important;
  color: rgba(245, 249, 255, 0.92) !important;
  font-size: 15px !important;
  line-height: 1.72 !important;
  text-align: center !important;
}

body > section.cta-wrap .cta .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  padding: 7px 12px;
  border: 1px solid rgba(142, 205, 255, 0.28) !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09) !important;
  color: #c9f1ff !important;
}

body > section.cta-wrap .cta .hero-actions {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center !important;
  gap: 16px !important;
  width: 100%;
  margin: 22px auto 0 !important;
}

body > section.cta-wrap .cta .btn-primary {
  min-height: 50px;
  border: 1px solid #1769ff !important;
  border-radius: 12px;
  background: linear-gradient(135deg, #1769ff, #0b8ee8) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(22, 119, 255, 0.24) !important;
}

body > section.cta-wrap .cta .btn-secondary {
  min-height: 50px;
  border: 1px solid #dce7f5 !important;
  border-radius: 12px;
  background: #fff !important;
  color: #07152f !important;
  box-shadow: none !important;
}

/* Use matching outlined focus chips on the About and Why HackHalt heroes. */
.about-hero .hero-focus-list,
.hero-section .hero-focus-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
}

.about-hero .hero-focus-list span,
.hero-section .hero-focus-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #d7e5f5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #415570;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 5px 16px rgba(20, 55, 100, 0.05);
}

.about-hero .hero-focus-list i,
.hero-section .hero-focus-list i {
  color: #1769ff;
  font-size: 12px;
}

.about-hero .hero-actions .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #c8d8ec;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  color: #09152b;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.about-hero .hero-actions .secondary-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 105, 255, 0.35);
  background: #fff;
}

@media (max-width: 560px) {
  .about-hero .hero-focus-list,
  .hero-section .hero-focus-list {
    justify-content: center;
    gap: 7px;
  }

  .about-hero .hero-focus-list span,
  .hero-section .hero-focus-list span {
    font-size: 10px;
  }
}

@media (max-width: 600px) {
  body > section.cta-wrap .cta {
    padding: 28px 20px !important;
    border-radius: 21px;
  }

  body > section.cta-wrap .cta .hero-actions {
    flex-direction: column;
    gap: 12px !important;
  }

  body > section.cta-wrap .cta .hero-actions > a {
    width: min(100%, 320px);
    justify-content: center;
  }
}
