/* =========================================
   STRIDELY TECHNOLOGY STACK
   All styles scoped to the parent class
========================================= */

.stridely-tech-stack {
    --sts-primary: #35447F;
    --sts-secondary: #5266A5;
    --sts-accent: #F58220;
    --sts-text: #26345D;
    --sts-muted: #667085;
    --sts-border: #DCE3F2;
    --sts-surface: #FFFFFF;
    --sts-background: #F4F7FD;

    width: 100%;
    padding: 50px 24px 60px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 10%,
            rgba(82, 102, 165, 0.09),
            transparent 32%),
        linear-gradient(180deg,
            #F3F6FD 0%,
            #FFFFFF 100%);
    font-family: inherit;
}

.stridely-tech-stack *,
.stridely-tech-stack *::before,
.stridely-tech-stack *::after {
    box-sizing: border-box;
}

.stridely-tech-stack__inner {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

/* Heading */

.stridely-tech-stack__heading {
    text-align: center;
    margin: 0 auto 32px;
    max-width: 720px;
}

.stridely-tech-stack__eyebrow {
    display: inline-block;
    color: var(--sts-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.stridely-tech-stack__heading h2 {
    color: var(--sts-primary);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.8px;
}

.stridely-tech-stack__heading p {
    color: var(--sts-muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

/* Category tabs */

.stridely-tech-stack__tabs {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto 44px;
}

.stridely-tech-stack__tab {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    overflow: hidden;
    flex: 0 1 auto;
    min-height: 50px;
    padding: 13px 24px;
    border: 1px solid #D3DCF0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--sts-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.stridely-tech-stack__tab:hover {
    color: var(--sts-primary);
    border-color: var(--sts-secondary);
    background: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(53, 68, 127, 0.09);
}

.stridely-tech-stack__tab.is-active {
    color: #FFFFFF;
    border-color: var(--sts-primary);
    background: linear-gradient(135deg,
            var(--sts-primary),
            var(--sts-secondary));
    box-shadow: 0 7px 20px rgba(53, 68, 127, 0.2);
}

.stridely-tech-stack__tab.is-active:hover {
    color: #FFFFFF;
}

.stridely-tech-stack__tab:focus-visible {
    outline: 3px solid var(--sts-accent);
    outline-offset: 3px;
}

/* Logo grid: maximum six cards per row */

.stridely-tech-stack__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

/* Six equal columns on desktop.
   The max-width of the inner container keeps the grid centered. */


.stridely-tech-stack__card {
    position: relative;
    isolation: isolate;
    flex: 0 1 calc((100% - 100px) / 6);
    max-width: 160px;
    min-width: 0;
    min-height: 135px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    background: var(--sts-surface);
    border: 1px solid rgba(210, 220, 240, 0.9);
    border-radius: 12px;
    box-shadow:
        0 5px 18px rgba(31, 45, 86, 0.07),
        0 1px 3px rgba(31, 45, 86, 0.04);
    overflow: hidden;

    animation: sts-card-enter 0.55s ease both;
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

/* Animated top accent */

.stridely-tech-stack__card::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--sts-primary),
            var(--sts-secondary),
            var(--sts-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.stridely-tech-stack__card:hover {
    transform: translateY(-7px);
    border-color: #BCCAE9;
    box-shadow:
        0 16px 34px rgba(37, 53, 100, 0.13),
        0 4px 10px rgba(37, 53, 100, 0.05);
}

.stridely-tech-stack__card:hover::before {
    transform: scaleX(1);
}

/* Logo container */


.stridely-tech-stack__logo {
    width: 65px;
    height: 65px;
    flex: 0 0 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 10px;
    background: linear-gradient(145deg,
            #FFFFFF,
            #F4F7FD);
    transition:
        transform 0.35s ease,
        background 0.35s ease;
}


.stridely-tech-stack__card:hover .stridely-tech-stack__logo {
    transform: scale(1.07);
    background: #F0F4FC;
}


.stridely-tech-stack__logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 52px;
    max-height: 52px;
    object-fit: contain;
    border: 0;
    box-shadow: none;
}


/* Text logo for technologies without an image */

.stridely-tech-stack__text-logo {
    display: flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #43AD63;
    color: #35A456;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.stridely-tech-stack__card>span {
    color: #18233F;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

/* Hidden cards must not occupy grid space */

.stridely-tech-stack__card[hidden] {
    display: none !important;
}

/* Entrance animation */

@keyframes sts-card-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet */

@media (max-width: 1024px) {
    .stridely-tech-stack {
        padding: 42px 22px 48px;
    }

    .stridely-tech-stack__tabs {
        margin-bottom: 34px;
    }

    .stridely-tech-stack__tab {
        padding: 12px 17px;
        font-size: 13px;
    }

    .stridely-tech-stack__grid {
        gap: 16px;
    }


    .stridely-tech-stack__card {
        flex-basis: calc((100% - 48px) / 4);
        max-width: 150px;
        min-height: 125px;
    }

}

/* Mobile */

@media (max-width: 600px) {
    .stridely-tech-stack {
        padding: 35px 16px 40px;
    }

    .stridely-tech-stack__heading {
        margin-bottom: 26px;
    }

    .stridely-tech-stack__heading p {
        font-size: 14px;
    }

    .stridely-tech-stack__tabs {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 8px;
        padding: 4px 2px 12px;
        margin-bottom: 26px;
        scrollbar-width: thin;
        scrollbar-color: #BCC8E2 transparent;
    }

    .stridely-tech-stack__tab {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 11px 15px;
        font-size: 12px;
        white-space: nowrap;
    }

    .stridely-tech-stack__grid {
        gap: 12px;
    }


    .stridely-tech-stack__card {
        flex: 0 1 calc((100% - 24px) / 3);
        max-width: none;
        min-height: 115px;
        padding: 12px 6px;
        gap: 8px;
        border-radius: 12px;
    }

    .stridely-tech-stack__logo {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        padding: 5px;
    }

    .stridely-tech-stack__logo img {
        max-width: 44px;
        max-height: 44px;
    }


    .stridely-tech-stack__card>span {
        font-size: 12px;
    }
}

/* Small mobile */

@media (max-width: 360px) {
    .stridely-tech-stack__card {
        flex-basis: calc((100% - 12px) / 2);
    }
}

/* Accessibility: respect reduced motion preferences */

@media (prefers-reduced-motion: reduce) {

    .stridely-tech-stack *,
    .stridely-tech-stack *::before,
    .stridely-tech-stack *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/***/

/* =====================================
   STRIDELY BENEFITS ACCORDION
===================================== */

.stridely-benefits {
  --sb-navy: #173b68;
  --sb-blue: #0876bd;
  --sb-orange: #f58220;
  --sb-text: #252d38;
  --sb-muted: #535d6b;
  --sb-border: #e1e5eb;
  --sb-white: #ffffff;
  --sb-bg: #f7f8fa;

  width: 100%;
  padding: 64px 24px 72px;
  background: var(--sb-bg);
  box-sizing: border-box;
  font-family: inherit;
}

.stridely-benefits *,
.stridely-benefits *::before,
.stridely-benefits *::after {
  box-sizing: border-box;
}

.stridely-benefits__container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.stridely-benefits__title {
  max-width: 1000px;
  margin: 0 auto 54px;
  color: var(--sb-navy);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  letter-spacing: -0.5px;
}

.stridely-benefits__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
}

/* Accordion */

.stridely-benefits__accordion {
  min-width: 0;
  background: var(--sb-white);
}

.stridely-benefits__item {
  border-bottom: 1px solid var(--sb-border);
  border-left: 4px solid transparent;
  background: var(--sb-white);
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.stridely-benefits__item.is-active {
  border-left-color: var(--sb-navy);
  background: var(--sb-white);
}

.stridely-benefits__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 76px;
  padding: 22px 24px 22px 20px;
  border: 0;
  background: transparent;
  color: var(--sb-navy);
  font: inherit;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}

.stridely-benefits__trigger:focus-visible {
  outline: 2px solid var(--sb-blue);
  outline-offset: -4px;
}

.stridely-benefits__trigger:hover {
  color: var(--sb-blue);
}

/* Chevron */

.stridely-benefits__chevron {
  position: relative;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin-right: 2px;
}

.stridely-benefits__chevron::before {
  position: absolute;
  top: 2px;
  left: 1px;
  width: 10px;
  height: 10px;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  border-radius: 1px;
  content: "";
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.stridely-benefits__item.is-active
.stridely-benefits__chevron::before {
  top: 5px;
  transform: rotate(225deg);
}

/* Accordion content */

.stridely-benefits__panel {
  padding: 0 24px 28px 20px;
  animation: sb-panel-in 0.3s ease both;
}

.stridely-benefits__panel[hidden] {
  display: none;
}

.stridely-benefits__panel p {
  margin: 0;
  color: var(--sb-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
}

@keyframes sb-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image */

.stridely-benefits__visual {
  position: relative;
  min-width: 0;
  min-height: 480px;
  overflow: hidden;
  background: #102b47;
}

.stridely-benefits__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.3s ease,
    transform 0.7s ease;
}

.stridely-benefits__visual.is-changing img {
  opacity: 0.15;
  transform: scale(1.025);
}

.stridely-benefits__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 31, 55, 0.03) 25%,
    rgba(10, 31, 55, 0.84) 100%
  );
  pointer-events: none;
}

.stridely-benefits__image-caption {
  position: absolute;
  right: 32px;
  bottom: 30px;
  left: 32px;
  z-index: 1;
  color: var(--sb-white);
}

.stridely-benefits__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #ffad63;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.stridely-benefits__image-caption h3 {
  max-width: 460px;
  margin: 0;
  color: var(--sb-white);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.35;
}

/* Tablet */

@media (max-width: 1024px) {
  .stridely-benefits {
    padding: 52px 22px;
  }

  .stridely-benefits__title {
    margin-bottom: 38px;
  }

  .stridely-benefits__layout {
    gap: 14px;
  }

  .stridely-benefits__trigger {
    min-height: 70px;
    padding: 19px 18px 19px 16px;
    font-size: 17px;
  }

  .stridely-benefits__panel {
    padding: 0 18px 24px 16px;
  }

  .stridely-benefits__panel p {
    font-size: 15px;
    line-height: 1.75;
  }

  .stridely-benefits__visual,
  .stridely-benefits__visual img {
    min-height: 430px;
  }
}

/* Mobile */

@media (max-width: 767px) {
  .stridely-benefits {
    padding: 42px 16px;
  }

  .stridely-benefits__title {
    margin-bottom: 28px;
    font-size: 27px;
    letter-spacing: -0.3px;
  }

  .stridely-benefits__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stridely-benefits__accordion {
    order: 1;
  }

  .stridely-benefits__visual {
    order: 2;
    min-height: 280px;
  }

  .stridely-benefits__visual img {
    min-height: 280px;
  }

  .stridely-benefits__trigger {
    min-height: 65px;
    gap: 12px;
    padding: 18px 16px;
    font-size: 16px;
  }

  .stridely-benefits__panel {
    padding: 0 16px 22px;
  }

  .stridely-benefits__panel p {
    font-size: 15px;
    line-height: 1.75;
  }

  .stridely-benefits__image-caption {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .stridely-benefits__image-caption h3 {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stridely-benefits *,
  .stridely-benefits *::before,
  .stridely-benefits *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================
   FIX: STRIDELY BENEFITS ACCORDION
   Add at the END of the enqueued CSS file
========================================== */

.stridely-benefits .stridely-benefits__accordion {
    width: 100% !important;
    min-width: 0;
}

.stridely-benefits .stridely-benefits__item {
    display: block !important;
    width: 100% !important;
    border-left: 4px solid transparent !important;
    border-right: 0 !important;
    border-top: 0 !important;
    border-bottom: 1px solid #e1e5eb !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.stridely-benefits .stridely-benefits__item.is-active {
    border-left-color: #173b68 !important;
}

/* Override Elementor/theme button styles */
.stridely-benefits .stridely-benefits__trigger {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;

    width: 100% !important;
    max-width: none !important;
    min-height: 76px !important;
    margin: 0 !important;
    padding: 22px 24px 22px 20px !important;

    border: 0 !important;
    border-radius: 0 !important;
    outline-offset: -4px;

    background: #ffffff !important;
    color: #173b68 !important;
    box-shadow: none !important;

    font-family: inherit !important;
    font-size: 19px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    text-align: left !important;
    text-transform: none !important;

    white-space: normal !important;
    cursor: pointer !important;
}

.stridely-benefits .stridely-benefits__trigger:hover {
    background: #ffffff !important;
    color: #0876bd !important;
    box-shadow: none !important;
}

.stridely-benefits .stridely-benefits__trigger:focus {
    outline: none;
}

.stridely-benefits .stridely-benefits__trigger:focus-visible {
    outline: 2px solid #0876bd !important;
}

/* Keep title and chevron aligned */
.stridely-benefits .stridely-benefits__trigger > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.stridely-benefits .stridely-benefits__chevron {
    flex: 0 0 12px !important;
    width: 12px !important;
    height: 12px !important;
}

/* Show the expanded description */
.stridely-benefits .stridely-benefits__panel:not([hidden]) {
    display: block !important;
    padding: 0 24px 28px 20px !important;
    background: #ffffff !important;
}

.stridely-benefits .stridely-benefits__panel[hidden] {
    display: none !important;
}

.stridely-benefits .stridely-benefits__panel p {
    margin: 0 !important;
    color: #252d38 !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.8 !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .stridely-benefits .stridely-benefits__trigger {
        min-height: 70px !important;
        padding: 19px 18px 19px 16px !important;
        font-size: 17px !important;
    }
}

@media (max-width: 767px) {
    .stridely-benefits .stridely-benefits__trigger {
        min-height: 65px !important;
        padding: 18px 16px !important;
        font-size: 16px !important;
    }

    .stridely-benefits .stridely-benefits__panel:not([hidden]) {
        padding: 0 16px 22px !important;
    }

    .stridely-benefits .stridely-benefits__panel p {
        font-size: 15px !important;
    }
}
