/* =========================================================
   CLIENT SUCCESS PAGE — ENTERPRISE-CLASS PROFESSIONAL DESIGN
   Scope: /client-success/*
   Typography: Poppins (headings) + Lato (body)
   Responsive: Mobile to 5K (320px - 5120px)
   ========================================================= */

/* -----------------------------
   IMPORTS & TYPOGRAPHY
------------------------------ */
/* Note: Google Fonts loaded globally via common-scripts.php */

:root {
  --cs-primary: #0b5ed7;
  --cs-primary-dark: #084298;
  --cs-accent: #10b981;
  --cs-accent-dark: #059669;
  --cs-text-dark: #1a1a1a;
  --cs-text-medium: #444;
  --cs-text-light: #666;
  --cs-bg-light: #f7f9fc;
  --cs-bg-white: #ffffff;
  --cs-border: #e5e7eb;
  --cs-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --cs-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --cs-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Font stacks */
  --font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Hero gradients - matched to actual hero image color palettes */
  --hero-gradient-1: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(109, 40, 217, 0.55) 100%); /* Hero1: Purple/blue gears */
  --hero-gradient-2: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(29, 78, 216, 0.55) 100%); /* Hero2: Blue screen */
  --hero-gradient-3: linear-gradient(135deg, rgba(14, 165, 233, 0.35) 0%, rgba(2, 132, 199, 0.55) 100%); /* Hero3: Cyan cloud */
  --hero-gradient-4: linear-gradient(135deg, rgba(20, 184, 166, 0.35) 0%, rgba(13, 148, 136, 0.55) 100%); /* Hero4: Teal security */
  --hero-gradient-5: linear-gradient(135deg, rgba(249, 115, 22, 0.35) 0%, rgba(194, 65, 12, 0.55) 100%); /* Hero5: Orange datacenter */
  --hero-gradient-6: linear-gradient(135deg, rgba(239, 68, 68, 0.35) 0%, rgba(185, 28, 28, 0.55) 100%); /* Hero6: Red USB device */
  --hero-gradient-7: linear-gradient(135deg, rgba(168, 85, 247, 0.35) 0%, rgba(124, 58, 237, 0.55) 100%); /* Hero7: Purple-violet workspace */
  --hero-gradient-8: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(5, 150, 105, 0.55) 100%); /* Hero8: Green-teal cloud */
  --hero-gradient-9: linear-gradient(135deg, rgba(244, 63, 94, 0.35) 0%, rgba(225, 29, 72, 0.55) 100%); /* Hero9: Rose zero-trust */
  --hero-gradient-10: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(5, 150, 105, 0.55) 100%); /* Hero10: Emerald lock */
  --hero-gradient-11: linear-gradient(135deg, rgba(14, 165, 233, 0.35) 0%, rgba(2, 132, 199, 0.55) 100%); /* Hero11: Sky blue sync */

  /* Darker gradient variants for results and audience sections */
  --hero-gradient-dark-1: linear-gradient(135deg, rgb(109, 40, 217) 0%, rgb(76, 29, 149) 100%);
  --hero-gradient-dark-2: linear-gradient(135deg, rgb(29, 78, 216) 0%, rgb(30, 58, 138) 100%);
  --hero-gradient-dark-3: linear-gradient(135deg, rgb(2, 132, 199) 0%, rgb(3, 105, 161) 100%);
  --hero-gradient-dark-4: linear-gradient(135deg, rgb(13, 148, 136) 0%, rgb(15, 118, 110) 100%);
  --hero-gradient-dark-5: linear-gradient(135deg, rgb(194, 65, 12) 0%, rgb(154, 52, 18) 100%);
  --hero-gradient-dark-6: linear-gradient(135deg, rgb(185, 28, 28) 0%, rgb(153, 27, 27) 100%);
  --hero-gradient-dark-7: linear-gradient(135deg, rgb(124, 58, 237) 0%, rgb(91, 33, 182) 100%);
  --hero-gradient-dark-8: linear-gradient(135deg, rgb(5, 150, 105) 0%, rgb(4, 120, 87) 100%);
  --hero-gradient-dark-9: linear-gradient(135deg, rgb(225, 29, 72) 0%, rgb(190, 18, 60) 100%);
  --hero-gradient-dark-10: linear-gradient(135deg, rgb(5, 150, 105) 0%, rgb(4, 120, 87) 100%);
  --hero-gradient-dark-11: linear-gradient(135deg, rgb(2, 132, 199) 0%, rgb(3, 105, 161) 100%);
}

