/* work.css - Styles for the Work page */

/* ============================================
   WORK HERO SECTION
   ============================================ */
.work-hero {
  background-color: var(--bg-white);
  overflow: hidden;
  /* Prevent overflow if animations/images exceed bounds */
}

.work-hero-container {
  display: flex;
  align-items: flex-start;
  /* Align top for better layout match */
  justify-content: space-between;
  gap: 4rem;
}

.work-hero-content {
  flex: 1;
  padding-top: 2rem;
  /* Slight offset to center visually against a large image */
}

/* Excellence Badge */
.excellence-badge {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 3.5px 10.5px;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  /* Neutral dark text */
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.excellence-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #22c55e;
  border-radius: 50%;
}

/* Hero Title */
.work-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  /* Extra bold */
  line-height: 1.1;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  letter-spacing: 0;
}

.work-hero-title span {
  color: var(--work-color);
}

/* Hero Description */
.work-hero-desc {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0;
  color: #475569;
  margin-bottom: 3rem;
  max-width: 520px;
}

/* Hero Buttons */
.work-hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 5rem;
  flex-wrap: wrap;
}

.work-hero-buttons .btn-primary {
  background: #f97316;
  box-shadow: 0px 1px 2px 0px #0000000d;
}

.btn-icon-right {
  margin-left: 8px;
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon-right {
  transform: translateX(4px);
  /* Hover arrow animation */
}

/* Secondary button style override for outline specific to this page if needed
   The design shows a white button with black text/border. 
   Assuming .btn-secondary in common.css is transparent with white text (for dark bg), 
   we might need a specific variant for light bg. */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10.5px 24px;
  background-color: transparent;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  /* Light border */
  transition: all var(--transition-base);
  text-align: center;
  white-space: nowrap;
}

.btn-outline:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* Stats Section */
.work-stats-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-group-work {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 28px;
  letter-spacing: 0;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 14px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0;
}

.stat-separator {
  width: 1px;
  height: 40px;
  background-color: #e2e8f0;
  margin: 0 0.5rem;
}

.cert-badges {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
  /* Push to right if space allows, or flow normally */
}

.cert-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  /* width: 79px; */
  height: 23px;
  padding: 3.5px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 3.5px;
  background-color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 14px;
  color: #64748b;
  letter-spacing: 0;
}

.cert-badge img {
  height: 14px;
  width: auto;
  /* Filter to approximate #64748B from black */
  filter: invert(50%) sepia(13%) saturate(830%) hue-rotate(178deg)
    brightness(91%) contrast(88%);
}

/* Right Side Visual */
.work-hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.hero-visual-card {
  width: 100%;
  max-width: 650px;
  aspect-ratio: 1.1/1;
  /* Slightly wider than square */
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
  /* Soft premium shadow */
  border: 1px solid #f8fafc;
  position: relative;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 991px) {
  .work-hero-container {
    flex-direction: column;
    gap: 4rem;
  }

  .work-hero-content {
    max-width: 100%;
    padding-top: 0;
  }

  .work-hero-title {
    font-size: 2.75rem;
  }

  .work-hero-visual {
    width: 100%;
    justify-content: center;
  }

  .hero-visual-card {
    max-width: 100%;
    aspect-ratio: 16/9;
    /* Widescreen on mobile/tablet */
  }

  .work-stats-container {
    gap: 1.5rem;
  }

  .cert-badges {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
  }

  .stat-separator {
    display: none;
    /* Hide separator on mobile wrap */
  }
}

@media (max-width: 600px) {
  .work-hero-title {
    font-size: 2.25rem;
  }

  .work-hero-buttons {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    margin-bottom: 3rem;
  }

  .work-hero-buttons .btn-outline,
  .work-hero-buttons .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .work-stats-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .stat-separator {
    display: none;
  }
}

/* ============================================
   WORK FILTERS SECTION
   ============================================ */
.work-filters {
  background-color: var(--bg-white);
  border-bottom: 1px solid #e2e8f0;
  padding: 1.5rem 0;
}

.filter-icon-col {
  flex-shrink: 0;
  padding-top: 0.25rem;
  border-right: 1px solid #e2e8f0;
  /* padding-right: 2rem; */
  margin-right: 1.5rem;
  /* Add spacing after the border */
}

/* Remove margin-right from container gap if needed, or adjust here */
.work-filters-container {
  display: flex;
  align-items: flex-start;
  gap: 0;
  /* Let column padding/margin handle spacing */
}

.filter-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: transparent;
  transition: background-color var(--transition-fast);
}

