/* =================== CELLHAWK PAGE OVERRIDES =================== */
/* This file contains styles specific to cellhawk.html only */

/* Skip to main content link (ADA - WCAG 2.4.1) */
body.leadsonline .skip-to-main {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: #0a0a1a;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top 0.2s ease;
}
body.leadsonline .skip-to-main:focus {
  top: 0;
  outline: 3px solid #00aaff;
  outline-offset: 2px;
}

/* Hero logo sizing and positioning */
body.leadsonline .clearcase-hero-logo {
  display: block;
  margin-bottom: 32px;
  margin-left: 0;
  transform: scale(1.3);
  transform-origin: left center;
}

/* Hero heading - Barlow Medium and smaller size */
html body.leadsonline .clearcase-hero-section .clearcase-intro__h {
  font-weight: 500;
  font-size: 2.6rem;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
  html body.leadsonline .clearcase-hero-section .clearcase-intro__h {
    font-size: 1.75rem;
  }
}

/* Overview section header - match hero section styling */
html body.leadsonline .clearcase-intro__h[data-i18n="overview-title"] {
  font-weight: 600;
  font-size: 2.6rem;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
  html body.leadsonline .clearcase-intro__h[data-i18n="overview-title"] {
    font-size: 1.75rem;
  }
}

/* Use Cases Examples header - match Customer Key Benefits header size */
html body.leadsonline .clearcase-highlights__title[data-i18n="use-cases-title"] {
  color: #ffffff;
  font-weight: 600;
  font-size: 2.6rem;
  text-align: center;
  margin-bottom: 16px;
}

/* Use Cases Examples subtitle */
.use-cases-subtitle {
  color: #ffffff;
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 48px auto;
  text-align: center;
  display: block;
  width: 100%;
}

/* .leadsonline p (0,1,1) overrides the single-class rule above (0,1,0), capping width at 68ch
   and zeroing margin-left. This two-class selector (0,2,0) wins on specificity. */
.cellhawk-features-grid .use-cases-subtitle {
  max-width: 800px;
  margin: 0 auto 48px auto;
  text-align: center;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
  html body.leadsonline .clearcase-highlights__title[data-i18n="use-cases-title"] {
    font-size: 1.75rem;
  }

  .use-cases-subtitle {
    font-size: 1rem;
    margin-bottom: 32px;
  }
}

/* Feature card icon styling and animation */
.feature-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: iconPulse 3s ease-in-out infinite;
}

.feature-card-icon svg {
  width: 48px;
  height: 48px;
  color: #ffffff;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
}

/* Center the title and text in the card with icon */
.feature-grid-card--with-icon .feature-grid-card__title {
  text-align: center;
  margin-bottom: 16px;
}

.feature-grid-card--with-icon .feature-grid-card__text {
  text-align: left;
}

/* CellHawk Solution Section - Light blue background */
html body.leadsonline .clearcase-intro.leadsonline-overview.cellhawk-solution-section {
  background: #F5F9FF;
  background-color: #F5F9FF;
}

/* CellHawk FAQ Section - Light gray background */
html body.leadsonline .clearcase-faq.cellhawk-faq {
  background: #f8f9fa;
}