/* Note: Body typography is handled globally. overflow-x controlled by header.css */

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--cs-text-dark);
  margin-top: 0;
}

/* -----------------------------
   BREADCRUMB - Styles moved to core/breadcrumb.css
------------------------------ */

/* -----------------------------
   HERO SECTION - Using hero-centered.css
   Uses default positioning to match other migrated pages
------------------------------ */

/* Hero gradient variations based on hero image number */
.hero-centered.hero1 { --hero-gradient: var(--hero-gradient-1); }
.hero-centered.hero2 { --hero-gradient: var(--hero-gradient-2); }
.hero-centered.hero3 { --hero-gradient: var(--hero-gradient-3); }
.hero-centered.hero4 { --hero-gradient: var(--hero-gradient-4); }
.hero-centered.hero5 { --hero-gradient: var(--hero-gradient-5); }
.hero-centered.hero6 { --hero-gradient: var(--hero-gradient-6); }
.hero-centered.hero7 { --hero-gradient: var(--hero-gradient-7); }
.hero-centered.hero8 { --hero-gradient: var(--hero-gradient-8); }
.hero-centered.hero9 { --hero-gradient: var(--hero-gradient-9); }
.hero-centered.hero10 { --hero-gradient: var(--hero-gradient-10); }
.hero-centered.hero11 { --hero-gradient: var(--hero-gradient-11); }

/* -----------------------------
   CLIENT INFO BADGE - Content Section
   Positioned before Challenge/Solution wrapper
------------------------------ */
.cs-client-badge-wrapper {
  text-align: center;
  margin-bottom: clamp(30px, 4vw, 50px);
}

.cs-client-badge {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 18px);
  background: linear-gradient(135deg, var(--cs-primary), var(--cs-primary-dark));
  padding: clamp(12px, 1.2vw, 18px) clamp(24px, 2.5vw, 40px);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.1vw, 20px);
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(11, 94, 215, 0.25);
  transition: var(--cs-transition);
}

.cs-client-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(11, 94, 215, 0.35);
}

.cs-client-name, .cs-industry {
  color: #ffffff;
  letter-spacing: 0.3px;
}

.cs-separator {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

/* -----------------------------
   MAIN CONTENT CONTAINER
------------------------------ */
.cs-main {
  padding: var(--section-padding-y) var(--page-padding-x);
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* -----------------------------
   CHALLENGE & SOLUTION SECTIONS
------------------------------ */
/* Container for side-by-side layout on desktop */
.cs-challenge-solution-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 4vw, 60px);
  margin-bottom: clamp(50px, 6vw, 80px);
}

/* Mobile: Stack vertically */
@media (max-width: 1024px) {
  .cs-challenge-solution-wrapper {
    grid-template-columns: 1fr;
    gap: clamp(40px, 5vw, 50px);
  }
}

/* Add more top margin on mobile to separate from breadcrumb */
@media (max-width: 767px) {
  .cs-challenge-solution-wrapper {
    margin-top: clamp(30px, 6vw, 50px);
  }
}

.cs-section {
  margin-bottom: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Ensure equal height content boxes */
.cs-section .cs-content-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cs-section-icon {
  width: clamp(48px, 6vw, 80px);
  height: clamp(48px, 6vw, 80px);
  margin: 0 auto clamp(20px, 2vw, 32px);
  color: var(--cs-accent);
}

.cs-section-icon svg {
  width: 100%;
  height: 100%;
}

.cs-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: clamp(24px, 3vw, 40px);
  color: var(--cs-text-dark);
}

/* Implementation card titles (h3) - smaller than section h2 */
.cs-impl-item h3 {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  margin-bottom: clamp(16px, 1.8vw, 22px);
  color: var(--cs-text-dark);
}

.cs-content-box {
  background: var(--cs-bg-light);
  border-left: 4px solid var(--cs-accent);
  padding: clamp(30px, 4vw, 50px);
  border-radius: 8px;
  box-shadow: var(--cs-shadow);
}

.cs-content-box p {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.1vw, 28px);
  font-weight: 400;
  line-height: 1.8;
  color: var(--cs-text-medium);
  margin-bottom: 18px;
  text-align: justify;
  text-align-last: left;
}

