/* =========================================
   KPI CONTENT SURFACE (OVERRIDES LEGACY)
   ========================================= */

.dd_search_ends {
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
}

.dd_search_ends-title {
  margin: 0 0 14px;
  font-weight: 400;
  font-size: 40px;
  line-height: 56px;
  text-align: center;
  letter-spacing: -1.7px;
  color: #000;
}

.dd_search_ends-subtitle {
  max-width: 1000px;
  margin: 0 auto 42px;
  margin-bottom: 60px;
  font-weight: 600;
  font-size: 22px;
  line-height: 26px;
  text-align: center;
  color: #0B1720;
}

/* KPI – enforce single active panel (GLOBAL) */
.kpi-vertical .panel-tabs {
  display: none;
}

.kpi-vertical .panel-tabs.active {
  display: block;
}

/* 🔒 Disable browser scroll anchoring for KPI accordion */
.kpi-vertical,
.kpi-vertical * {
  overflow-anchor: none;
}

.dd_search_ends-tabs .nav-tabs {
  display: flex;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}

.dd_search_ends-tabs .nav-tabs a {
  display: block;
  padding: 18px 20px;
  font-size: 22px;
  font-weight: 600;
  color: #00448F;
  text-decoration: none;
  border-radius: 12px;
}

.dd_search_ends-tabs .nav-tabs .active a {
  background: #01273D;
  color: #fff;
}

.panel-tabs {
  border-radius: 16px;
  background: #F2F4F5;
}

/* KPI – hide images by default */
.kpi-vertical .dd_reviews-featured-image-wrapper {
  display: none;
}


.kpi-vertical .panel-tabs.card-cotent-type {
  background: #f2fbff;   /* your new color */
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.04);
}

.kpi-image--bordered {
  border: 1px solid #2563eb;
  border-radius: 5px;
}

.panel-tabs:not(.active) {
  display: none;
}

.dd_reviews {
  display: block;
}

.dd_reviews-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dd_reviews-card h3 {
  font-size: 34px;
  font-weight: 600;
   letter-spacing: -0.02em;
  line-height: 44px;
  margin-bottom: 16px;
  color: #333;
}

.dd_reviews-card p {
  font-size: 21px;
  line-height: 32px;
  max-width: 560px;
  color: #333;
}

.dd_reviews-card .card-link {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 20px;

  font-size: 16px;
  font-weight: 600;
  color: #fff;

  background: #00448F;
  border-radius: 999px;
  text-decoration: none;
}

.dd_reviews-card .card-link:hover {
  background: #01273D;
}
.kpi-benefits {
  margin-top: 24px;
}

.kpi-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kpi-benefits li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 28px;
  color: #0B1720;
}

.kpi-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #207DE9;
}

@media (min-width: 768px) {

  .kpi-layout {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
  }

  .kpi-vertical .nav-tabs {
    flex-direction: column;
    gap: 8px;
    margin: 0;
     border-bottom: none;
  }

    /* Ensure left nav sits above content */
  .kpi-vertical .nav-tabs-nav_container {
    position: relative;
    z-index: 3;
  }

  /* Prevent content from overlaying nav */
  .kpi-vertical .kpi-content-wrap {
    position: relative;
    z-index: 1;
  }

  /* Base visual surface */
.kpi-vertical .kpi-content-surface {
  background: #d7edf3;
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.04);
}


  .kpi-vertical .nav-tabs a {
     pointer-events: auto;
    text-align: left;
  }

  .kpi-vertical .content-tabs {
    width: 100%;
  }

 .kpi-vertical .nav-tabs li {
    position: relative;
  }

  .kpi-vertical .nav-tabs li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -4px;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      #E3E8ED,
      transparent
    );

  }

  /* RIGHT CONTENT must stay inside its grid column */
  .kpi-vertical .content-tabs {
    position: relative;
    z-index: 1;
  }

  .kpi-vertical .panel-tabs {
    width: 100%;
  }

  /* Inner layout only (text + image) */
  .kpi-vertical .panel-tabs .dd_reviews {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: center;
  }

  .dd_reviews-main {
    padding: 64px;
  }

  .dd_reviews-featured-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dd_reviews-featured-image-wrapper img {
   max-width: 100%;
  max-height: 350px;     /* ↑ increased */
  width: auto;
  height: auto;
  object-fit: contain;
  }
}