.filter-icon-btn:hover {
  background-color: #f1f5f9;
}

.filter-icon-btn svg circle,
.filter-icon-btn svg path {
  stroke: #64748b;
  fill: #64748b;
}

.filter-icon-btn svg path {
  fill: none;
  /* Paths are strokes */
}

.filter-groups {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  /* Distribute space equally */
  min-width: 200px;
}

.filter-group-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.52px;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.filter-btn {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 100%;
  color: #475569;
  letter-spacing: 0;
  padding: 6px 12px;
  border-radius: 6px;
  background-color: transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-align: center;
}

.filter-btn:hover {
  color: var(--primary-color);
  background-color: #f8fafc;
}

.filter-btn.active {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 5.25px;
  color: #0f172a;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 0;
  padding: 5.25px 10.5px;
  height: 27.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsive specific to filters */
@media (max-width: 991px) {
  .work-filters-container {
    padding-left: 0;
    padding-right: 0;
  }

  .filter-groups {
    flex-direction: column;
    gap: 2rem;
  }

  .filter-group {
    width: 100%;
    min-width: auto;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1.5rem;
  }

  .filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (max-width: 600px) {
  .work-filters {
    padding: 1rem 0;
  }

  .work-filters-container {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-icon-col {
    display: none;
    /* Hide icon on mobile to save space, or keep if critical */
  }

  .filter-options {
    gap: 0.5rem;
  }

  .filter-btn {
    font-size: 0.8125rem;
    padding: 5px 10px;
  }
}

/* ============================================
   PROVEN AT SCALE SECTION
   ============================================ */

/* The section container uses .common-section which handles padding */
/* The inner uses .common-padding-28 which handles side padding */

/* Subtitle under the section title */
.scale-subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  /* 18px */
  line-height: 1.5;
  color: #64748b;
  /* Slate 500 */
  margin-top: 0.5rem;
  max-width: 600px;
}

/* Grid Layout */
.scale-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* Card Styles */
.scale-card {
  display: flex;
  flex-direction: column;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 336px;
  /* height: 356.5px; */
  box-shadow: 0px 1px 2px 0px #0000000d;
}

.scale-card:hover {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);
  border-color: #cbd5e1;
}

.scale-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  /* Standard video-like aspect ratio */
  overflow: hidden;
  background-color: #f1f5f9;
}

.scale-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.scale-card:hover .scale-img {
  transform: scale(1.05);
}

.scale-category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: #0f172a;
  /* Dark background for visibility */
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 0.625rem;
  /* 10px */
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

.scale-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.scale-card-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 24.5px;
  letter-spacing: 0;
  color: #0f172a;
  vertical-align: middle;
  margin-bottom: 0.5rem;
}

.scale-card-desc {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 17.5px;
  letter-spacing: 0;
  color: #475569;
  vertical-align: middle;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.scale-card-stats {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 17.5px;
  letter-spacing: 0;
  color: #f97316;
  vertical-align: middle;
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.scale-card-link {
  font-family: "Helvetica", sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 17.5px;
  letter-spacing: 0;
  color: #0f172a;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition:
    gap 0.2s ease,
    color 0.2s ease;
}

.scale-card-link:hover {
  gap: 0.5rem;
  /* Moves the arrow slightly */
  color: #f97316;
}

.work-scale-section .section-link {
  color: #f97316;
  font-weight: 700;
  font-style: Bold;
  font-size: 12px;
  line-height: 17.5px;
  letter-spacing: 0%;
  vertical-align: middle;
}

/* Responsive */
@media (max-width: 991px) {
  .scale-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .scale-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .scale-subtitle {
    font-size: 1rem;
  }
}

/* ============================================
   HEALTHCARE FLAGSHIP SECTION
   ============================================ */
.healthcare-flagship-section {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  overflow: visible;
  /* Allow tooltip to overflow if needed */
}

.healthcare-flagship-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

/* Left Content Column */
.healthcare-content-col {
  flex: 1;
  max-width: 550px;
}

.flagship-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: #fef2f2;
  color: #dc2626;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  text-transform: uppercase;
  padding: 3.5px 10.5px;
  border-radius: 9999px;
  border: 1px solid #fecaca;
  margin-bottom: 1.5rem;
  letter-spacing: 0.52px;
  vertical-align: middle;
}

.flagship-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 35px;
  color: #0f172a;
  letter-spacing: 0%;
  vertical-align: middle;
  margin-bottom: 1rem;
}

.flagship-desc {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 25.59px;
  color: #475569;
  letter-spacing: 0%;
  vertical-align: middle;
  margin-bottom: 2.5rem;
}