.cs-content-box p:last-child {
  margin-bottom: 0;
}

/* Bullets inside content box */
.cs-content-box ul {
  margin-top: 20px;
  padding-left: 0;
  list-style: none;
}

.cs-content-box ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.1vw, 28px);
  font-weight: 400;
  line-height: 1.8;
  color: var(--cs-text-medium);
  text-align: justify;
  text-align-last: left;
}

.cs-content-box ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--cs-accent), var(--cs-accent-dark));
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Challenge section uses amber bullets */
.cs-challenge .cs-content-box ul li::before {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Different accent colors for Challenge vs Solution */
.cs-challenge .cs-content-box {
  border-left-color: #f59e0b; /* Amber/Orange for challenges/problems */
}

.cs-challenge .cs-section-icon {
  color: #f59e0b;
}

.cs-solution .cs-content-box {
  border-left-color: var(--cs-accent); /* Green for solutions */
}

.cs-solution .cs-section-icon {
  color: var(--cs-accent);
}

/* -----------------------------
   IMPLEMENTATION SECTIONS - GRID LAYOUT
------------------------------ */
.cs-implementation {
  margin: clamp(50px, 6vw, 70px) 0 clamp(30px, 4vw, 50px);
  padding: 0;
}

.cs-section-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.cs-section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 36px);
  font-weight: 700;
  color: var(--cs-text-dark);
}

/* Grid Container - matches Challenge/Solution layout */
.cs-impl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 4vw, 60px);
  margin-bottom: 0;
}