/* CellHawk Contact Section - Match footer dark blue gradient */
html body.leadsonline .clearcase-contact {
  background: linear-gradient(135deg, #0a1f44 0%, #0a2a5c 50%, #1a3666 100%);
  background-image: linear-gradient(135deg, #0a1f44 0%, #0a2a5c 50%, #1a3666 100%);
}

/* Flow step animations */
.features-flow .flow-step {
  opacity: 0;
  transform: translateY(40px);
  animation: none;
}
.features-flow .flow-step.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Solution Section - Solid navy background, no blobs */
html body.leadsonline .clearcase-solution.leads-soukltion {
  background: #002855;
  background-color: #002855;
  background-image: none;
}

html body.leadsonline .clearcase-solution.leads-soukltion .leads-soukltion-deco,
html body.leadsonline .clearcase-solution.leads-soukltion .leads-soukltion-overlay,
html body.leadsonline .clearcase-solution.leads-soukltion .solution-particles-canvas {
  display: none;
  opacity: 0;
  visibility: hidden;
}

html body.leadsonline .clearcase-solution.leads-soukltion::before,
html body.leadsonline .clearcase-solution.leads-soukltion::after {
  display: none;
  content: none;
  background: none;
}

/* Media & Resources Section - Solid navy background */
html body.leadsonline .clearcase-media-resources {
  background: #002855;
  background-image: none;
  overflow: hidden;
}

html body.leadsonline .clearcase-media-resources .benefits-scroller-wrap {
  overflow: visible;
  padding-top: 12px;
  margin-top: -12px;
}

html body.leadsonline .clearcase-media-resources .benefits-scroller {
  overflow-x: auto;
  overflow-y: visible;
  padding-top: 12px;
  padding-bottom: 20px;
  margin-top: -12px;
  -webkit-mask-image: none;
  mask-image: none;
}

/* Remove the fade overlay that causes hard edge */
html body.leadsonline .clearcase-media-resources .benefits-scroller-wrap::after {
  display: none;
}

html body.leadsonline .clearcase-media-resources::before,
html body.leadsonline .clearcase-media-resources::after {
  display: none;
  content: none;
  background: none;
}

/* Glassmorphism benefit cards in Media & Resources */
html body.leadsonline .clearcase-media-resources .benefit-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

html body.leadsonline .clearcase-media-resources .benefit-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

html body.leadsonline .clearcase-media-resources .benefit-card p {
  color: rgba(255, 255, 255, 0.9);
}

/* Larger icon circles to prevent clipping */
html body.leadsonline .clearcase-media-resources .benefit-card__icon,
html body.leadsonline .clearcase-media-resources .benefit-card__icon--paper,
html body.leadsonline .clearcase-media-resources .benefit-card__icon--press,
html body.leadsonline .clearcase-media-resources .benefit-card__icon--watch {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

html body.leadsonline .clearcase-media-resources .benefit-card__icon svg {
  width: 36px;
  height: 36px;
  display: block;
  margin: 0 auto;
}

/* Image-left layout: move blue underline from left column to right column */
.clearcase-intro--image-left .clearcase-intro__col--left::after {
  display: none;
}

.clearcase-intro--image-left .clearcase-intro__col--right {
  position: relative;
}

.clearcase-intro--image-left .clearcase-intro__col--right::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, #3aa0ff, #6ec3ff);
  margin-top: 18px;
  border-radius: 2px;
  opacity: 0.9;
}

/* =================== FOUR CARD FEATURE GRID SECTION =================== */
.cellhawk-features-grid {
  background:
    linear-gradient(135deg, rgba(10, 22, 40, 0.82) 0%, rgba(13, 40, 71, 0.82) 50%, rgba(10, 22, 40, 0.82) 100%),
    url('images/volunteer.jpg');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative glow */
.cellhawk-features-grid::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cellhawk-features-grid::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cellhawk-features-grid .container {
  position: relative;
  z-index: 1;
}

.cellhawk-features-grid__title {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 48px;
  text-align: left;
}

html body.leadsonline .community-section-title {
  text-align: center;
  margin-bottom: 16px;
}

.community-card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
}

html body.leadsonline .community-section-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

html body.leadsonline .community-section-subtitle[data-i18n="working-community-subtitle-2"] {
  margin-bottom: 48px;
}

.features-grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-grid-card {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(30px);
}

.feature-grid-card.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.feature-grid-card:hover {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-grid-card__title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-grid-card__text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Media & Resources header - mobile sizes */
@media (max-width: 1024px) {
  .cellhawk-media-title,
  .clearcase-media-resources .benefits-title,
  h2.benefits-title {
    font-size: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .cellhawk-media-title,
  .clearcase-media-resources .benefits-title,
  h2.benefits-title {
    font-size: 1.1rem;
    text-align: center;
  }

  /* Center Key Benefits header in mobile view */
  .clearcase-highlights__title {
    text-align: center;
    margin: 0 auto;
  }

  /* Center FAQ header in mobile view */
  .clearcase-faq__title {
    text-align: center;
  }

  /* Center and reduce Contact Us header in mobile view */
  html body.leadsonline .clearcase-contact__heading {
    font-size: 1.5rem;
    text-align: center;
  }
}

/* Responsive: 2 columns on tablet */
@media (max-width: 1024px) {
  .features-grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: 1 column on mobile */
@media (max-width: 768px) {
  .features-grid-cards {
    grid-template-columns: 1fr;
  }
  
  .cellhawk-features-grid {
    padding: 60px 0;
  }
  
  .feature-grid-card {
    padding: 24px 20px;
  }
}

/* Extra small screens - tighten spacing to prevent cutoff */
@media (max-width: 480px) {
  .cellhawk-features-grid {
    padding: 40px 0;
  }
  
  .feature-grid-card {
    padding: 16px 16px;
  }
  
  .feature-grid-card__title {
    font-size: 1rem;
    line-height: 1.3;
  }
  
  .feature-grid-card__text {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* =================== FAQ SECTION - Light Gray Background with Black Text =================== */
section.cellhawk-faq.clearcase-faq,
.cellhawk-faq.clearcase-faq {
  background: #f8f9fa;
}

section.cellhawk-faq.clearcase-faq::before,
section.cellhawk-faq.clearcase-faq::after,
.cellhawk-faq.clearcase-faq::before,
.cellhawk-faq.clearcase-faq::after {
  display: none;
  content: none;
  background: none;
}

/* FAQ title - black text */
.cellhawk-faq .clearcase-faq__title,
section.cellhawk-faq .clearcase-faq__title {
  color: #000000;
}

/* FAQ accordion items - match section background */
html body.leadsonline .cellhawk-faq .faq-item,
html body.leadsonline .cellhawk-faq.clearcase-faq .faq-item,
html body.leadsonline section.cellhawk-faq .faq-item,
html body.leadsonline .clearcase-faq.cellhawk-faq .faq-item,
html body.leadsonline .clearcase-faq .faq-item {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  box-shadow: none;
}

/* FAQ item states for cellhawk - hover slightly darker than section bg */
html body.leadsonline .clearcase-faq.cellhawk-faq .faq-item:hover,
html body.leadsonline .cellhawk-faq .faq-item:hover {
  background: #edeef0;
  transform: none;
  box-shadow: none;
}

html body.leadsonline .clearcase-faq.cellhawk-faq .faq-item[open],
html body.leadsonline .cellhawk-faq .faq-item[open] {
  background: #f8f9fa;
}

/* All text inside FAQ items - black */
.cellhawk-faq .faq-item,
.cellhawk-faq .faq-item *,
.cellhawk-faq .faq-item summary,
.cellhawk-faq .faq-item__q,
.cellhawk-faq .faq-item__a,
.cellhawk-faq .faq-item__a p,
section.cellhawk-faq .faq-item,
section.cellhawk-faq .faq-item * {
  color: #000000;
}

/* Dropdown arrow - black */
.cellhawk-faq .faq-item summary::after,
.cellhawk-faq .faq-item summary::marker,
section.cellhawk-faq .faq-item summary::after,
section.cellhawk-faq .faq-item summary::marker {
  color: #000000;
  border-color: #000000;
}

/* FAQ item hover state */
.cellhawk-faq .faq-item:hover,
section.cellhawk-faq .faq-item:hover {
  background: #f0f0f0;
}

.cellhawk-faq .clearcase-faq__inner,
html body.leadsonline .clearcase-faq.cellhawk-faq .clearcase-faq__inner {
  position: relative;
  z-index: 1;
}

/* =================== MOBILE OVERRIDES =================== */
@media (max-width: 768px) {
  /* ===== CellHawk Overview Section ===== */
  /* Show image below text - reorder with flexbox */
  .cellhawk-overview-section .clearcase-intro__grid {
    display: flex;
    flex-direction: column;
  }
  
  /* Center the text column */
  .cellhawk-overview-section .clearcase-intro__col--left {
    text-align: center;
    max-width: 100%;
    width: 100%;
  }
  
  /* Center the image column below */
  .cellhawk-overview-section .clearcase-intro__col--right {
    display: block;
    text-align: center;
    max-width: 100%;
    width: 100%;
    margin-top: 24px;
  }
  
  .cellhawk-overview-section .clearcase-intro__media {
    display: flex;
    justify-content: center;
  }
  
  .cellhawk-overview-section .intro-side-card {
    margin: 0 auto;
  }
  
  .cellhawk-overview-section .clearcase-intro__h {
    text-align: center;
  }
  
  .cellhawk-overview-section .clearcase-intro__p {
    text-align: center;
  }
  
  /* Center the blue underline */
  .cellhawk-overview-section .clearcase-intro__col--left::after {
    margin-left: auto;
    margin-right: auto;
  }

  /* ===== CellHawk Solution Section ===== */
  /* Show image below text - reorder with flexbox */
  .cellhawk-solution-section .clearcase-intro__grid {
    display: flex;
    flex-direction: column;
  }
  
  /* Center the text column */
  .cellhawk-solution-section .clearcase-intro__col--left {
    text-align: center;
    max-width: 100%;
    width: 100%;
  }
  
  /* Center the image column below */
  .cellhawk-solution-section .clearcase-intro__col--right {
    display: block;
    text-align: center;
    max-width: 100%;
    width: 100%;
    margin-top: 24px;
  }
  
  .cellhawk-solution-section .clearcase-intro__media {
    display: flex;
    justify-content: center;
  }
  
  .cellhawk-solution-section .intro-side-card {
    margin: 0 auto;
  }
  
  .cellhawk-solution-section .clearcase-intro__h {
    text-align: center;
  }
  
  .cellhawk-solution-section .clearcase-intro__p {
    text-align: center;
  }
  
  /* Center the blue underline */
  .cellhawk-solution-section .clearcase-intro__col--left::after {
    margin-left: auto;
    margin-right: auto;
  }
  
  /* ===== Challenge Section (image-left layout) ===== */
  /* Show image below text - reorder with flexbox */
  .clearcase-intro--image-left .clearcase-intro__grid {
    display: flex;
    flex-direction: column-reverse;
  }
  
  /* Center the image column */
  .clearcase-intro--image-left .clearcase-intro__col--left {
    display: block;
    text-align: center;
    max-width: 100%;
    width: 100%;
    margin-top: 24px;
  }
  
  .clearcase-intro--image-left .clearcase-intro__media {
    display: flex;
    justify-content: center;
  }
  
  .clearcase-intro--image-left .intro-side-card {
    margin: 0 auto;
  }
  
  /* Center the text column */
  .clearcase-intro--image-left .clearcase-intro__col--right {
    text-align: center;
    max-width: 100%;
    width: 100%;
  }
  
  .clearcase-intro--image-left .clearcase-intro__h {
    text-align: center;
  }
  
  .clearcase-intro--image-left .clearcase-intro__p {
    text-align: center;
  }
  
  /* Center the blue underline for challenge section */
  .clearcase-intro--image-left .clearcase-intro__col--right::after {
    margin-left: auto;
    margin-right: auto;
  }

  /* Proof & Validation Section - Center for Mobile */
  .proof-validation {
    text-align: center;
  }
  
  .proof-validation__inner {
    text-align: center;
  }
  
  .proof-validation__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .proof-validation__col,
  .proof-validation__col--left,
  .proof-validation__col--right {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .proof-validation__content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .proof-validation__title {
    text-align: center;
    width: 100%;
    margin: 0 auto;
    font-size: 1.25rem;
  }
  
  .proof-validation__lead {
    text-align: center;
    width: 100%;
    margin: 0 auto;
  }
  
  .proof-validation .validation-list,
  .proof-validation__list {
    text-align: center;
    list-style: none;
    padding: 0;
    display: block;
    margin: 0 auto;
    width: 100%;
  }
  
  .proof-validation .validation-list li {
    text-align: center;
    padding: 8px 0;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  
  .proof-validation__media {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  
  .proof-validation__media img {
    margin: 0 auto;
  }
  
  .proof-validation .testimonial-card-large {
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
  }
  
  .proof-validation .validation-list li::before {
    display: none;
  }
  
  /* Center use case examples header */
  .cellhawk-features-grid .clearcase-highlights__title {
    text-align: center;
  }

  /* ===== CellHawk Solution Section Mobile Layout ===== */
  .clearcase-solution__grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .solution-left-column {
    order: 2;
    text-align: center;
  }

  .solution-copy {
    order: 1;
    text-align: center;
  }

  .solution-video-container {
    margin: 0 auto;
    max-width: 100%;
  }

  .solution-video {
    width: 100%;
    height: auto;
  }

  .solution-why-matters {
    text-align: left;
    max-width: 100%;
    margin-top: 24px;
  }

  .solution-why-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.015em;
  }

  .solution-why-text {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .cellhawk-media-title {
    font-size: 1.25rem;
    line-height: 1.2;
    text-align: center;
  }
  
  html body.leadsonline .clearcase-media-resources .benefits-title,
  html body.leadsonline .benefits-title,
  html body.leadsonline h2.benefits-title,
  .clearcase-media-resources .benefits-title,
  .benefits-title,
  h2.benefits-title {
    font-size: 1.3rem;
    line-height: 1.2;
    text-align: center;
  }
  
  .clearcase-media-resources .benefits-inner {
    text-align: center;
  }
  
  .clearcase-media-resources .benefits-scroller-wrap {
    overflow: visible;
  }
  
  .clearcase-media-resources .benefits-scroller {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    padding: 0;
  }
  
  .clearcase-media-resources .benefit-card {
    flex: none;
    width: 100%;
    min-width: unset;
    max-width: 100%;
    scroll-snap-align: none;
  }
}

/* Mobile FAQ: Ensure only 1 accordion per line */
@media (max-width: 768px) {
  html body.leadsonline .clearcase-faq.cellhawk-faq .clearcase-faq__list,
  .clearcase-faq.cellhawk-faq .clearcase-faq__list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  /* Mobile hero: Hide secondary buttons, show only Request Demo */
  .hero-cta-group .hero-cta-btn-outline {
    display: none;
  }
  
  /* Mobile hero: Add left padding to prevent content from being too close to edge */
  .careers-hero-inner.clearcase-hero-inner {
    padding-left: 20px;
  }
  
  /* Mobile contact: Add padding between header and card */
  .clearcase-contact__heading {
    margin-bottom: 48px;
  }
}

/* Mobile Menu Styles */
.mobile-menu {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-menu li:last-child,
.mobile-menu li.divider {
  border-bottom: none;
}

.mobile-menu-category {
  margin: 0;
}

.mobile-menu-category__summary {
  background: #f8f9fa;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  color: #002855;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-category__summary::after {
  content: '▼';
  font-size: 12px;
  transition: transform 0.3s ease;
}

.mobile-menu-category[open] .mobile-menu-category__summary::after {
  transform: rotate(180deg);
}

.mobile-menu-category__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 20px;
  background: #fafafa;
}

.mobile-menu-column {
  flex: 1;
}

.mobile-menu-column h3,
.mobile-menu-column h4 {
  font-size: 14px;
  font-weight: 600;
  color: #002855;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-menu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-column li {
  border: none;
  padding: 0;
}

.mobile-menu-column a {
  display: block;
  padding: 8px 0;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.mobile-menu-column a:hover {
  color: #0056b3;
}

.mobile-menu .btn {
  margin: 16px 20px;
  width: calc(100% - 40px);
}

/* =================== PRODUCT NAV LOGO - Convert to Black =================== */
.cellhawk-product-logo {
  filter: brightness(0);
  height: 32px;
  width: auto;
}
body.leadsonline.toolbox .cellhawk-product-logo,
body.leadsonline.intelligence .intelligence-product-logo {
  height: 24px;
}

body.leadsonline.q3m .cellhawk-product-logo {
  height: 22px;
}

/* =================== CUSTOMER KEY BENEFITS SECTION =================== */
.customer-key-benefits {
  background: #F5F9FF;
  padding: 80px 0;
}

.customer-key-benefits .case-studies-header {
  text-align: center;
  margin-bottom: 48px;
}

.customer-key-benefits .case-studies-title {
  color: #000000;
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.customer-key-benefits .case-studies-subtitle {
  color: #000000;
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

html body.leadsonline .customer-key-benefits .case-study-card.card-hidden {
  display: none;
}

html body.leadsonline .media-card.card-hidden {
  display: none;
}

html body.leadsonline .customer-key-benefits .case-study-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

html body.leadsonline .customer-key-benefits .case-study-card.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

html body.leadsonline .customer-key-benefits .case-study-card.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.customer-key-benefits .case-study-title {
  color: #000000;
}

.customer-key-benefits .case-study-desc {
  color: #4a5568;
}

.customer-key-benefits .case-study-agency {
  color: #6b7280;
}

.customer-key-benefits .case-study-link {
  color: #3575e2;
}

.customer-key-benefits .case-study-product-tag {
  display: none;
}

/* Benefits pagination dots — gray/blue style for product pages */
body.leadsonline .benefits-pagination.case-studies-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
}

body.leadsonline .benefits-pagination .pagination-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  min-width: 12px;
  max-width: 12px;
  min-height: 12px;
  max-height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
  margin: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}

body.leadsonline .benefits-pagination .pagination-dot:hover {
  background: #a0a4ab;
  transform: scale(1.15);
}

body.leadsonline .benefits-pagination .pagination-dot.active {
  background: #3575e2;
  width: 14px;
  height: 14px;
  min-width: 14px;
  max-width: 14px;
  min-height: 14px;
  max-height: 14px;
}

@media (max-width: 768px) {
  .customer-key-benefits {
    padding: 60px 0;
  }

  .customer-key-benefits .case-studies-title {
    font-size: 1.75rem;
  }

  .customer-key-benefits .case-studies-subtitle {
    font-size: 1rem;
  }
}

/* =================== CONTACT SECTION HEADER =================== */
html body.leadsonline .clearcase-contact__heading {
  font-weight: 600;
  font-size: 2.6rem;
  text-align: center;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
  html body.leadsonline .clearcase-contact__heading {
    font-size: 1.75rem;
  }
}

/* =================== DYNAMIC TESTIMONIALS SECTION =================== */
.dynamic-testimonials {
  background: #ffffff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.dynamic-testimonials .testimonials-title {
  color: #1e1f21;
  font-size: 2.6rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}

.dynamic-testimonials .testimonials-subtitle {
  color: #6b7280;
  font-size: 1.125rem;
  text-align: center;
  margin: 0 auto 60px auto;
  display: block;
  width: 100%;
  max-width: 800px;
}

.testimonials-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-slides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.testimonial-slide {
  opacity: 1;
  visibility: visible;
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
}

.testimonial-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.quote-icon {
  display: none;
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5568;
  font-style: normal;
  margin-bottom: 24px;
  font-weight: 400;
  order: 2;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  order: 1;
  margin-bottom: 20px;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
}

.author-info {
  flex: 1;
  text-align: center;
  order: 3;
}

.author-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1e1f21;
  margin-bottom: 4px;
}

.author-title {
  font-size: 0.65rem;
  color: #6b7280;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.testimonial-stars {
  font-size: 1rem;
  color: #FFC107;
  letter-spacing: 2px;
  margin-top: 8px;
}

.author-org {
  display: none;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  max-width: 12px;
  min-height: 12px;
  max-height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
  margin: 0;
  flex-shrink: 0;
}

.testimonial-dot:hover {
  background: #a0a4ab;
  transform: scale(1.15);
}

.testimonial-dot.active {
  background: #3575e2;
  width: 14px;
  height: 14px;
  min-width: 14px;
  max-width: 14px;
  min-height: 14px;
  max-height: 14px;
}

@media (max-width: 768px) {
  .dynamic-testimonials {
    padding: 60px 0;
  }

  .dynamic-testimonials .testimonials-title {
    font-size: 1.75rem;
  }

  .dynamic-testimonials .testimonials-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .testimonial-slides {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .testimonial-content {
    padding: 32px 24px;
  }

  .testimonial-quote {
    font-size: 0.95rem;
  }

  .author-avatar {
    width: 60px;
    height: 60px;
  }

  .author-name {
    font-size: 0.95rem;
  }

  .author-title {
    font-size: 0.8rem;
  }
}

/* =================== MEDIA RESOURCES SECTION =================== */
/* ---- Media resources: dark-text restoration ----
   .leadsonline h2/h3/p in styles.css is (0,1,1); wins over .media-title etc. (0,1,0).
   These section+element rules are also (0,1,1) and win by source order
   because cellhawk-overrides.css loads after styles.css.              */
.media-resources-section h2 { color: #000000; font-size: 2.6rem; }
.media-resources-section h3 { color: #0a1740; font-size: 1.35rem; }
.media-resources-section p  { color: #333; }

.media-resources-section {
  background: #fff;
  padding: 120px 0;
  position: relative;
}

.media-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}

.media-title {
  color: #000000;
  font-size: 2.6rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}

.media-subtitle {
  font-size: 1.125rem;
  color: #000000;
  line-height: 1.6;
  text-align: center;
}

.media-carousel {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.media-card {
  background: #f9fafb;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(50px);
}

.media-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays for smooth sequential appearance */
.media-card:nth-child(1) {
  transition-delay: 0.1s;
}

.media-card:nth-child(2) {
  transition-delay: 0.25s;
}

.media-card:nth-child(3) {
  transition-delay: 0.4s;
}

.media-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
}

.media-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #e3eafc 0%, #d4dff0 100%);
}

.media-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-content {
  padding: 32px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.media-product-tag {
  display: inline-block;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  align-self: flex-start;
}

.media-category {
  font-size: 0.9rem;
  font-weight: 700;
  color: #3575e2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.media-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0a1740;
  margin-bottom: 16px;
  line-height: 1.3;
}

.media-desc {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.media-link {
  color: #3575e2;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.media-link:hover {
  gap: 12px;
}

.media-link::after {
  content: '→';
}

/* Pagination Dots */
.media-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
}

.media-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  max-width: 12px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
  margin: 0;
}

.media-dot:hover {
  background: #a0a4ab;
  transform: scale(1.15);
}

.media-dot.active {
  background: #3575e2;
  width: 14px;
  height: 14px;
  min-width: 14px;
  max-width: 14px;
}

/* Responsive styles for media section */
@media (max-width: 1200px) {
  .media-carousel {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .media-resources-section {
    padding: 60px 0;
  }

  .media-title {
    font-size: 1.75rem;
  }

  .media-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .media-carousel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 24px;
  }

  .media-image {
    height: 220px;
  }

  .media-content {
    padding: 24px 20px;
  }

  .media-card-title {
    font-size: 1.15rem;
  }

  .media-desc {
    font-size: 0.95rem;
  }
}

/* =================== LANGUAGE DROPDOWN - SIMPLIFIED STYLING =================== */
.lang-dropdown {
  margin-right: 20px;
}

.lang-dropdown__toggle {
  background: transparent;
  border-radius: 0;
  padding: 8px 4px;
  box-shadow: none;
  height: auto;
  gap: 6px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.lang-dropdown__toggle:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
  opacity: 0.7;
}

/* =================== PRODUCT ANCHOR NAVIGATION =================== */
.product-anchor-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 40px;
}

.product-anchor-link {
  color: #1a1a2e;
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.product-anchor-link:hover {
  color: #3575e2;
}

.product-anchor-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #3575e2;
  transition: width 0.3s ease;
}

.product-anchor-link:hover::after,
.product-anchor-link.active::after {
  width: 100%;
}

.product-anchor-link.active {
  color: #3575e2;
}

/* Make product nav buttons smaller to fit anchor navigation */
.product-nav-btn {
  font-size: 0.75rem;
  padding: 6px 14px;
}

/* Hide Download Brochure button on medium screens to make room for anchor nav */
@media (max-width: 1300px) {
  .product-nav-btn.btn-outline {
    display: none;
  }
}

/* Responsive - adjust anchor nav spacing */
@media (max-width: 1200px) {
  .product-anchor-nav {
    gap: 10px;
  }

  .product-anchor-link {
    font-size: 0.7rem;
  }
}

@media (max-width: 1000px) {
  .product-anchor-nav {
    display: none;
  }
}

/* FAQ Section - Left-aligned header */
.cellhawk-faq .case-studies-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.cellhawk-faq .case-studies-title {
  color: #0a1628;
  font-weight: 600;
  font-size: 2.6rem;
}

html body.leadsonline .clearcase-faq .case-studies-header .case-studies-subtitle,
html body.leadsonline .clearcase-faq .case-studies-subtitle {
  color: #4a5568;
  font-size: 1.125rem;
  text-align: center;
  display: block;
  width: 100%;
  max-width: none; /* cancels .leadsonline p { max-width: 68ch } so the block spans full width */
  margin-left: auto;
  margin-right: auto;
}

.faq-subtitle-centered {
  text-align: center;
  display: block;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* How It Works Section - Match other section headers */
#how-it-works .clearcase-intro__h {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 2.6rem;
  color: #0a1628;
  line-height: 1.2;
}

@media (max-width: 768px) {
  #how-it-works .clearcase-intro__h {
    font-size: 1.75rem;
  }
}

/* =================== RESOURCES PAGE =================== */
.resources-header {
  background: white;
  padding: 80px 0 40px;
}

.resources-header .case-studies-header {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.resources-header .case-studies-title {
  color: #000000;
  font-size: 2.6rem;
  font-weight: 600;
}

.resources-header .case-studies-subtitle {
  color: #000000;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  margin-bottom: 32px;
}

.resources-filters {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  padding-bottom: 200px;
  border-top: 1px solid #e5e7eb;
  z-index: 100;
}

.resources-filter-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #1f2937;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.resources-filter-link:hover {
  color: #3575e2;
}

.resources-filter-link .dropdown-arrow {
  width: 10px;
  height: 6px;
  transition: transform 0.2s ease;
}

.resources-filter-dropdown {
  position: relative;
  z-index: 200;
}

.resources-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  min-width: 180px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 300;
}

.resources-filter-dropdown:hover .resources-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.resources-filter-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.resources-dropdown-item {
  display: block;
  padding: 10px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #1f2937;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.resources-dropdown-item:hover {
  background-color: #f3f4f6;
  color: #3575e2;
}

.resources-all-link {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #1f2937;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.resources-all-link:hover {
  color: #3575e2;
}

/* Success Stories Grid */
.resources-success-stories {
  background: white;
  padding: 60px 0 80px;
  display: none;
}

.resources-success-stories.active {
  display: block;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.resources-grid .case-study-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

body:not(.resources-page) .resources-grid .case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Resources page — disable hover animation on story cards */
.resources-highlights .resources-grid .case-study-card:hover,
.resources-success-stories .resources-grid .case-study-card:hover,
.resources-customer-stories .resources-grid .case-study-card:hover {
  transform: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: none;
}

.resources-grid .case-study-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.resources-grid .case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resources-grid .case-study-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.resources-grid .case-study-product-tag {
  display: inline-block;
  background: #e5e7eb;
  color: #4b5563;
  font-size: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  width: fit-content;
}

.resources-grid .case-study-agency {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.resources-grid .case-study-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0a1740;
  margin-bottom: 16px;
  line-height: 1.3;
}

.resources-grid .case-study-desc {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.resources-grid .case-study-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.resources-grid .case-study-link::after {
  content: '→';
  display: inline-block;
  transition: transform 0.3s ease;
}

.resources-grid .case-study-link:hover {
  color: #0a1740;
  gap: 12px;
}

.resources-grid .case-study-link:hover::after {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .resources-success-stories {
    padding: 40px 0 60px;
  }
}

/* =================== STORY MODAL =================== */
.story-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.story-modal.active {
  display: block;
}

.story-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.story-modal-content {
  position: relative;
  max-width: 1000px;
  max-height: 90vh;
  margin: 5vh auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.story-modal-close {
  position: absolute;
  top: 32px;
  right: 32px;
  left: auto;
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  min-height: 36px;
  max-height: 36px;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}

.story-modal-close:hover {
  color: #374151;
  background: #e5e7eb;
  transform: scale(1.1);
}

.story-modal-inner {
  display: flex;
  gap: 40px;
  padding: 48px;
  max-height: 90vh;
  overflow-y: auto;
}

.story-modal-image {
  flex-shrink: 0;
  width: 380px;
}

.story-modal-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.story-modal-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.story-modal-product-tag {
  display: inline-block;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.story-modal-agency {
  font-size: 0.9rem;
  font-weight: 700;
  color: #3575e2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.story-modal-title {
  font-family: 'Barlow', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 24px;
  line-height: 1.3;
}

.story-modal-story {
  font-size: 1.05rem;
  color: #1a1a2e;
  line-height: 1.7;
  white-space: pre-line;
}

@media (max-width: 900px) {
  .story-modal-content {
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
  }

  .story-modal-inner {
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
  }

  .story-modal-image {
    width: 100%;
  }

  .story-modal-close {
    top: 16px;
    right: 16px;
  }
}

/* =================== HOW IT WORKS INFOGRAPHIC =================== */

.cellhawk-how-it-works-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.how-it-works-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}

.how-it-works-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.cellhawk-how-it-works-section .container {
  position: relative;
  z-index: 2;
}

html body.leadsonline .cellhawk-how-it-works-section .clearcase-highlights__title {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 2.6rem;
  text-align: center;
  margin-bottom: 16px;
}

html body.leadsonline .cellhawk-how-it-works-section .use-cases-subtitle {
  text-align: center;
}

.how-it-works-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  margin-top: 64px;
  flex-wrap: nowrap;
}

.flow-step {
  flex: 0 0 260px;
  width: 260px;
  min-height: 320px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.flow-step.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.flow-step:hover {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.flow-step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.flow-step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.flow-step-icon svg {
  width: 48px;
  height: 48px;
}

.flow-step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  flex-shrink: 0;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #94a3b8;
  flex: 1;
}

.flow-arrow {
  flex-shrink: 0;
  color: #ffffff;
  opacity: 0;
  transform: translateX(-10px);
  display: flex;
  align-items: center;
}

.flow-arrow.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.flow-arrow svg {
  display: block;
}

/* Stagger animation delays */
.flow-step[data-step="1"] { transition-delay: 0.1s; }
.flow-step[data-step="2"] { transition-delay: 0.3s; }
.flow-step[data-step="3"] { transition-delay: 0.5s; }
.flow-step[data-step="4"] { transition-delay: 0.7s; }

.flow-arrow:nth-of-type(2) { transition-delay: 0.2s; }
.flow-arrow:nth-of-type(4) { transition-delay: 0.4s; }
.flow-arrow:nth-of-type(6) { transition-delay: 0.6s; }

/* Responsive - Stack vertically on mobile */
@media (max-width: 1024px) {
  .how-it-works-flow {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }

  .flow-step {
    max-width: 100%;
    width: 100%;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .flow-arrow.animate-in {
    transform: rotate(90deg);
    opacity: 1;
  }

  .flow-arrow svg {
    width: 24px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .cellhawk-how-it-works-section {
    padding: 60px 0;
  }

  .how-it-works-flow {
    margin-top: 48px;
    gap: 32px;
  }

  .flow-step {
    padding: 24px 20px;
  }

  .flow-step-title {
    font-size: 1.125rem;
  }

  .flow-step-desc {
    font-size: 0.875rem;
  }
}


/* ============================================================
   INTELLIGENCE OVERVIEW PAGE STYLES
   ============================================================ */

/* Hero dark overlay for readability */
.intel-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
  pointer-events: none;
}

html body.leadsonline.ballistics .intel-hero-overlay {
  background: rgba(0, 0, 0, 0.2);
}

/* Ensure hero content sits above overlay */
.intel-hero-overlay ~ .clearcase-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.intel-hero-overlay ~ .clearcase-hero-overlay .careers-hero-inner {
  pointer-events: auto;
}

/* Intro section image — match product section image size */
html body.leadsonline .leadsonline-overview .clearcase-intro__grid {
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

html body.leadsonline .leadsonline-overview .intro-side-card {
  max-width: 100%;
  width: 100%;
}

html body.leadsonline .leadsonline-overview .intro-side-card__media img {
  height: 340px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Intro paragraph spacing (replaces <br> for W3C compliance) */
.intel-intro-spacer {
  margin-top: 1em;
}

/* Section heading — matches other page headers */
html body.leadsonline h2.intel-section-heading {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 3.2rem;
  color: #000000;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px 0;
}

/* Hero title */
/* Intelligence hero — left-aligned, vertically centered, taller */
html body.leadsonline .clearcase-hero-section:has(.intel-hero-title) {
  height: min(75vh, 600px);
  min-height: 440px;
}

html body.leadsonline .clearcase-hero-section:has(.intel-hero-title) .careers-hero-overlay.clearcase-hero-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

html body.leadsonline .clearcase-hero-section .careers-hero-inner.clearcase-hero-inner:has(.intel-hero-title) {
  text-align: left;
  align-items: flex-start;
  justify-content: center;
  padding-left: 40px;
  padding-right: 20px;
}

html body.leadsonline .clearcase-hero-section:has(.intel-hero-title) .clearcase-hero-sub {
  max-width: 52ch;
}

.intel-hero-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 3.2rem;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px 0;
}

/* Product sections */
.intel-product-section {
  padding: 96px 0;
  background: #0b0d0f;
  color: #eef3fb;
  position: relative;
  overflow: hidden;
}

.intel-product-section--alt {
  background: #0f1216;
}

.intel-product-section--video {
  position: relative;
  overflow: hidden;
}

.intel-section-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.intel-section-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.intel-product-section--video .intel-product-inner {
  position: relative;
  z-index: 2;
}

.intel-product-section--light {
  background: #F5F9FF;
  color: #1a1a2e;
}

html body.leadsonline .intel-product-section--light h3.intel-product-tagline {
  color: #000000;
}

html body.leadsonline .intel-product-section--light .intel-product-description {
  color: #333;
}

html body.leadsonline .intel-product-section--light span.intel-feature-tag {
  background: #e5e7eb;
  color: #6b7280;
}

.intel-product-section--light .intel-product-logo--invert {
  filter: brightness(0) saturate(100%);
  max-width: 300px;
}

.intel-product-logo--large {
  max-width: 380px;
}

.intel-product-logo--medium {
  max-width: 240px;
}

.intel-product-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.intel-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intel-product-grid--reverse {
  direction: rtl;
}

.intel-product-grid--reverse > * {
  direction: ltr;
}

/* Product logo */
.intel-product-logo {
  max-width: 220px;
  height: auto;
  display: block;
  margin-bottom: 20px;
}

/* Product tagline */
html body.leadsonline .intel-product-tagline {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 3.2rem;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px 0;
}

/* Product description */
.intel-product-description {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 24px 0;
  max-width: 52ch;
}

/* Feature tags */
.intel-product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
}

html body.leadsonline span.intel-feature-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 6px;
  border: none;
  margin: 0;
  line-height: 1.4;
}

/* Product CTA */
.intel-product-cta {
  display: inline-block;
}

/* Product image */
.intel-product-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.intel-product-img-wrap img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
}

/* Blue accent line under content */
.intel-product-content::after {
  content: '';
  display: none;
}

/* CTA Section */
.intel-cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.intel-cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.intel-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intel-cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 31, 68, 0.8);
  z-index: 1;
}

.intel-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.intel-cta-heading {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 3.2rem;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 20px 0;
}

.intel-cta-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 40px 0;
}

.intel-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.intel-cta-btn {
  min-width: 180px;
}

/* Intelligence page: case studies section */
html body.leadsonline .case-studies-section {
  padding: 96px 0;
  background: #fff;
}

html body.leadsonline .case-studies-carousel {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

html body.leadsonline.grant .case-studies-carousel {
  grid-template-columns: repeat(2, minmax(0, 560px));
  justify-content: center;
  max-width: 1200px;
}

@media (max-width: 768px) {
  html body.leadsonline .case-studies-carousel {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 24px;
  }
  html body.leadsonline.grant .case-studies-carousel {
    grid-template-columns: 1fr;
  }
}

html body.leadsonline.grant .fade-in-right {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ===== Learning page hero overlay ===== */
html body.leadsonline.learning .clearcase-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

html body.leadsonline.learning .clearcase-hero-overlay .careers-hero-inner {
  pointer-events: auto;
}

html body.leadsonline .case-study-card {
  background: #f9fafb;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(50px);
}

html body.leadsonline .case-study-card.visible {
  opacity: 1;
  transform: translateY(0);
}

html body.leadsonline:not(.resources-page) .case-study-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
}

/* Resources page — disable hover animation on story cards */
html body.leadsonline .resources-highlights .resources-grid .case-study-card:hover,
html body.leadsonline .resources-success-stories .resources-grid .case-study-card:hover,
html body.leadsonline .resources-customer-stories .resources-grid .case-study-card:hover {
  transform: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: none;
}

html body.leadsonline .resources-highlights .resources-grid .case-study-card:hover .case-study-image img,
html body.leadsonline .resources-success-stories .resources-grid .case-study-card:hover .case-study-image img,
html body.leadsonline .resources-customer-stories .resources-grid .case-study-card:hover .case-study-image img {
  transform: none;
}

html body.leadsonline .case-study-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #e3eafc 0%, #d4dff0 100%);
}

html body.leadsonline .case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

html body.leadsonline:not(.resources-page) .case-study-card:hover .case-study-image img {
  transform: scale(1.08);
}

html body.leadsonline .case-study-content {
  padding: 32px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

html body.leadsonline .case-study-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  color: #3d5afe;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s ease;
}

html body.leadsonline .case-study-cta:hover {
  gap: 10px;
}

html body.leadsonline h1.case-studies-title,
html body.leadsonline h2.case-studies-title {
  color: #000000;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 3.2rem;
}

/* FAQ section title — match other section headers across all pages */
html body.leadsonline .clearcase-faq h1.case-studies-title,
html body.leadsonline .clearcase-faq h2.case-studies-title {
  font-size: 2.6rem;
}

@media (max-width: 768px) {
  html body.leadsonline .clearcase-faq h1.case-studies-title,
  html body.leadsonline .clearcase-faq h2.case-studies-title {
    font-size: 1.75rem;
  }
}

html body.leadsonline .case-studies-subtitle {
  color: #333333;
}

html body.leadsonline h3.case-study-title {
  color: #000000;
}

html body.leadsonline .case-study-desc {
  color: #333333;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

html body.leadsonline .case-study-product-tag {
  display: inline-block;
  width: auto;
  background: #e5e7eb;
  color: #4b5563;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  align-self: flex-start;
}

html body.leadsonline .case-study-agency {
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

html body.leadsonline .case-study-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  transition: gap 0.3s;
}

html body.leadsonline .case-study-link:hover {
  gap: 12px;
}

html body.leadsonline .case-study-link::after {
  content: '\2192';
}

html body.leadsonline .case-studies-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
}

html body.leadsonline .pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

html body.leadsonline .pagination-dot.active {
  background: #3575e2;
  transform: scale(1.2);
}

/* ---- Responsive: Intelligence Page ---- */
@media (max-width: 1024px) {
  .intel-hero-title {
    font-size: 2.4rem;
  }

  .intel-product-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intel-product-grid--reverse {
    direction: ltr;
  }

  .intel-product-section {
    padding: 64px 0;
  }

  .intel-cta-heading {
    font-size: 2.2rem;
  }

  .intel-cta-section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .intel-hero-title {
    font-size: 2rem;
  }

  .intel-product-tagline {
    font-size: 2rem;
  }

  .intel-product-section {
    padding: 48px 0;
  }

  .intel-product-logo {
    max-width: 180px;
  }

  .intel-cta-heading {
    font-size: 1.8rem;
  }

  .intel-cta-section {
    padding: 64px 0;
  }

  .intel-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .intel-hero-title {
    font-size: 1.6rem;
  }

  .intel-product-tagline {
    font-size: 1.6rem;
  }

  .intel-product-logo {
    max-width: 150px;
  }

  .intel-product-description {
    font-size: 0.95rem;
  }

}

/* ============================================================
   MEDIA CARD SHARE FUNCTIONALITY
   ============================================================ */
.media-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.media-tag-row .media-product-tag {
  margin-bottom: 0;
}

.case-study-share-wrapper {
  position: relative;
}

.case-study-share-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.case-study-share-btn img {
  filter: invert(38%) sepia(73%) saturate(1000%) hue-rotate(196deg) brightness(92%) contrast(90%);
}

.case-study-share-btn:hover {
  background: rgba(53, 117, 226, 0.1);
}

.share-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  min-width: 160px;
  z-index: 100;
  border: 1px solid #e5e7eb;
}

.share-dropdown[hidden] {
  display: none;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.share-option:hover {
  background: #f3f4f6;
}

.share-facebook:hover {
  color: #1877f2;
}

.share-linkedin:hover {
  color: #0a66c2;
}

/* Product image: natural size, no fixed height or cropping */
.intel-product-img-wrap--natural {
  overflow: visible;
  box-shadow: none;
}
.intel-product-img-wrap--natural img {
  height: auto;
  object-fit: unset;
  width: 70%;
}
.intel-product-img-wrap--natural.intel-product-img-wrap--lg img {
  width: 84%;
}
.intel-product-img-wrap--natural.intel-product-img-wrap--xl img {
  width: 98%;
}
.intel-product-section--light .intel-product-logo--small {
  max-width: 160px;
}

/* ===== Ballistics page heading size overrides ===== */
html body.leadsonline.ballistics h2.intel-section-heading {
  font-size: 2.6rem;
  color: #000000;
}

html body.leadsonline.ballistics h3.intel-product-tagline {
  font-size: 2.6rem;
  color: #ffffff;
}

html body.leadsonline.ballistics .intel-product-section--light h3.intel-product-tagline {
  color: #000000;
}

html body.leadsonline.ballistics h2.ballistics-resources-title {
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #000000;
}

html body.leadsonline.ballistics .case-study-image img.card-img-contain {
  object-fit: contain;
  padding: 16px;
}

html body.leadsonline.ballistics .intel-cta-heading {
  font-size: 2.6rem;
}

html body.leadsonline.ballistics #ibis-solution .intel-product-img-wrap img {
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.18));
}

/* 3D pistol model — model-viewer */
.ibis-model-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
}

#ibis-gun-viewer {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  --progress-bar-color: transparent;
}

/* Quantum 3D Microscope model-viewer */
.quantum-model-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
}

#quantum-model-viewer {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  --progress-bar-color: transparent;
}

/* IBIS benefits card 6 — video fills frame */
body.ibis .customer-key-benefits .case-study-card:nth-child(6) .case-study-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* IBIS benefits card 3 — video shown in full (contain) with dark background */
body.ibis .customer-key-benefits .case-study-card:nth-child(3) .case-study-image {
  background: #000;
}

body.ibis .customer-key-benefits .case-study-card:nth-child(3) .case-study-image video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* IBIS overview — slightly smaller quantum model */
body.ibis .quantum-model-wrap {
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
}



/* IBIS page — Real-World Impact section: 3-card grid, wider and centered */
body.ibis #use-cases .features-grid-cards {
  grid-template-columns: repeat(3, minmax(0, 380px));
  justify-content: center;
}