.bolt-icon {
  width: 10.5px;
  height: 10.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bolt-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(18%) sepia(96%) saturate(4674%)
    hue-rotate(356deg) brightness(93%) contrast(92%);
}

/* Feature List */
.flagship-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.flagship-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 14px;
  width: 100%;
  max-width: 504px;
  /* height: 68.5px; */
  box-shadow: 0px 1px 2px 0px #0000000d;
  transition: all 0.3s ease;
}

.flagship-feature:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.feature-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  flex-shrink: 0;
}

.feature-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.feature-text {
  flex: 1;
}

.feature-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  color: #0f172a;
  letter-spacing: 0%;
  vertical-align: middle;
  margin-bottom: 2px;
}

.feature-subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 17.5px;
  color: #475569;
  letter-spacing: 0%;
  vertical-align: middle;
}

/* Button */
.btn-flagship {
  background-color: #dc2626;
  /* Red 600 */
  padding: 12px 24px;
}

.btn-flagship:hover {
  background-color: #b91c1c;
  /* Red 700 */
}

/* Right Visual Column (Dashboard Mockup) */
.healthcare-visual-col {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.dashboard-mockup {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  /* Clean shadow + border */
  padding: 1.5rem;
  position: relative;
}

/* Mockup Header Dots */
.mockup-header-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.red {
  background-color: #ef4444;
}

.dot.yellow {
  background-color: #f59e0b;
}

.dot.green {
  background-color: #10b981;
}

.mockup-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Top Row: Two white card placeholders */
.mockup-cards-row {
  display: flex;
  gap: 1rem;
}

.mockup-card-small {
  flex: 1;
  height: 80px;
  background-color: #f8fafc;
  /* Slate 50 */
  border: 1px solid #f1f5f9;
  border-radius: 6px;
}

/* Bottom Row: Chart */
.mockup-chart-row {
  background-color: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 6px;
  padding: 1.5rem 1rem 0;
  /* padding bottom 0 for bars to sit on bottom */
  height: 120px;
  display: flex;
  align-items: flex-end;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 8px;
}

.chart-bar {
  flex: 1;
  background-color: #fdba74;
  /* Orange 300 lighter */
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: height 0.3s ease;
}

.chart-bar.active {
  background-color: #f97316;
  /* Orange 500 brand color */
}

/* Tooltip on active bar */
.processing-tooltip {
  position: absolute;
  bottom: 80%;
  /* Position above the bar */
  right: -10px;
  /* Offset to stick out */
  background-color: #0f172a;
  /* Dark */
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  font-family: "Inter", sans-serif;
  z-index: 10;
  width: 80px;
}

.processing-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 20px;
  border-width: 5px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}

.tooltip-label {
  font-size: 8px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.tooltip-value {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
  .healthcare-flagship-container {
    flex-direction: column;
    gap: 3rem;
  }

  .healthcare-content-col {
    max-width: 100%;
  }

  .healthcare-visual-col {
    width: 100%;
    justify-content: center;
  }

  .dashboard-mockup {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .flagship-title {
    font-size: 1.75rem; /* 28px */
    line-height: 1.2;
  }

  .flagship-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .flagship-feature {
    padding: 1rem;
  }

  /* Broader Impact Mobile Fix */
  .impact-detail-card {
    min-width: auto;
    max-width: 100%;
  }

  .section-label {
    font-size: 11px;
  }
}

/* ============================================
   BROADER INDUSTRY IMPACT SECTION
   ============================================ */
.broader-impact-section {
  background-color: #ffffff;
  /* Ensure it has a white background */
}

.broader-top-header {
  margin-bottom: 3.5rem;
}

.broader-header-divider {
  display: none;
}

/* Category Layout */
.impact-category {
  margin-bottom: 2rem;
}

.impact-category:last-child {
  margin-bottom: 0;
}

.impact-category-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.category-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 24.5px;
  color: #f97316;
  white-space: nowrap;
  letter-spacing: 0;
  vertical-align: middle;
}

.category-line {
  height: 1px;
  background-color: #e2e8f0;
  flex: 1;
}

.impact-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Category Separator */
.category-separator {
  height: 1px;
  background-color: transparent;
  margin: 3rem 0;
  display: none;
}

/* Impact Card */
.impact-detail-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  max-width: 340px;
  min-width: 340px;
}

