/* Template One: Research Services horizontal tabs */
.dd-research-tabs {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 5vw, 74px) 0 clamp(56px, 5.2vw, 78px);
  background:
    radial-gradient(circle at 8% 12%, rgba(8, 119, 249, 0.08), transparent 26%),
    radial-gradient(circle at 92% 30%, rgba(8, 119, 249, 0.06), transparent 28%),
    #f8fbff;
}

.dd-research-tabs::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -200px;
  top: -180px;
  border: 1px solid rgba(8, 119, 249, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.dd-research-tabs__container {
  position: relative;
  z-index: 1;
}

.dd-research-tabs__head {
  max-width: 1040px;
  margin: 0 auto 42px;
  text-align: center;
}

.dd-research-tabs__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #0877f9;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dd-research-tabs__eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: #ef233c;
}

.dd-research-tabs__title {
  margin: 0;
  color: #0a2351;
  font-size: clamp(38px, 3vw, 62px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.dd-research-tabs__title span {
  color: #0877f9;
  font-weight: inherit;
}

.dd-research-tabs__intro {
  max-width: 840px;
  margin: 18px auto 0;
  color: #607493;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
}

.dd-research-tabs__intro > :first-child,
.dd-research-panel__copy > :first-child { margin-top: 0; }
.dd-research-tabs__intro > :last-child,
.dd-research-panel__copy > :last-child { margin-bottom: 0; }

.dd-research-tabs__layout {
  display: block;
}

.dd-research-tabs__nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
  padding: 10px;
  border: 1px solid #dce8f7;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 38px rgba(18, 57, 111, 0.08);
}

.dd-research-tab {
  min-width: 0;
  min-height: 72px;
  border: 0;
  border-radius: 15px;
  padding: 12px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: left;
  color: #0a2351;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.dd-research-tab:hover,
.dd-research-tab:focus-visible {
  background: #f2f7ff;
}

.dd-research-tab:focus-visible {
  outline: 3px solid rgba(8, 119, 249, 0.22);
  outline-offset: 2px;
}

.dd-research-tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(135deg, #0b66da, #0877f9);
  box-shadow: 0 9px 22px rgba(8, 119, 249, 0.18);
}

.dd-research-tab__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0877f9;
  background: #edf5ff;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dd-research-tab__icon i,
.dd-research-tab__icon i::before {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.dd-research-tab[aria-selected="true"] .dd-research-tab__icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.dd-research-tab__label {
  min-width: 0;
  max-width: 100%;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

/* Arrows belonged to the old vertical navigation and are intentionally hidden. */
.dd-research-tab__arrow { display: none; }

.dd-research-tabs__panels {
  min-width: 0;
}

.dd-research-panel {
  display: none;
  overflow: hidden;
  position: relative;
  height: auto;
  min-height: 0;
  border: 1px solid #dce8f7;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(18, 57, 111, 0.09);
}

.dd-research-panel.is-active {
  display: block;
}

.dd-research-panel__hero {
  position: relative;
  overflow: hidden;
  padding: 28px 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #edf3fa;
  background: #f7fbff;
}

/* Keep the panel header clean; decorative gradient/circle treatments were intentionally removed. */
.dd-research-panel__hero::after { content: none; }

.dd-research-panel__icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border: 1px solid #d7e8fc;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0877f9;
  background: linear-gradient(145deg, #e8f3ff, #fff);
  box-shadow: 0 10px 22px rgba(8, 119, 249, 0.08);
}

.dd-research-panel__icon i,
.dd-research-panel__icon i::before {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  font-size: 27px;
  line-height: 1;
}

.dd-research-panel__heading {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #0a2351;
  font-size: clamp(26px, 1.9vw, 36px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.dd-research-panel__body {
  padding: 28px 34px 32px;
  color: #405574;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
}

.dd-research-panel__copy,
.dd-research-panel__copy p,
.dd-research-panel__copy li {
  font-weight: 400;
}

.dd-research-panel__copy p { margin: 0 0 1.15em; }
.dd-research-panel__copy ul,
.dd-research-panel__copy ol { margin: 1em 0; padding-left: 1.35em; }
.dd-research-panel__copy li + li { margin-top: 0.45em; }
.dd-research-panel__copy a { color: #0877f9; text-decoration: underline; text-underline-offset: 3px; }

.dd-research-panel__callout {
  margin-top: 24px;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid #d6e7fb;
  border-radius: 16px;
  background: linear-gradient(135deg, #edf6ff, #f8fbff);
}

.dd-research-panel__callout-icon {
  width: 44px;
  height: 44px;
  border: 1px solid #dceafd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0877f9;
  background: #fff;
  overflow: hidden;
}

/* Flaticon UIcons render their glyph through ::before. Give the icon element
   the full wrapper box and center the glyph explicitly on both axes. */
.dd-research-panel__callout-icon > i {
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  place-items: center !important;
  font-size: 20px !important;
  line-height: 0 !important;
  font-style: normal;
  flex: 0 0 auto;
}

.dd-research-panel__callout-icon > i::before {
  display: block !important;
  width: 1em !important;
  height: 1em !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1em !important;
  line-height: 1 !important;
  text-align: center !important;
  position: static !important;
  transform: none !important;
}

.dd-research-panel__callout strong {
  display: block;
  margin-bottom: 2px;
  color: #0a2351;
  font-size: 16px;
  font-weight: 600;
}

.dd-research-panel__callout span {
  display: block;
  color: #607491;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .dd-research-tabs { padding: 48px 0 56px; }

  .dd-research-tabs__nav {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
  }

  .dd-research-tab {
    flex: 0 0 220px;
    min-height: 68px;
    scroll-snap-align: start;
  }
}

@media (max-width: 760px) {
  .dd-research-tabs { padding: 44px 0 50px; }
  .dd-research-tabs__head { margin-bottom: 28px; text-align: left; }
  .dd-research-tabs__title { font-size: clamp(34px, 9vw, 48px); }
  .dd-research-tabs__intro { margin-top: 14px; font-size: 16px; }

  .dd-research-tabs__nav {
    margin-bottom: 18px;
    border-radius: 18px;
  }

  .dd-research-tab {
    flex-basis: 205px;
    min-height: 64px;
    padding: 10px 12px;
    gap: 9px;
  }

  .dd-research-tab__icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .dd-research-tab__icon i,
  .dd-research-tab__icon i::before { font-size: 18px; }

  .dd-research-tab__label { font-size: 13px; }
  .dd-research-panel { border-radius: 20px; }

  .dd-research-panel__hero {
    gap: 14px;
    padding: 21px 20px;
  }

  .dd-research-panel__icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .dd-research-panel__icon i,
  .dd-research-panel__icon i::before { font-size: 23px; }

  .dd-research-panel__heading { font-size: 24px; }
  .dd-research-panel__body { padding: 22px 20px 25px; font-size: 16px; }

  .dd-research-panel__callout {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
    margin-top: 21px;
  }

  .dd-research-panel__callout-icon {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dd-research-tab { transition: none; }
}

@media (max-width: 520px) {
  .dd-research-tabs { padding: 38px 0 44px; }
}