/* Implementation Item - matches .cs-section structure */
.cs-impl-item {
  margin-bottom: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

/* Ensure equal height content boxes - stretch to fill available space */
.cs-impl-item .cs-content-box {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Different accent colors for each implementation card */
.cs-impl-item:nth-child(3n+1) .cs-content-box {
  border-left-color: #0b5ed7; /* Blue */
}

.cs-impl-item:nth-child(3n+1) .cs-section-icon {
  color: #0b5ed7;
}

.cs-impl-item:nth-child(3n+2) .cs-content-box {
  border-left-color: #10b981; /* Green */
}

.cs-impl-item:nth-child(3n+2) .cs-section-icon {
  color: #10b981;
}

.cs-impl-item:nth-child(3n+3) .cs-content-box {
  border-left-color: #f59e0b; /* Amber/Orange */
}

.cs-impl-item:nth-child(3n+3) .cs-section-icon {
  color: #f59e0b;
}

/* Different bullet colors for each implementation card */
.cs-impl-item:nth-child(3n+1) .cs-content-box ul li::before {
  background: linear-gradient(135deg, #0b5ed7, #0a4fb8);
  box-shadow: 0 2px 8px rgba(11, 94, 215, 0.3);
}

.cs-impl-item:nth-child(3n+2) .cs-content-box ul li::before {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.cs-impl-item:nth-child(3n+3) .cs-content-box ul li::before {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* -----------------------------
   RESULTS SECTION
------------------------------ */
.cs-results {
  background: linear-gradient(135deg, #0b5ed7 0%, #0dcaf0 100%);
  padding: clamp(40px, 5vw, 60px) 0;
}

.cs-results-header {
  text-align: center;
  margin-bottom: clamp(50px, 6vw, 70px);
}

.cs-results-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 36px);
  font-weight: 700;
  color: #ffffff;
}

/* Metrics Grid */
.cs-metrics-grid {
  display: grid;
  /* Increased min width from 250px to 280px for better text accommodation */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-bottom: clamp(50px, 6vw, 70px);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.cs-metric-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  /* Increased padding for better text accommodation */
  padding: clamp(35px, 4.5vw, 55px) clamp(25px, 3.5vw, 45px);
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: var(--cs-transition);
  /* Ensure content doesn't overflow */
  overflow: hidden;
  /* Better box sizing for consistent padding */
  box-sizing: border-box;
  /* Safari-specific backdrop-filter support */
  -webkit-backdrop-filter: blur(10px);
}

.cs-metric-card:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  transform: translateY(-8px);
}

.cs-metric-value {
  font-family: var(--font-heading);
  /* Max size matches section title - cannot be larger than h2 */
  font-size: clamp(18px, 1.8vw, 32px);
  font-weight: 800;
  color: #ffffff;
  /* Increased margin for better spacing */
  margin-bottom: clamp(16px, 2vw, 24px);
  /* Improved line-height for multi-line text */
  line-height: 1.15;
  /* Cross-browser word wrapping for long text like "Multiple/Day" */
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
  /* Ensure text doesn't overflow card */
  max-width: 100%;
}

.cs-metric-label {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: clamp(8px, 1vw, 12px);
  /* Better line spacing for multi-line labels */
  line-height: 1.3;
  /* Cross-browser word wrapping */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.cs-metric-description {
  font-family: var(--font-body);
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Outcomes List */
.cs-outcomes {
  max-width: 1000px;
  margin: 0 auto;
}

.cs-outcomes h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: clamp(30px, 4vw, 50px);
}

.cs-outcomes-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.cs-outcomes-list li {
  position: relative;
  padding-left: 36px;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

.cs-outcomes-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

/* -----------------------------
   TESTIMONIAL SECTION
------------------------------ */
.cs-testimonial {
  padding: clamp(50px, 6vw, 80px) 0;
  background: var(--cs-bg-white);
}

/* Spacer when testimonial is hidden - maintains consistent vertical rhythm */
.cs-testimonial-spacer {
  padding: clamp(40px, 5vw, 60px) 0;
  background: transparent;
}

.cs-testimonial-card {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.cs-quote-icon {
  width: clamp(60px, 8vw, 100px);
  height: clamp(60px, 8vw, 100px);
  margin: 0 auto clamp(24px, 3vw, 40px);
  color: var(--cs-accent);
  opacity: 0.3;
}

.cs-quote-icon svg {
  width: 100%;
  height: 100%;
}

.cs-testimonial-card blockquote {
  margin: 0;
  padding: 0;
  text-align: center;
}

.cs-testimonial-card blockquote p {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.5vw, 30px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  color: var(--cs-text-dark);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.cs-testimonial-card footer {
  text-align: center;
}

.cs-testimonial-card cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.5vw, 8px);
}

.cs-testimonial-card cite strong {
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.2vw, 22px);
  font-weight: 600;
  color: var(--cs-text-dark);
}

.cs-testimonial-card cite span {
  font-family: var(--font-body);
  font-size: clamp(14px, 1vw, 18px);
  color: var(--cs-text-light);
}

/* -----------------------------
   AUDIENCE SECTION
------------------------------ */
.cs-audience {
  background: var(--cs-bg-light);
  padding: clamp(40px, 5vw, 60px) 0;
  padding-bottom: clamp(45px, 6vw, 70px);
  margin-bottom: 0;
}

/* Audience section uses same dark gradient as CTA */
.cs-audience.hero1 { background: var(--hero-gradient-dark-1); }
.cs-audience.hero2 { background: var(--hero-gradient-dark-2); }
.cs-audience.hero3 { background: var(--hero-gradient-dark-3); }
.cs-audience.hero4 { background: var(--hero-gradient-dark-4); }
.cs-audience.hero5 { background: var(--hero-gradient-dark-5); }
.cs-audience.hero6 { background: var(--hero-gradient-dark-6); }
.cs-audience.hero7 { background: var(--hero-gradient-dark-7); }
.cs-audience.hero8 { background: var(--hero-gradient-dark-8); }
.cs-audience.hero9 { background: var(--hero-gradient-dark-9); }
.cs-audience.hero10 { background: var(--hero-gradient-dark-10); }
.cs-audience.hero11 { background: var(--hero-gradient-dark-11); }

.cs-audience-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.cs-audience-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

/* Equal-height cards using flexbox */
.cs-audience .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.cs-audience-card-wrapper {
  display: flex;
  padding: 15px;
  width: 50%;
  box-sizing: border-box;
}

/* Mobile: Full width cards */
@media (max-width: 767px) {
  .cs-audience-card-wrapper {
    width: 100%;
  }

  .cs-audience .row {
    margin: 0;
  }
}

.cs-audience-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: clamp(34px, 5vw, 48px);
  border-radius: 12px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cs-audience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.cs-audience-card:hover::before {
  transform: scaleX(1);
}

.cs-audience-card:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  transform: translateY(-8px);
}

/* Audience Header (Icon + Title) */
.cs-audience-card-header {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: 24px;
}

.cs-audience-icon {
  width: clamp(70px, 10vw, 90px);
  height: clamp(70px, 10vw, 90px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-audience-icon svg {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.cs-audience-card:hover .cs-audience-icon svg {
  transform: scale(1.1) rotate(5deg);
}

.cs-audience-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.2vw, 1.8rem);
  font-weight: 600;
  margin: 0;
  color: #ffffff;
  line-height: 1.3;
}

.cs-audience-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  flex-grow: 1;
}

.cs-audience-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: clamp(16px, 1vw, 26px);
  font-weight: 400;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  text-align: justify;
  text-align-last: left;
}

.cs-audience-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 16px;
}

/* -----------------------------
   CTA SECTION
------------------------------ */
.cs-cta {
  padding: clamp(45px, 6vw, 70px) 0;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cs-primary) 0%, var(--cs-primary-dark) 100%);
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