.impact-detail-card:hover {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.card-tag {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 10px;
  line-height: 14px;
  color: #64748b;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0;
}

.card-arrow {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: all 0.3s ease;
  color: #0f172a;
}

.card-arrow svg {
  width: 100%;
  height: 100%;
}

.card-arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.impact-detail-card:hover .card-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.card-heading {
  font-family: "Inter", sans-serif;
  font-size: 1.125rem;
  /* 18px */
  font-weight: 700;
  color: #0f172a;
  /* Slate 900 */
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.card-stats {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  /* 12px */
  font-weight: 500;
  color: #f97316;
  /* Orange brand color */
  margin-bottom: 0.75rem;
  padding-top: 0.5rem;
}

.card-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  /* 14px */
  font-weight: 400;
  color: #475569;
  /* Slate 600 */
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 991px) {
  .impact-cards-grid {
    grid-template-columns: 1fr;
    /* Single column on tablet/mobile */
    gap: 1.5rem;
  }

  .impact-category-header {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 600px) {
  .broader-top-header {
    margin-bottom: 2.5rem;
  }

  .category-title {
    font-size: 1.125rem;
  }

  .impact-detail-card {
    padding: 1.25rem;
  }
}

/* ============================================
   FLEXIBLE MODELS SECTION
   ============================================ */
.flexible-models-section {
  background-color: #ffffff;
}

.flexible-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.flexible-header .section-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 17.5px;
  color: #f97316;
  letter-spacing: 0.61px;
  text-align: center;
  text-transform: uppercase;
}

.flexible-subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  /* 18px */
  line-height: 1.6;
  color: #64748b;
  margin-top: 1rem;
}

.flexible-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.flexible-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10.5px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0px 1px 2px 0px #0000000d;
  width: 100%;
  max-width: 336px;
  /* height: 248px; Use min-height to allow expansion for text */
  min-height: 248px;
  gap: 21px;
}

.flexible-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

/* Cleaned up icon wrapper */
.flexible-icon-wrapper {
  width: 42px;
  height: 42px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  box-shadow: 0px 1px 2px 0px #0000000d;
  opacity: 1;
}

.flexible-icon-wrapper svg,
.flexible-icon-wrapper img {
  width: 20px;
  height: 20px;
}

.flexible-card-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  /* 20px */
  color: #0f172a;
  margin-bottom: 0;
  /* Reset margin, use gap */
}

.flexible-card-desc {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  /* 14px */
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0;
  /* Reset margin, use gap */
  flex-grow: 1;
}

.flexible-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.flexible-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  color: #475569;
  font-weight: 500;
}

.flexible-list li:last-child {
  margin-bottom: 0;
}

.flexible-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #f97316;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1rem;
}

/* Popular Badge */
.popular-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background-color: #f97316;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 8px;
  letter-spacing: 0.5px;
  z-index: 10;
}

.popular {
  border: 1px solid #f9731633;
}

.popular:hover {
  border: 1px solid #f97316;
}

/* Responsive */
@media (max-width: 991px) {
  .flexible-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .flexible-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .flexible-header .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 767px) {
  .impact-detail-card {
    max-width: calc(100% / 2 - 12px);
    width: calc(100% / 2 - 12px);
    min-width: auto;
  }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background-color: #020617;
  /* Dark background matching footer */
  padding: 5rem 0;
}

.cta-card {
  background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
  border-radius: 16px;
  padding: 56px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.cta-content {
  flex: 1;
  max-width: 650px;
}

.cta-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 35px;
  color: #ffffff;
  letter-spacing: 0;
  vertical-align: middle;
  margin-bottom: 1rem;
}

.cta-desc {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24.5px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0;
  vertical-align: middle;
  max-width: 540px;
  text-align: start;
}

.cta-action {
  flex-shrink: 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: #ffffff;
  color: #f97316;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  background-color: #fafafa;
}

.cta-btn svg {
  transition: transform 0.3s ease;
}

.cta-btn:hover svg {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 991px) {
  .cta-section {
    padding: 3rem 0;
  }

  .cta-card {
    flex-direction: column;
    text-align: center;
    /* Center content on smaller screens */
    padding: 3rem 2rem;
    gap: 2rem;
  }

  .cta-content {
    max-width: 100%;
  }

  .cta-desc {
    margin: 0 auto;
    /* Center the description block */
  }

  .cta-action {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .cta-btn {
    width: auto;
    min-width: 200px;
  }
}

@media (max-width: 600px) {
  .impact-detail-card {
    padding: 1.25rem;
    max-width: 100%;
    min-width: 300px;
    width: 100%;
  }
  .cta-card {
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
  }

  .cta-title {
    font-size: 1.75rem;
    /* 28px */
  }

  .cta-desc {
    font-size: 1rem;
  }

  .cta-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }
}
