/* =========================================================================
   resources.css — shared styles for case-study, whitepaper, and blog pages.
   Loaded site-wide via head.html. Keeps Phase 3 UX polish out of style.css.
   ========================================================================= */


/* -------------------------------------------------------------------------
   CTA banner spacing fix
   ------------------------------------------------------------------------- */
/*
   .footer-top is position:absolute with top:-120px (defined in style.css)
   to overlap into the page section above. On pages where that section is
   short (e.g. /blogs/, /case-studies/, /resources/whitepapers/), the
   floating CTA leaves a visible band of white space because the page
   section above doesn't reserve enough room. Reserve room here so the
   orange band always sits flush against the dark footer below.
*/
.footer-wrapper {
  margin-top: 120px;
}

.footer-wrapper .footer-top {
  /* keep the existing absolute positioning, but make sure margin-bottom
     pulls just enough so it doesn't bleed into the footer columns. */
  margin-bottom: -90px;
}


/* -------------------------------------------------------------------------
   Hero band — gradient scrim + text-shadow so titles stay legible over
   busy hero photos (case-study detail, whitepaper detail, etc.).
   ------------------------------------------------------------------------- */

.hero-3 .hero-bg {
  filter: brightness(0.55);
}

.hero-3 .hero-style3.sub-page {
  position: relative;
}

.hero-3 .hero-style3.sub-page::before {
  content: "";
  position: absolute;
  inset: auto 0 -1rem 0;
  height: 70%;
  background: linear-gradient(180deg, transparent, rgba(13, 13, 12, 0.85));
  z-index: 0;
  pointer-events: none;
}

.hero-3 .hero-style3.sub-page > * {
  position: relative;
  z-index: 1;
}

.hero-3 .hero-title.main-service-title,
.hero-3 .hero-text {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}


/* -------------------------------------------------------------------------
   Case-study card — clamp the summary to 2 lines so the grid feels scannable.
   ------------------------------------------------------------------------- */

.spotlight-card .spotlight-content .cs-card-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0.5rem 0 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}


/* -------------------------------------------------------------------------
   Whitepaper list — give cards real visual hierarchy.
   ------------------------------------------------------------------------- */

.whitepaper-card-meta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #FD6D26;
  background: rgba(253, 109, 38, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.whitepaper-card-cta {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.55rem 1.1rem;
  background: #FD6D26;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s;
}

.whitepaper-card-cta:hover {
  background: #e25e1f;
  color: #fff;
}


/* -------------------------------------------------------------------------
   Whitepaper detail — single-column download section (no orphan image).
   ------------------------------------------------------------------------- */

.whitepaper-download-card {
  max-width: 640px;
  margin: 3rem auto;
  padding: 2.5rem 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 28px rgba(13, 13, 12, 0.08);
}

.whitepaper-download-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.whitepaper-download-card .meta {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 1.5rem;
}

.whitepaper-download-card .takeaway-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.whitepaper-download-card .takeaway-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.75rem;
  color: #333;
}

.whitepaper-download-card .takeaway-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.2rem;
  height: 1.2rem;
  background: #FD6D26;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.2rem;
  font-weight: 700;
}