/* Q3M page — Use Cases section: 3-card grid, wider and centered */
body.q3m #use-cases .features-grid-cards {
  grid-template-columns: repeat(3, minmax(0, 440px));
  justify-content: center;
}

/* IBIS / Q3M — stack use-case cards on mobile */
@media (max-width: 768px) {
  body.ibis #use-cases .features-grid-cards,
  body.q3m #use-cases .features-grid-cards {
    grid-template-columns: 1fr;
  }

  /* Watch Video button — keep pill shape, reduce size on mobile */
  .how-it-works-watch-cta {
    font-size: 0.9rem;
    padding: 10px 24px;
  }
}

/* IBIS page — hero logo: invert to white and reduce size */
body.ibis .ibis-hero-logo {
  filter: brightness(0) invert(1);
  height: 48px;
  width: auto;
}

/* IBIS page — hero footnote */
body.ibis .ibis-hero-footnote {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin-top: -10px;
  max-width: 65ch;
}

/* IBIS page — How It Works light section */
body.ibis #how-it-works.clearcase-intro {
  background: #ffffff;
  color: #0b0d0f;
}

body.ibis #how-it-works .clearcase-intro__h {
  color: #0b0d0f;
}

body.ibis #how-it-works .clearcase-intro__p {
  color: #3a3f4a;
}

