/* Robotic Process Automation page — extends qafi.css */

.rpa-hero__bg {
  background:
    url("assets/rpa/hero.jpg") center / cover no-repeat;
}

.rpa-hero .qf-hero__title {
  max-width: 22ch;
}

.rpa-hero-benefits {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  max-width: 640px;
}

.rpa-hero-benefits li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.92);
}

.rpa-hero-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 28%, transparent 30%),
    var(--qf-accent);
}

/* Use-case chips */
.rpa-usecases {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rpa-usecases li {
  padding: 18px 16px;
  background: var(--qf-soft);
  border: 1px solid rgba(96, 38, 158, 0.12);
  font-size: 15px;
  font-weight: 650;
  text-align: center;
}

/* 4-dimensional vertical tabs */
.rpa-dims {
  margin-top: clamp(8px, 2vw, 16px);
}

.rpa-dims__intro {
  margin: 0 0 clamp(24px, 4vw, 36px);
  max-width: 40ch;
}

.rpa-dims__layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  min-height: 420px;
  border: 1px solid rgba(96, 38, 158, 0.16);
  overflow: hidden;
  background: #fff;
}

.rpa-dims__nav {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #f3eef8;
  border-right: 1px solid rgba(96, 38, 158, 0.14);
}

.rpa-dims__tab {
  appearance: none;
  width: 100%;
  margin: 0;
  padding: 22px 20px;
  border: 0;
  border-bottom: 1px solid rgba(96, 38, 158, 0.1);
  background: transparent;
  color: rgba(40, 32, 52, 0.72);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.rpa-dims__tab:hover {
  background: rgba(96, 38, 158, 0.08);
  color: var(--qf-ink);
}

.rpa-dims__tab[aria-selected="true"] {
  background: var(--qf-accent);
  color: #fff;
}

.rpa-dims__panels {
  position: relative;
  background:
    linear-gradient(115deg, rgba(26, 11, 46, 0.94) 0%, rgba(96, 38, 158, 0.88) 55%, rgba(96, 38, 158, 0.72) 100%),
    url("assets/rpa/dim-bg.png") right center / cover no-repeat;
  color: #fff;
  min-height: 420px;
}

.rpa-dims__panel {
  display: none;
  padding: clamp(28px, 4vw, 40px);
  height: 100%;
}

.rpa-dims__panel.is-active {
  display: block;
  animation: rpaPanelIn 0.35s ease;
}

@keyframes rpaPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rpa-dims__panel h3 {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.rpa-dims__panel h4 {
  margin: 22px 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.rpa-dims__panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rpa-dims__panel li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.rpa-dims__panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.rpa-why {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.rpa-why li {
  position: relative;
  padding: 16px 18px 16px 44px;
  background: var(--qf-soft);
  border-left: 3px solid var(--qf-accent);
  font-size: 15px;
  line-height: 1.55;
  color: var(--qf-muted);
}

.rpa-why li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 1.15em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--qf-accent);
}

.rpa-cta {
  background:
    linear-gradient(120deg, rgba(18, 8, 28, 0.92), rgba(96, 38, 158, 0.78)),
    url("assets/rpa/hero.jpg") center / cover no-repeat;
}

.rpa-why-media {
  margin: 0;
  display: grid;
  place-items: center;
}

.rpa-why-media img {
  display: block;
  width: min(100%, 420px);
  height: auto;
}

@media (max-width: 980px) {
  .rpa-hero-benefits,
  .rpa-usecases {
    grid-template-columns: 1fr;
  }

  .rpa-dims__layout {
    grid-template-columns: 1fr;
  }

  .rpa-dims__nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid rgba(96, 38, 158, 0.14);
  }

  .rpa-dims__tab {
    flex: 1 1 40%;
    text-align: center;
    padding: 14px 12px;
    border-bottom: 0;
    border-right: 1px solid rgba(96, 38, 158, 0.08);
  }
}