@media (max-width: 767px) {

  /* Hide vertical tabs */
  .kpi-vertical .nav-tabs-nav_container {
    display: none;
  }

  /* Accordion panel */
  .kpi-vertical .panel-tabs {
    display: block;
    margin-bottom: 14px;
    border-radius: 16px;
    background: #F7FAFC;
    overflow: hidden;
    position: relative;
  }

  /* Accordion header */
.kpi-vertical .panel-tabs::before {
  content: attr(data-title);
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;

  background: #fff;
  border-bottom: 1px solid #E3E8ED;
  cursor: pointer;
}

  /* Chevron */
  .kpi-vertical .panel-tabs::after {
    content: "▾";
    position: absolute;
    right: 20px;
    top: 18px;
    transition: transform .2s ease;
    color: #207DE9;
  }

  .kpi-vertical .panel-tabs.active::after {
    transform: rotate(180deg);
  }

  /* Collapse inactive */
  .kpi-vertical .panel-tabs:not(.active) .body-tabs {
    display: none;
  }

  /* Content spacing */
  .dd_reviews-main {
    padding: 20px;
  }

  /* Hide image */
  .dd_reviews-featured-image-wrapper {
    display: none;
  }

   .kpi-vertical .panel-tabs .body-tabs {
    overflow: hidden;
    transition:
      max-height 280ms cubic-bezier(.4,0,.2,1),
      opacity 180ms ease;
  }

  .kpi-vertical .panel-tabs:not(.active) .body-tabs {
    max-height: 0;
    opacity: 0;
  }

  .kpi-vertical .panel-tabs.active .body-tabs {
    max-height: 2000px; /* safe large value */
    opacity: 1;
  }

    .kpi-vertical .panel-tabs.active {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  }

}

/* =========================================
   KPI – IMAGE PLACEMENT FIX
   ========================================= */

/* Tablet + small desktop: stack content */
@media (min-width: 768px) and (max-width: 1199px) {

  .kpi-vertical .panel-tabs .dd_reviews {
    display: flex;
    flex-direction: column;
  }

  .kpi-vertical .dd_reviews-featured-image-wrapper {
    display: flex;                /* 🔒 make flex explicit */
    order: 2;
    width: 100%;
    margin-top: 24px;
    justify-content: flex-start;
     display: none;
  }

}


/* KPI – Large desktop keeps side-by-side */
@media (min-width: 1200px) {

  .kpi-vertical .panel-tabs .dd_reviews {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
    align-items: center;
  }

  .kpi-vertical .dd_reviews-featured-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .kpi-vertical .dd_reviews-featured-image-wrapper img {
    max-width: 100%;
    max-height: 480px;   /* ⬅ bigger image on desktop */
    width: auto;
    height: auto;
    object-fit: contain;
  }

}


   /* =========================================
   KPI SECTION – TYPOGRAPHY & SPACING ONLY
   SAFE: does NOT affect tabs or layout
   ========================================= */

/* ---------- Desktop ---------- */
@media (min-width: 1025px) {

  .dd_reviews-card h3 {
    font-size: 32px;          /* down from 34 */
    line-height: 42px;
    margin-bottom: 12px;
  }

  .dd_reviews-card p {
    font-size: 20px;
    line-height: 30px;
  }

  .dd_reviews-main {
    padding: 48px;            /* tighter than before */
  }
}

/* ---------- Tablet (iPad Pro / Air) ---------- */
@media (min-width: 768px) and (max-width: 1024px) {

  .dd_reviews-card h3 {
    font-size: 28px;
    line-height: 38px;
    margin-bottom: 12px;
  }

  .dd_reviews-card p {
    font-size: 18px;
    line-height: 28px;
  }

  .dd_reviews-main {
    padding: 36px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {

   .dd_search_ends-title {
    font-size: 2.3rem;        /* aligns with rest of mobile headings */
    line-height: 1.25;
    letter-spacing: -0.02em; /* softer than desktop */
    margin-bottom: 20px;
    padding: 0 12px;         /* prevents edge hugging */
    text-wrap: balance;      /* modern browsers: better line breaks */
  }

  .dd_reviews-card h3 {
    font-size: 1.9rem;        /* ≈ 36.8px (matches rest of site) */
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .dd_reviews-card p {
    font-size: 16px;
    line-height: 26px;
  }

  .dd_reviews-main {
    padding: 20px;
  }
}

/* =========================================
   KPI Section - ENDS
   ========================================= */
