/**
 * Rakonex – Why Rakonex Elementor Widget Stylesheet
 * Scoped exclusively to .rkx-why-rakonex
 */

/* Baseline Widget Container */
.rkx-why-rakonex {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  /* background-color: #FFFFFF; */
  padding: 80px 0 85px 0;
  overflow: hidden;
  /* font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; */
  color: #0B132B;
  border-radius: 24px;
}

.rkx-why-rakonex *,
.rkx-why-rakonex *::before,
.rkx-why-rakonex *::after {
  box-sizing: border-box;
}

/* Background Media on Desktop (Full section coverage with seamless right-bleed) */
.rkx-why-rakonex__bg-media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.rkx-why-rakonex .rkx-why-rakonex__bg-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: right center !important;
  display: block !important;
}

/* Container */
.rkx-why-rakonex__container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Row Layout */
.rkx-why-rakonex__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

/* Left Content Column */
.rkx-why-rakonex__col-content {
  flex: 0 0 52%;
  max-width: 750px;
  padding-right: 20px;
  position: relative;
  z-index: 4;
}

/* Eyebrow */
.rkx-why-rakonex__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 5px 20px 5px 20px;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: var(--e-global-color-vamtam_accent_7);
  border-radius: 16px 16px 16px 16px;
}

.rkx-why-rakonex__eyebrow-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #25419B;
}

.rkx-why-rakonex__eyebrow-accent {
  display: inline-block;
  width: 42px;
  height: 3px;
  border-radius: 2px;
  background-color: #FEC810;
}

/* Main Heading */
.rkx-why-rakonex__title {
  margin: 0 0 20px 0;
  font-size: 47px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #0B132B;
  max-width: 720px;
}

.rkx-why-rakonex__highlight {
  color: #25419B;
  display: inline;
}

.rkx-why-rakonex__br-mobile {
  display: none;
}

.rkx-why-rakonex__space-desktop {
  display: inline;
}

@media (max-width: 767px) {
  .rkx-why-rakonex__br-mobile {
    display: block;
  }

  .rkx-why-rakonex__space-desktop {
    display: none;
  }
}

/* Supporting Paragraph */
.rkx-why-rakonex__desc {
  margin: 0 0 38px 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #5A6578;
  max-width: 610px;
  font-weight: 400;
}

/* 6 Features Grid */
.rkx-why-rakonex__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
  row-gap: 28px;
  max-width: 690px;
  margin-bottom: 42px;
}

.rkx-why-rakonex__item {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Icon Box */
.rkx-why-rakonex__icon-box {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background-color: #EEF3FA;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.rkx-why-rakonex__item:hover .rkx-why-rakonex__icon-box {
  transform: translateY(-2px);
  background-color: #E2EBF8;
}

.rkx-why-rakonex__icon-box svg,
.rkx-why-rakonex__icon-box img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

/* Feature Item Typography */
.rkx-why-rakonex__item-body {
  display: flex;
  flex-direction: column;
}

.rkx-why-rakonex__item-title {
  margin: 0 0 5px 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: #25419B;
}

.rkx-why-rakonex__item-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #667085;
  max-width: 260px;
  hyphens: none;
  -webkit-hyphens: none;
}

/* CTA Row */
.rkx-why-rakonex__cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.rkx-why-rakonex__btn,
.rkx-why-rakonex a.rkx-why-rakonex__btn,
.rkx-why-rakonex a.rkx-why-rakonex__btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #0B3DB8;
  color: #FFFFFF !important;
  text-decoration: none;
  padding: 13px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(11, 61, 184, 0.18);
  border: none;
  cursor: pointer;
}

.rkx-why-rakonex__btn:hover,
.rkx-why-rakonex a.rkx-why-rakonex__btn:hover {
  background-color: #FEC810;
  color: #0B132B !important;
  box-shadow: 0 6px 18px rgba(254, 200, 16, 0.35);
  transform: translateY(-1px);
}

.rkx-why-rakonex__btn-arrow {
  transition: transform 0.25s ease;
  flex-shrink: 0;
  stroke: currentColor;
}

.rkx-why-rakonex__btn:hover .rkx-why-rakonex__btn-arrow {
  transform: translateX(4px);
}