body.ibis #how-it-works .clearcase-intro__col--left::after {
  background: linear-gradient(90deg, #3aa0ff, #6ec3ff);
}

body.ibis #how-it-works .animate-card {
  opacity: 1;
  transform: none;
}

body.ibis #how-it-works .clearcase-intro__list {
  margin: 0 0 18px 0;
  padding-left: 20px;
  color: #3a3f4a;
  line-height: 1.65;
  font-size: 1.02rem;
}

body.ibis #how-it-works .clearcase-intro__list li {
  margin-bottom: 10px;
}

/* Q3M page — How It Works light section */
body.q3m #how-it-works.clearcase-intro {
  background: #ffffff;
  color: #0b0d0f;
}

body.q3m #how-it-works .clearcase-intro__h {
  color: #0b0d0f;
}

body.q3m #how-it-works .clearcase-intro__p {
  color: #3a3f4a;
}

body.q3m #how-it-works .clearcase-intro__col--left::after {
  background: linear-gradient(90deg, #3aa0ff, #6ec3ff);
}

body.q3m #how-it-works .animate-card {
  opacity: 1;
  transform: none;
}

body.q3m #how-it-works .clearcase-intro__list {
  margin: 0 0 18px 0;
  padding-left: 20px;
  color: #3a3f4a;
  line-height: 1.65;
  font-size: 1.02rem;
}