/* CTA backgrounds use darker hero gradients */
.cs-cta.hero1 { background: var(--hero-gradient-dark-1); }
.cs-cta.hero2 { background: var(--hero-gradient-dark-2); }
.cs-cta.hero3 { background: var(--hero-gradient-dark-3); }
.cs-cta.hero4 { background: var(--hero-gradient-dark-4); }
.cs-cta.hero5 { background: var(--hero-gradient-dark-5); }
.cs-cta.hero6 { background: var(--hero-gradient-dark-6); }
.cs-cta.hero7 { background: var(--hero-gradient-dark-7); }
.cs-cta.hero8 { background: var(--hero-gradient-dark-8); }
.cs-cta.hero9 { background: var(--hero-gradient-dark-9); }
.cs-cta.hero10 { background: var(--hero-gradient-dark-10); }
.cs-cta.hero11 { background: var(--hero-gradient-dark-11); }

.cs-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: cta-pulse 8s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(10%, 10%) scale(1.1); opacity: 0.8; }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cs-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 32px;
  color: #ffffff;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: clamp(16px, 2vw, 20px) clamp(36px, 4.5vw, 52px);
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 600;
  color: var(--cs-primary);
  background: #ffffff;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: var(--cs-transition);
  cursor: pointer;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  color: var(--cs-primary-dark);
}

.btn-cta .btn-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn-cta:hover .btn-arrow {
  transform: translateX(5px);
}

/* -----------------------------
   RESPONSIVE BREAKPOINTS
------------------------------ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  /* Hero scaling now handled by hero-centered.css */

  /* Implementation grid: Single column on tablet (matches Challenge/Solution) */
  .cs-impl-grid {
    grid-template-columns: 1fr;
    gap: clamp(30px, 4vw, 50px);
  }
}

