/* ======================= SCOPED CSS ======================= */
.ark_ca_cta-scope {
  /* --- COLOR PALETTE --- */
  --brand-color: #e65227;
  /* Your Logo Color */
  --brand-dark: #b93e1b;
  /* Darker shade for hover states */

  --text-heading: #0f172a;
  /* Deep Navy for readability */
  --text-body: #334155;
  /* Slate Grey */
  --bg-color: #f8fafc;
  /* Light background */
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
}

.ark_ca_cta-scope section {
  background-color: var(--bg-color);
  padding: 3rem 0;
  /* Reduced padding for mobile, lg handles larger */
  overflow: hidden;
  font-family: system-ui;
}

/* --- TYPOGRAPHY & BUTTONS --- */

/* Primary Button styled with Logo Color */
.ark_ca_cta-scope .btn-ca-brand {
  background-color: var(--brand-color);
  color: #fff;
  padding: 12px 32px;
  border-radius: 50px;
  /* Modern pill shape */
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(230, 82, 39, 0.3);
  /* Colored shadow */
}

.ark_ca_cta-scope .btn-ca-brand:hover {
  background-color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 82, 39, 0.4);
  color: #fff;
}

/* --- ANIMATION STAGE --- */
.ark_ca_cta-scope .animation-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 320px;
  margin-top: 1rem;
}

/* Fixed "CA" Hub Node */
.ark_ca_cta-scope .fixed-node-wrapper {
  display: flex;
  align-items: center;
  z-index: 20;
  margin-right: -10px;
  /* Slight overlap */
  flex-shrink: 0;
}

.ark_ca_cta-scope .fixed-node {
  width: 50px;
  height: 50px;
  background: var(--brand-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  border: 3px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ark_ca_cta-scope .connector-line {
  width: 30px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--brand-color),
    var(--brand-color) 4px,
    transparent 4px,
    transparent 8px
  );
}

/* Scrolling Window */
.ark_ca_cta-scope .scroll-window {
  width: 300px;
  /* Default width */
  height: 260px;
  overflow: hidden;
  position: relative;
  /* Fade top and bottom */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
}

.ark_ca_cta-scope .scroll-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  will-change: transform;
}

/* Cards */
.ark_ca_cta-scope .service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 auto 14px auto;
  width: 92%;
  /* Fit inside window with margin */
  display: flex;
  align-items: center;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Inactive State */
  opacity: 0.5;
  transform: scale(0.92);
}

/* Active State */
.ark_ca_cta-scope .service-card.active-item {
  opacity: 1;
  transform: scale(1);
  border-color: var(--brand-color);
  /* Logo Color Border */
  border-left-width: 5px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.ark_ca_cta-scope .service-icon {
  margin-right: 12px;
  color: var(--text-heading);
  /* Default icon color */
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

/* Active Icon Color */
.ark_ca_cta-scope .service-card.active-item .service-icon {
  color: var(--brand-color);
}

.ark_ca_cta-scope .service-text {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.95rem;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (min-width: 992px) {
  .ark_ca_cta-scope section {
    padding: 5rem 0;
  }

  .ark_ca_cta-scope h2 {
    font-size: 2.5rem;
  }

  .ark_ca_cta-scope .scroll-window {
    width: 340px;
  }

  .ark_ca_cta-scope .fixed-node {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
  }

  .ark_ca_cta-scope .connector-line {
    width: 40px;
  }
}

@media (max-width: 576px) {
  /* Mobile tweaks */
  .ark_ca_cta-scope .scroll-window {
    width: 260px;
    /* Smaller window for narrow screens */
  }

  .ark_ca_cta-scope .service-text {
    font-size: 0.85rem;
    /* Slightly smaller text */
  }
}