body.q3m #how-it-works .clearcase-intro__list li {
  margin-bottom: 10px;
}

body.q3m #how-it-works .clearcase-intro__grid {
  grid-template-columns: 1fr 560px;
  align-items: center;
}

body.q3m #hiw-rack-viewer {
  width: 100%;
  height: 700px;
  background: transparent;
}

body.ibis #how-it-works .clearcase-intro__grid {
  grid-template-columns: 1fr 560px;
  align-items: center;
}

body.ibis #hiw-rack-viewer {
  width: 100%;
  height: 700px;
  background: transparent;
}

/* IBIS — How It Works: stack model below copy and center text on mobile */
@media (max-width: 768px) {
  body.ibis #how-it-works .clearcase-intro__grid {
    grid-template-columns: 1fr;
  }

  body.ibis #how-it-works .clearcase-intro__col--left {
    text-align: center;
  }

  body.ibis #how-it-works .clearcase-intro__list {
    text-align: left;
    display: inline-block;
  }

  body.ibis #hiw-rack-viewer {
    height: 400px;
  }
}

body.ibis .ibis-bullettrax-model-wrap {
  width: 100%;
  height: 900px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}

body.ibis #overview .clearcase-intro__grid {
  grid-template-columns: 1fr 600px;
  align-items: center;
}