/* Tablet Portrait & Mobile Landscape (max-width: 768px) */
@media (max-width: 768px) {
  /* Implementation grid: Single column on mobile */
  .cs-impl-grid {
    grid-template-columns: 1fr;
    gap: clamp(25px, 4vw, 35px);
  }
  /* Hero scaling now handled by hero-centered.css */

  .cs-audience-card-wrapper {
    margin-bottom: 20px;
  }

  .cs-metrics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Mobile: Reduce font sizes further to prevent overflow */
  .cs-metric-value {
    font-size: clamp(16px, 1.6vw, 28px);
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .cs-metric-label {
    font-size: clamp(1rem, 4vw, 1.3rem);
    line-height: 1.4;
  }

  .cs-metric-card {
    padding: 30px 20px;
  }

  .cs-outcomes-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Tablet and below - Hero centering now handled by hero-centered.css */

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  /* Breadcrumb styles moved to core/breadcrumb.css */

  /* Mobile: Client badge adjustments */
  .cs-client-badge {
    padding: 10px 20px;
    font-size: 13px;
    gap: 8px;
  }

  .cs-client-badge-wrapper {
    margin-bottom: 24px;
  }

  .cs-section-content {
    padding: 0;
  }

  /* CTA button - smaller on mobile */
  .btn-cta {
    font-size: 14px;
    padding: 12px 24px;
    gap: 8px;
  }

  .btn-cta .btn-arrow {
    width: 16px;
    height: 16px;
  }
  /* Main container padding handled by page-layout.css via CSS variables */
}


/* Mobile Landscape - Optimize for low viewport height */
@media (max-height: 500px) and (orientation: landscape) {
  /* Breadcrumb styles moved to core/breadcrumb.css */
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
  /* Breadcrumb styles moved to core/breadcrumb.css */

  /* Small mobile: Client badge adjustments */
  .cs-client-badge {
    padding: 8px 16px;
    font-size: 12px;
    gap: 6px;
  }

  .cs-client-badge-wrapper {
    margin-bottom: 20px;
  }

  /* Small mobile: Further reduce metric font sizes */
  .cs-metric-value {
    font-size: clamp(15px, 1.5vw, 26px);
    line-height: 1.25;
  }

  .cs-metric-label {
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  }

  .cs-metric-card {
    padding: 25px 18px;
  }

  /* Small mobile: Optimize implementation grid */
  .cs-impl-grid {
    gap: clamp(20px, 4vw, 30px);
  }

  /* CTA button - even smaller on 480px */
  .btn-cta {
    font-size: 13px;
    padding: 10px 20px;
  }
}

/* Very Small Mobile (max-width: 375px) - iPhone SE, mini */
@media (max-width: 375px) {
  /* Smallest screens: Client badge adjustments */
  .cs-client-badge {
    padding: 6px 14px;
    font-size: 11px;
    gap: 4px;
  }

  .cs-client-badge-wrapper {
    margin-bottom: 16px;
  }

  /* CTA button - smallest on 375px */
  .btn-cta {
    font-size: 12px;
    padding: 10px 18px;
    gap: 6px;
  }

  .btn-cta .btn-arrow {
    width: 14px;
    height: 14px;
  }
}

/* Tablet (768px - 1024px): Optimize metric cards for medium screens */
@media (min-width: 768px) and (max-width: 1024px) {
  .cs-metrics-grid {
    /* 2 columns on tablets for better layout */
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-metric-value {
    font-size: clamp(17px, 1.7vw, 30px);
  }

  .cs-metric-card {
    padding: 35px 25px;
  }
}

/* Large Screens (1920px - 2560px) */
@media (min-width: 1920px) {
  .cs-main {
    max-width: 1600px;
  }
}

/* 2K/QHD Displays (2560px - 3839px) */
@media (min-width: 2560px) and (max-width: 3839px) {
  .cs-main {
    max-width: 2000px;
  }
  /* Hero scaling now handled by hero-centered.css */
}

/* 4K Displays (3840px - 5119px) */
@media (min-width: 3840px) and (max-width: 5119px) {
  .cs-main {
    max-width: 2400px;
  }
  /* Hero scaling now handled by hero-centered.css */

  /* Hero badge 4K scaling (page-specific) */
  .cs-hero-badge {
    font-size: clamp(17px, 1vw, 28px);
  }

  /* Breadcrumb 4K scaling moved to core/breadcrumb.css */

  /* Client badge 4K scaling */
  .cs-client-badge {
    font-size: clamp(18px, 1.1vw, 28px);
    padding: clamp(16px, 1.4vw, 24px) clamp(32px, 3vw, 52px);
    gap: clamp(14px, 1.4vw, 22px);
  }

  .cs-client-badge-wrapper {
    margin-bottom: clamp(40px, 5vw, 70px);
  }

  /* Section headers 4K scaling */
  .cs-section h2,
  .cs-section-header h2,
  .cs-results-header h2,
  .cs-audience-header h2 {
    font-size: clamp(28px, 2vw, 48px);
  }

  /* Implementation card titles 4K scaling */
  .cs-impl-item h3 {
    font-size: clamp(24px, 1.6vw, 40px);
  }

  /* Content box text 4K scaling */
  .cs-content-box p,
  .cs-content-box ul li {
    font-size: clamp(20px, 1.1vw, 36px);
  }

  /* Metrics 4K scaling */
  .cs-metric-value {
    font-size: clamp(24px, 1.8vw, 44px);
  }

  .cs-metric-label {
    font-size: clamp(20px, 1.5vw, 32px);
  }

  .cs-metric-description {
    font-size: clamp(17px, 1vw, 28px);
  }

  /* Outcomes 4K scaling */
  .cs-outcomes h3 {
    font-size: clamp(24px, 2.2vw, 40px);
  }

  .cs-outcomes-list li {
    font-size: clamp(20px, 1.1vw, 32px);
  }

  /* Testimonial 4K scaling */
  .cs-testimonial-card blockquote p {
    font-size: clamp(24px, 1.5vw, 44px);
  }

  .cs-testimonial-card cite strong {
    font-size: clamp(20px, 1.2vw, 34px);
  }

  .cs-testimonial-card cite span {
    font-size: clamp(17px, 1vw, 28px);
  }

  /* Audience cards 4K scaling */
  .cs-audience-card h3 {
    font-size: clamp(24px, 2.2vw, 36px);
  }

  .cs-audience-card li {
    font-size: clamp(20px, 1vw, 34px);
  }

  /* CTA 4K scaling */
  .cs-cta h2 {
    font-size: clamp(32px, 4vw, 52px);
  }

  .btn-cta {
    font-size: clamp(19px, 1.1vw, 28px);
    padding: clamp(20px, 1.6vw, 32px) clamp(52px, 3.5vw, 72px);
  }
}

/* 5K+ Displays (5120px+) */
@media (min-width: 5120px) {
  .cs-main {
    max-width: 3000px;
  }

  .hero-centered-title {
    font-size: clamp(64px, 2.8vw, 120px);
  }

  .hero-centered-subtitle {
    font-size: clamp(32px, 1.5vw, 64px);
  }

  .hero-centered-image {
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
  }

  /* Client badge 5K scaling */
  .cs-client-badge {
    font-size: clamp(22px, 1.1vw, 36px);
    padding: clamp(20px, 1.6vw, 32px) clamp(40px, 3.5vw, 64px);
    gap: clamp(16px, 1.6vw, 28px);
  }

  .cs-client-badge-wrapper {
    margin-bottom: clamp(50px, 6vw, 90px);
  }

  /* Breadcrumb 5K scaling moved to core/breadcrumb.css */

  /* Section headers 5K scaling */
  .cs-section h2,
  .cs-section-header h2,
  .cs-results-header h2,
  .cs-audience-header h2 {
    font-size: clamp(36px, 2vw, 60px);
  }

  /* Implementation card titles 5K scaling */
  .cs-impl-item h3 {
    font-size: clamp(30px, 1.6vw, 52px);
  }

  /* Content box text 5K scaling */
  .cs-content-box p,
  .cs-content-box ul li {
    font-size: clamp(24px, 1.1vw, 44px);
  }

  /* Metrics 5K scaling */
  .cs-metric-value {
    font-size: clamp(30px, 1.8vw, 56px);
  }

  .cs-metric-label {
    font-size: clamp(24px, 1.5vw, 40px);
  }

  .cs-metric-description {
    font-size: clamp(20px, 1vw, 36px);
  }

  /* Outcomes 5K scaling */
  .cs-outcomes h3 {
    font-size: clamp(30px, 2.2vw, 52px);
  }

  .cs-outcomes-list li {
    font-size: clamp(24px, 1.1vw, 40px);
  }

  /* Testimonial 5K scaling */
  .cs-testimonial-card blockquote p {
    font-size: clamp(30px, 1.5vw, 56px);
  }

  .cs-testimonial-card cite strong {
    font-size: clamp(24px, 1.2vw, 44px);
  }

  .cs-testimonial-card cite span {
    font-size: clamp(20px, 1vw, 36px);
  }

  /* Audience cards 5K scaling */
  .cs-audience-card h3 {
    font-size: clamp(30px, 2.2vw, 48px);
  }

  .cs-audience-card li {
    font-size: clamp(24px, 1vw, 44px);
  }

  /* CTA 5K scaling */
  .cs-cta h2 {
    font-size: clamp(40px, 4vw, 68px);
  }

  .btn-cta {
    font-size: clamp(22px, 1.1vw, 32px);
    padding: clamp(24px, 1.6vw, 40px) clamp(60px, 3.5vw, 88px);
  }
}

/* -----------------------------
   ACCESSIBILITY & PRINT
------------------------------ */

/* Focus States */
a:focus,
button:focus {
  outline: 2px solid var(--cs-primary);
  outline-offset: 3px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-centered-image.ken-burns {
    animation: none;
  }
}

/* Print Styles */
@media print {
  /* Breadcrumb print styles moved to core/breadcrumb.css */
  .cs-cta,
  .btn-cta {
    display: none;
  }

  .hero-centered {
    page-break-after: avoid;
  }

  .cs-impl-item {
    page-break-inside: avoid;
  }
}
