/* =========================================================
   VAI™ IN ACTION
========================================================= */

/* Bootstrap turns on smooth scrolling for the whole page. ScrollTrigger measures
   by jumping the scroll position, so with smooth scrolling every jump animates and
   the panel swaps get measured at the wrong place - after coming back to the page
   (back button / reload) the panels froze and reverse scroll broke.
   html:root outranks Bootstrap's :root (and most theme rules) without !important. */
html:root {
    scroll-behavior: auto;
}

.ecx-wwd {
    --ecx-wwd-bg: #eef3f8;
    --ecx-wwd-ink: #17202b;
    --ecx-wwd-muted: #5b6474;
    --ecx-wwd-label: #31506d;
    --ecx-wwd-blue: #1d5fe0;
    --ecx-wwd-navy: #0b2545;
    --ecx-wwd-panel-h: 290px;

    position: relative;
    overflow: clip;
    padding: var(--section-y) 12px;
    background: var(--ecx-wwd-bg);
    color: var(--ecx-wwd-ink);
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    padding: 60px 15px;
}

.ecx-wwd *,
.ecx-wwd *::before,
.ecx-wwd *::after {
    box-sizing: border-box;
}

.ecx-wwd__container {
    display: flex;
    flex-direction: column;
    gap: var(--section-head-gap, 56px);
    max-width: 1176px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.ecx-wwd__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ecx-wwd__tag-wrap {
    display: flex;
}

.ecx-wwd__tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid transparent;
    border-radius: 30px;
    background:
        linear-gradient(var(--ecx-wwd-bg), var(--ecx-wwd-bg)) padding-box,
        linear-gradient(90deg, #7fa3e6, #d7a3c8) border-box;
    color: var(--ecx-wwd-blue);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ecx-wwd__title {
    max-width: 640px;
    margin: 0;
    color: var(--ecx-wwd-ink);
    font-size: clamp(30px, 2.3vw, 42px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}


/* =========================================================
   CONTENT LAYOUT
========================================================= */

.ecx-wwd__flex {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.ecx-wwd__left {
    position: sticky;
    top: max(160px, calc(var(--ecx-wwd-sticky-top, 0px) + 24px));
    width: 340px;
    flex: 0 0 auto;
}

.ecx-wwd__panels {
    position: relative;
    overflow: hidden;
}


/* =========================================================
   CATEGORY PANELS
========================================================= */

.ecx-wwd__panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: var(--ecx-wwd-panel-h);
    padding-top: 20px;
    will-change: transform;
}

.ecx-wwd__panel + .ecx-wwd__panel {
    position: absolute;
    inset: 100% 0 auto 0;
    height: 100%;
}

.ecx-wwd__panel-eyebrow {
    margin: 0 0 8px;
    color: var(--ecx-wwd-label);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ecx-wwd__panel-eyebrow span {
    margin: 0 4px;
    color: #9db0c3;
}

.ecx-wwd__panel-title {
    margin: 0 0 14px;
    color: var(--ecx-wwd-ink);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
}

.ecx-wwd__panel-text {
    margin: 0;
    color: var(--ecx-wwd-muted);
    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   RIGHT CARD GROUPS
========================================================= */

.ecx-wwd__right {
    display: flex;
    flex: 1 1 0%;
    flex-direction: column;
    gap: 140px;
    min-width: 0;
}

.ecx-wwd__block {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.ecx-wwd__col {
    display: flex;
    flex: 1 1 0%;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.ecx-wwd__col--offset {
    margin-top: 24px;
}

.ecx-wwd__card {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 300 / 195;
    border-radius: 8px;
    background: var(--ecx-wwd-navy);
    box-shadow: 0 10px 30px rgba(11, 37, 69, 0.12);
}

.ecx-wwd__card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 37, 69, 0.92) 0%, rgba(11, 37, 69, 0.35) 30%, rgba(11, 37, 69, 0) 55%);
    pointer-events: none;
}

.ecx-wwd__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ecx-wwd__card:hover .ecx-wwd__img {
    transform: scale(1.05);
}

.ecx-wwd__card-label {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 1;
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.ecx-wwd__card-label span {

    font-weight: 400;
    font-size: 11px;

}


/* =========================================================
   STACKED LAYOUT (tablet portrait & mobile)
========================================================= */

@media (max-width: 991.98px) {

    .ecx-wwd {
        padding-inline: 24px;
    }

    .ecx-wwd__flex {
        flex-direction: column;
        gap: 24px;
    }

    .ecx-wwd__left {
        top: var(--ecx-wwd-sticky-top, 0px);
        z-index: 20;
        width: 100%;
        padding: 16px 0 20px;
        background: var(--ecx-wwd-bg);
    }

    .ecx-wwd__panel {
        min-height: 84px;
        padding-top: 0;
    }

    .ecx-wwd__panel-title {
        margin-bottom: 0;
        font-size: 22px;
    }

    /* Only inside the sticky panels - the header subtitle shares this class */
    .ecx-wwd__panel .ecx-wwd__panel-text {
        display: none;
    }

    .ecx-wwd__right {
        width: 100%;
        gap: 80px;
    }
}

/* Mobile: no scroll animation (main.js skips it below 768px).
   The sticky column and its wrappers dissolve so each category panel
   sits directly above its own cards, in order. */
@media (max-width: 767.98px) {

    .ecx-wwd__left,
    .ecx-wwd__panels,
    .ecx-wwd__right {
        display: contents;
    }

    .ecx-wwd__flex {
        gap: 0;
    }

    .ecx-wwd__panel,
    .ecx-wwd__panel + .ecx-wwd__panel {
        position: static;
        inset: auto;
        height: auto;
        min-height: 0;
        margin: 48px 0 16px;
        transform: none !important;
        will-change: auto;
    }

    .ecx-wwd__panel:first-child {
        margin-top: 0;
    }

    .ecx-wwd__panel-title {
        margin-bottom: 8px;
    }

    .ecx-wwd__panel .ecx-wwd__panel-text {
        display: block;
    }

    .ecx-wwd__panel:nth-child(1) { order: 1; }
    .ecx-wwd__block:nth-child(1) { order: 2; }
    .ecx-wwd__panel:nth-child(2) { order: 3; }
    .ecx-wwd__block:nth-child(2) { order: 4; }
    .ecx-wwd__panel:nth-child(3) { order: 5; }
    .ecx-wwd__block:nth-child(3) { order: 6; }

    /* Bigger cards: one full-width card per row instead of two side by side */
    .ecx-wwd__block {
        flex-direction: column;
        gap: 16px;
    }

    .ecx-wwd__col {
        width: 100%;
        gap: 16px;
    }

    .ecx-wwd__col--offset {
        margin-top: 0;
    }

    .ecx-wwd__card {
        border-radius: 12px;
    }

    /* No hover zoom on touch screens */
    .ecx-wwd__card:hover .ecx-wwd__img {
        transform: none;
    }
}

@media (max-width: 575.98px) {

    .ecx-wwd__block,
    .ecx-wwd__col {
        gap: 14px;
    }

    .ecx-wwd__card-label {
        left: 14px;
        right: 14px;
        bottom: 12px;
        font-size: 14px;
    }

    .ecx-wwd__card-label span {
        font-size: 12px;
    }

    .ecx-wwd__panel-title {
        font-size: 18px;
    }
}
/* ===== Three pillars ===== */
.pillar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  position: relative;
}
.pillar-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 24px 44px rgb(209, 221, 239);

  z-index: 3;
}
.pillar-card .pillar-img {
  height: 190px;
  overflow: hidden;
  background: #000;
}
.pillar-card .pillar-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pillar-card .pillar-body {
  padding: 22px;
}

.pillar-card .pillar-body ul{
  padding-left: 1em;
}
.pillar-card .pillar-body ul li {
  font-size: var(--base);
}
.pillar-card h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.pillar-card p {
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.pillar-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.88rem;
}


/* ===== XSecure ===== */

.xsecure {
}
.xsecure-logo {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 14px;
}
.xsecure-logo span {
  color: #0e9f8f;
}

.xsecure-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 340px;
  background: #000;
  display: flex;
  align-items: flex-end;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.xsecure-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(11, 37, 69, 0.28);
}
.xsecure-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.xsecure-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.85) 100%
  );
  transition: background 0.35s ease;
  z-index: 1;
}
.xsecure-card:hover::before {
  background: linear-gradient(
    180deg,
    rgba(11, 37, 69, 0.15) 0%,
    rgba(11, 37, 69, 0.94) 100%
  );
}
.xsecure-body {
  position: relative;
  z-index: 2;
  padding: 22px;
  color: #fff;
  width: 100%;
}
.xsecure-body h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0;
  transition: margin 0.35s ease;
}
.xsecure-card:hover .xsecure-body h4 {
  margin-bottom: 10px;
}
.xsecure-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.84rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    opacity 0.3s ease;
}
.xsecure-card:hover .xsecure-list {
  max-height: 160px;
  opacity: 1;
}
.xsecure-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.85);
}
.xsecure-list li::before {
  content: "âœ“";
  position: absolute;
  left: 0;
  color: #4ea8ff;
  font-weight: 700;
}