body.ibis #overview .clearcase-intro__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

body.ibis .ibis-bullettrax-model-wrap model-viewer {
  width: 100%;
  height: 100%;
  --progress-bar-color: transparent;
}

/* IBIS page — 3D model disclaimer */
body.ibis .ibis-model-disclaimer {
  font-size: 0.72rem;
  line-height: 1.3;
  color: #000;
  margin-top: 16px;
  text-align: center;
  width: 100%;
  opacity: 0.5;
  position: relative;
  z-index: 1;
}

/* Q3M page — overview model (mirrors IBIS layout) */
body.q3m #overview .clearcase-intro__grid {
  grid-template-columns: 1fr 600px;
  align-items: center;
}

body.q3m #overview .clearcase-intro__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

body.q3m .quantum-model-wrap {
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
}

/* Q3M page — 3D model disclaimer */
html body.q3m .ibis-model-disclaimer {
  font-size: 0.72rem;
  line-height: 1.3;
  color: #000000;
  margin-top: 16px;
  text-align: center;
  width: 100%;
  opacity: 1;
  position: relative;
  z-index: 1;
}

/* Ballistics page — 3D model disclaimer */
body.ballistics .ballistics-model-disclaimer {
  font-size: 0.72rem;
  line-height: 1.3;
  color: #000;
  margin-top: 6px;
  text-align: center;
  width: 100%;
  opacity: 0.5;
}