/* Partner Tagline (Beside CTA) */
.rkx-why-rakonex__tagline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.rkx-why-rakonex__tagline-line {
  display: inline-block;
  width: 34px;
  height: 1px;
  background-color: #D0D5DD;
}

.rkx-why-rakonex__tagline-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #808282;
}

/* Desktop Side Labels (positioned relative to .rkx-why-rakonex__container) */
.rkx-why-rakonex__side-label {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

.rkx-why-rakonex__side-label--top {
  top: 0;
  right: 40px;
  text-align: left;
}

.rkx-why-rakonex__side-label--bottom {
  bottom: 8px;
  right: 40px;
  text-align: left;
}

.rkx-why-rakonex__side-label-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.2px;
  line-height: 1.6;
  text-transform: uppercase;
  color: #808282;
  margin-bottom: 6px;
}

.rkx-why-rakonex__side-line {
  width: 42px;
  height: 2.5px;
  border-radius: 1px;
  background-color: #FEC810;
}

/* Mobile visual block and vertical text hidden on Desktop */
.rkx-why-rakonex__mobile-visual,
.rkx-why-rakonex__mobile-vertical-text {
  display: none;
}

/* =========================================================
   RESPONSIVE: Tablet (768px to 1024px)
   ========================================================= */
@media (min-width: 768px) and (max-width: 1024px) {
  .rkx-why-rakonex {
    padding: 60px 0;
  }

  .rkx-why-rakonex__bg-media {
    width: 100%;
    opacity: 0.22;
  }

  .rkx-why-rakonex__container {
    padding: 0 30px;
  }

  .rkx-why-rakonex__col-content {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
  }

  .rkx-why-rakonex__title {
    font-size: 42px;
    max-width: 100%;
  }

  .rkx-why-rakonex__side-label {
    display: none;
  }
}

/* =========================================================
   SCROLL REVEAL ANIMATIONS
   Smooth staggered reveal matching theme motion signature
   ========================================================= */