/* Benefits section disclaimer */
.cellhawk-benefits-disclaimer,
.customer-key-benefits .cellhawk-benefits-disclaimer,
.customer-key-benefits .case-study-card .cellhawk-benefits-disclaimer {
  font-size: 0.65rem;
  color: #9ca3af;
  text-align: left;
  margin-top: 10px;
  width: 100%;
  line-height: 1.4;
}

/* IBIS page — Real-World Impact section background image */
body.ibis #use-cases {
  background:
    linear-gradient(rgba(10, 22, 40, 0.72), rgba(10, 22, 40, 0.72)),
    url('images/digital-forex-chart-with-glowing-diagram-stock-ma-2026-01-11-08-35-51-utc.jpg') center center / cover no-repeat;
}

/* ============================================================
   IBIS page — How IBIS Works (scrollytelling)
   ============================================================ */
body.ibis .ibis-how-it-works {
  background: #f8f9fb;
  padding: 0;
}

/* Tall scroll driver — 140vh per panel × 5 panels + outro */
body.ibis .ibis-hiw__scroll-driver {
  height: 840vh;
  position: relative;
}

/* Sticky viewport */
body.ibis .ibis-hiw__sticky-stage {
  position: sticky;
  top: 124px;
  height: calc(100vh - 124px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 32px 24px 48px;
  box-sizing: border-box;
}

/* Header */
body.ibis .ibis-hiw__stage-header {
  text-align: center;
  margin-bottom: 56px;
  flex-shrink: 0;
}

body.ibis .ibis-hiw__stage-sub {
  font-size: 0.95rem;
  color: #5a6a80;
  max-width: 620px;
  margin: 10px auto 0;
  line-height: 1.6;
}

/* Panel container */
body.ibis .ibis-hiw__panels {
  position: relative;
  width: 100%;
  max-width: 900px;
  flex: 1;
  min-height: 0;
}

/* Individual panels — stacked, only active visible */
body.ibis .ibis-hiw__panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

body.ibis .ibis-hiw__panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.ibis .ibis-hiw__panel.exit {
  opacity: 0;
  transform: translateY(-20px);
}

/* Panel with model — model on left, text on right */
body.ibis .ibis-hiw__panel-model {
  width: 260px;
  height: 260px;
  flex-shrink: 0;
}

body.ibis .ibis-hiw__panel-model model-viewer {
  width: 100%;
  height: 100%;
  --progress-bar-color: transparent;
}

/* Text block */
body.ibis .ibis-hiw__panel-text {
  max-width: 480px;
}

body.ibis .ibis-hiw__panel-num {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: #2563eb;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

body.ibis .ibis-hiw__panel-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 12px;
}

body.ibis .ibis-hiw__panel-desc {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.7;
}

body.ibis .ibis-hiw__panel-desc strong {
  color: #0a1628;
  font-weight: 600;
}

/* Progress dots */
body.ibis .ibis-hiw__dots {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  flex-shrink: 0;
}

body.ibis .ibis-hiw__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(37,99,235,0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}

body.ibis .ibis-hiw__dot.active {
  background: #2563eb;
  transform: scale(1.3);
}

@media (max-width: 768px) {
  body.ibis .ibis-hiw__scroll-driver {
    height: 600vh;
  }
  body.ibis .ibis-hiw__panel {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  body.ibis .ibis-hiw__panel-model {
    width: 180px;
    height: 180px;
  }
  body.ibis .ibis-hiw__panel-num {
    font-size: 3.5rem;
  }
}

/* IBIS How It Works — larger model variant */
body.ibis .ibis-hiw__panel-model--lg {
  width: 460px;
  height: 460px;
  margin-right: -32px;
}

/* IBIS How It Works — outro overlay (appears over panel 5) */
body.ibis .ibis-hiw__outro {
  width: 100%;
  max-width: 700px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  padding: 16px 24px 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

body.ibis .ibis-hiw__outro.visible {
  opacity: 1;
  pointer-events: auto;
}

body.ibis .ibis-hiw__outro-copy {
  font-size: 1.1rem;
  font-weight: 500;
  color: #0a1628;
  line-height: 1.65;
}

body.ibis .ibis-hiw__outro-cta {
  font-size: 1rem;
  padding: 14px 36px;
}

/* unused dot variant kept for safety */
body.ibis .ibis-hiw__dot--outro.active {
  background: #2563eb;
  border-color: #2563eb;
}

/* ---- Q3M: Hero logo ---- */
body.q3m .q3m-hero-logo {
  display: block;
  height: 48px;
  width: auto;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
}

/* ---- Q3M: ADA — pause decorative hero video for reduced-motion users ---- */
@media (prefers-reduced-motion: reduce) {
  body.q3m .clearcase-hero-video {
    display: none;
  }
}

/* ---- Q3M: ADA — focus ring on pagination dots for keyboard users ---- */
body.q3m .benefits-pagination .pagination-dot:focus-visible {
  outline: 3px solid #3575e2;
  outline-offset: 3px;
}