.rkx-why-rakonex [data-rkx-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.rkx-why-rakonex.rkx-in-view [data-rkx-reveal] {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered transition delays */
.rkx-why-rakonex.rkx-in-view [data-rkx-reveal="eyebrow"] {
  transition-delay: 0.05s;
}

.rkx-why-rakonex.rkx-in-view [data-rkx-reveal="title"] {
  transition-delay: 0.12s;
}

.rkx-why-rakonex.rkx-in-view [data-rkx-reveal="desc"] {
  transition-delay: 0.18s;
}

.rkx-why-rakonex.rkx-in-view [data-rkx-reveal="item"] {
  transition-delay: calc(0.22s + var(--rkx-item-delay, 0s));
}

.rkx-why-rakonex.rkx-in-view [data-rkx-reveal="cta"] {
  transition-delay: 0.48s;
}

.rkx-why-rakonex.rkx-in-view [data-rkx-reveal="side"] {
  transition-delay: 0.35s;
}

.rkx-why-rakonex.rkx-in-view [data-rkx-reveal="visual"] {
  transition-delay: 0.42s;
}

/* Fallback for Elementor Editor or reduced motion preference */
.elementor-editor-active .rkx-why-rakonex [data-rkx-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .rkx-why-rakonex [data-rkx-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================================
   RESPONSIVE: Mobile (< 768px)
   Follows /mnt/data/why-rakonex-mobile.png EXACTLY
   ========================================================= */
@media (max-width: 767px) {
  .rkx-why-rakonex {
    padding: 44px 0 0 0;
    overflow: hidden;
  }

  /* Hide Desktop background image and labels on mobile */
  .rkx-why-rakonex__bg-media,
  .rkx-why-rakonex__side-label {
    display: none;
  }

  .rkx-why-rakonex__container {
    padding: 0 16px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    position: relative;
  }

  .rkx-why-rakonex__row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* Content Column full width with space on right for vertical label */
  .rkx-why-rakonex__col-content {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    padding-right: 22px;
    box-sizing: border-box;
  }

  /* Eyebrow */
  .rkx-why-rakonex__eyebrow {
    margin-bottom: 14px;
    gap: 10px;
  }

  .rkx-why-rakonex__eyebrow-text {
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .rkx-why-rakonex__eyebrow-accent {
    width: 32px;
    height: 2.5px;
  }

  /* Main Heading: Wrapped across 3 lines */
  .rkx-why-rakonex__title {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.3px;
    margin-bottom: 16px;
    max-width: 330px;
  }

  /* Supporting Paragraph */
  .rkx-why-rakonex__desc {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 30px;
    max-width: 100%;
  }

  /* 2-column feature grid on mobile */
  .rkx-why-rakonex__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 26px;
    margin-bottom: 32px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Stacked feature item: icon at top, text below */
  .rkx-why-rakonex__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .rkx-why-rakonex__item-body {
    min-width: 0;
    width: 100%;
  }

  .rkx-why-rakonex__icon-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }

  .rkx-why-rakonex__icon-box svg,
  .rkx-why-rakonex__icon-box img {
    width: 24px;
    height: 24px;
  }

  .rkx-why-rakonex__item-title {
    font-size: 14px;
    line-height: 1.25;
    margin-bottom: 4px;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .rkx-why-rakonex__item-desc {
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: break-word;
  }

  /* Centered pill CTA Button & Tagline */
  .rkx-why-rakonex__cta-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    gap: 14px;
  }

  .rkx-why-rakonex__btn {
    width: 100%;
    max-width: 250px;
    padding: 13px 26px;
    justify-content: center;
    font-size: 14.5px;
  }

  .rkx-why-rakonex__tagline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    max-width: 100%;
  }

  .rkx-why-rakonex__tagline-line {
    width: 22px;
    flex-shrink: 0;
  }

  .rkx-why-rakonex__tagline-text {
    font-size: 9.5px;
    letter-spacing: 1.2px;
    white-space: normal;
    text-align: center;
  }

  /* Mobile Visual Composition: Placed below CTA */
  .rkx-why-rakonex__mobile-visual {
    display: block;
    margin: 28px -16px 0 -16px;
    width: calc(100% + 32px);
    position: relative;
    overflow: hidden;
    height: clamp(340px, 85vw, 400px);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
  }

  .rkx-why-rakonex__mobile-visual-inner {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .rkx-why-rakonex .rkx-why-rakonex__mobile-visual-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: 72% center !important;
    display: block !important;
  }

  /* Mobile Right Vertical Text (Runs alongside lower features and CTA above bottom visual) */
  .rkx-why-rakonex__mobile-vertical-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: absolute;
    right: 4px;
    bottom: calc(clamp(340px, 85vw, 400px) + 24px);
    z-index: 5;
    pointer-events: none;
  }

  .rkx-why-rakonex__mobile-vertical-line {
    display: block;
    width: 1px;
    height: 38px;
    background-color: #B0B5BC;
  }

  .rkx-why-rakonex__mobile-vertical-title {
    writing-mode: vertical-rl;
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #808282;
    text-transform: uppercase;
  }

  /* Mobile Bottom-Left Badge */
  .rkx-why-rakonex__mobile-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    position: absolute;
    bottom: 24px;
    left: 20px;
    z-index: 5;
    pointer-events: none;
  }

  .rkx-why-rakonex__mobile-line {
    display: block;
    width: 32px;
    height: 2.5px;
    background-color: #FEC810;
  }

  .rkx-why-rakonex__mobile-badge-text {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.8px;
    line-height: 1.55;
    text-transform: uppercase;
    color: #64748B;
  }

  .rkx-why-rakonex__mobile-badge-blue {
    color: #25419B;
    font-weight: 800;
  }

  /* Tablet-style background overlay mode on mobile */
  .rkx-why-rakonex.rkx-mobile-style--background {
    padding: 44px 0 44px 0;
  }

  .rkx-why-rakonex.rkx-mobile-style--background .rkx-why-rakonex__mobile-visual {
    display: none !important;
  }

  .rkx-why-rakonex.rkx-mobile-style--background .rkx-why-rakonex__bg-media {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0.16 !important;
  }

  .rkx-why-rakonex.rkx-mobile-style--background .rkx-why-rakonex .rkx-why-rakonex__bg-img {
    object-position: 70% center !important;
  }
}