/* ==============================================
   SECTION PERSONA — Home Page
   Mobile-first, fully responsive
   ============================================== */

.section_persona {
  padding: 72px 0 88px;
  background: #EEF2F9;
}

.persona-section {
  gap: 0 !important;
  padding-right: var(--lp-space-screen-x);
  padding-left: var(--lp-space-screen-x);
}

/* ---- Header ---- */
.persona-section__header {
  text-align: center;
  margin-bottom: 20px;
}

.persona-section__title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
  margin: 0 0 12px;
}

.persona-section__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #64748b;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Tab navigation ---- */
.persona-tabs-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.persona-tabs-wrapper {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 0;
  scroll-behavior: smooth;
}

.persona-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

/* Panah geser tab — mobile & tablet; disembunyikan di laptop+ */
.persona-tabs-nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3954A4;
  cursor: pointer;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.persona-tabs-nav:hover:not(:disabled) {
  color: #2e4490;
}

.persona-tabs-nav:active:not(:disabled) {
  opacity: 0.85;
}

.persona-tabs-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.persona-tabs-nav svg {
  display: block;
  flex-shrink: 0;
}

.persona-tabs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid #d1daea;
  min-width: max-content;
}

.persona-tab {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

.persona-tab.is-active {
  color: #3954A4;
  font-weight: 600;
  border-bottom-color: #3954A4;
}

.persona-tab:hover:not(.is-active) {
  color: #374151;
}

/* ---- Panels ---- */
.persona-panels {
  background-color: #EEF2F9;
  background-image: url('../../img/light-homepage/bg-panel.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 5rem;
  padding-right: 1rem;
  padding-left: 1rem;
  padding-bottom: 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.persona-panel {
  display: none;
  width: 100%;
  max-width: 100%;
}

.persona-panel.is-active {
  display: block;
  animation: personaFadeIn 0.28s ease;
}

@keyframes personaFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- 3-column grid ---- */
.persona-panel__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.persona-panel__inner>* {
  min-width: 0;
}

.persona-col--masalah,
.persona-col--solusi {
  display: flex;
  flex-direction: column;
}

/* ---- Column labels ---- */
.persona-col__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.persona-col__label--masalah {
  color: #E31F26;
}

.persona-col__label--solusi {
  color: #3954A4;
}

/* ---- Column title ---- */
.persona-col__title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
  margin: 0 0 16px;
}

/* ============================================
   MASALAH LIST
   ============================================ */
.persona-masalah-list,
.persona-solusi-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.persona-masalah__item,
.persona-solusi__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  min-height: 54px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(209, 218, 234, 0.6);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.persona-masalah__item:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.85);
}

.persona-solusi__item:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.85);
}

/* Active masalah — red */
.persona-masalah__item.is-active {
  background: #E31F26;
  border-color: #E31F26;
  color: #ffffff;
}

/* Active solusi — blue */
.persona-solusi__item.is-active {
  background: #3954A4;
  border-color: #3954A4;
  color: #ffffff;
}

/* SVG icon: masalah (minus circle) */
.persona-masalah__icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.persona-masalah__icon-circle {
  fill: rgba(227, 31, 38, 0.1);
  stroke: #E31F26;
  stroke-width: 1.5;
  transition: fill 0.2s, stroke 0.2s;
}

.persona-masalah__icon-line {
  stroke: #E31F26;
  stroke-width: 1.5;
  stroke-linecap: round;
  transition: stroke 0.2s;
}

.persona-masalah__item.is-active .persona-masalah__icon-circle {
  fill: rgba(255, 255, 255, 0.25);
  stroke: rgba(255, 255, 255, 0.8);
}

.persona-masalah__item.is-active .persona-masalah__icon-line {
  stroke: #ffffff;
}

/* SVG icon: solusi (check circle) */
.persona-solusi__icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.persona-solusi__icon-circle {
  fill: rgba(57, 84, 164, 0.1);
  stroke: #3954A4;
  stroke-width: 1.5;
  transition: fill 0.2s, stroke 0.2s;
}

.persona-solusi__icon-path {
  stroke: #3954A4;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: stroke 0.2s;
}

.persona-solusi__item.is-active .persona-solusi__icon-circle {
  fill: rgba(255, 255, 255, 0.25);
  stroke: rgba(255, 255, 255, 0.8);
}

.persona-solusi__item.is-active .persona-solusi__icon-path {
  stroke: #ffffff;
}

/* ============================================
   FOTO COLUMN
   ============================================ */
.persona-col--foto {
  order: -1;
  display: flex;
  align-items: flex-end;
}

.persona-foto {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 260px;
  width: 100%;
  height: 100%;
}

/* Lapisan 2: lengkung peach di atas pola */
.persona-foto__circle {
  position: absolute;
  left: 50%;
  width: 280px;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 1;
  border-radius: calc(200px / 2) calc(200px / 2) 0 0;
  background: linear-gradient(180deg,
      #fffdfb 0%,
      #fef8f9 28%,
      #fdeef0 55%,
      #f8d4d9 82%,
      #f3c5cb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -12px 24px rgba(255, 182, 193, 0.12);
}

.persona-foto__img {
  position: relative;
  z-index: 2;
  max-height: 260px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
  display: block;
  margin: 0 auto;
}

.persona-foto__card {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 14px;
  padding: 8px 12px 8px 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
  z-index: 3;
  white-space: normal;
  /* Hampir penuh lebar kolom foto (sedikit lebih lebar dari sebelumnya) */
  width: calc(100% - 10%);
  max-width: calc(100% - 30%);
  box-sizing: border-box;
}

.persona-foto__card>div {
  min-width: 0;
  flex: 1;
}

.persona-foto__card-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8edf5;
  flex-shrink: 0;
}

.persona-foto__card-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.persona-foto__card-role {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #64748b;
  margin: 0;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ---- CTA ---- */
.persona-col--solusi {
  min-width: 0;
}

.persona-solusi-list {
  flex: 0;
  margin-bottom: 1rem;
}

.persona-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3954A4;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  transition: gap 0.2s ease, color 0.2s ease;
  margin-top: 0;
}

.persona-cta:hover {
  gap: 10px;
  color: #2e4490;
}

.persona-cta svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.persona-cta:hover svg {
  transform: translateX(2px);
}

/* ==============================================
   TABLET — 768px+
   ============================================== */
@media only screen and (min-width: 48rem) {
  .section_persona {
    padding: 80px 0 96px;
  }

  .persona-section {
    padding-right: 0;
    padding-left: 0;
  }

  .persona-panels {
    padding-bottom: 0;
  }

  .persona-section__title {
    font-size: 30px;
  }

  .persona-tab {
    font-size: 13px;
    padding: 11px 18px;
  }

  .persona-panel__inner {
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    min-height: 360px;
  }

  .persona-col--masalah {
    flex: 1 1 0;
    min-width: 0;
  }

  .persona-col--foto {
    flex: 0 0 200px;
    order: 0;
  }

  .persona-col--solusi {
    flex: 1 1 0;
    min-width: 0;
  }

  .persona-foto {
    min-height: 320px;
  }

  .persona-foto__img {
    max-height: 320px;
  }

  .persona-foto__card {
    align-items: center;
    white-space: nowrap;
    border-radius: 999px;
    padding: 8px 18px 8px 10px;
    gap: 10px;
    width: auto;
    max-width: calc(100% - 16px);
  }

  .persona-foto__card>div {
    flex: 0 1 auto;
    min-width: 0;
  }

  .persona-foto__card-name,
  .persona-foto__card-role {
    overflow-wrap: normal;
    word-break: normal;
  }

  .persona-col__title {
    font-size: 16px;
  }
}

/* ==============================================
   LAPTOP — 1024px+
   ============================================== */
@media only screen and (min-width: 64rem) {
  .section_persona {
    padding: 88px 0 104px;
  }

  .persona-tabs-wrapper {
    overflow-x: visible;
  }

  .persona-tabs {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }

  .persona-tab {
    padding-right: 8px;
    padding-left: 8px;
    text-align: center;
  }

  .persona-tabs-bar {
    gap: 0;
  }

  .persona-tabs-nav {
    display: none;
  }

  .persona-panels {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .persona-section {
    gap: 0 !important;
  }

  .persona-section__title {
    font-size: 34px;
    margin-bottom: 14px;
  }

  .persona-section__subtitle {
    font-size: 15px;
  }

  .persona-tab {
    font-size: 14px;
    padding: 12px 14px;
  }

  .persona-panel__inner {
    gap: 36px;
    min-height: 420px;
  }

  .persona-col--foto {
    flex: 0 0 250px;
  }

  .persona-foto {
    min-height: 380px;
  }

  .persona-foto__img {
    max-height: 380px;
  }

  .persona-col__title {
    font-size: 18px;
  }

  .persona-masalah__item,
  .persona-solusi__item {
    font-size: 13.5px;
    min-height: 60px;
  }
}

/* ==============================================
   DESKTOP — 1280px+
   ============================================== */
@media only screen and (min-width: 80rem) {
  .section_persona {
    padding: 96px 0 112px;
  }

  .persona-section {
    gap: 0 !important;
  }

  .persona-section__title {
    font-size: 38px;
  }

  .persona-col--foto {
    flex: 0 0 290px;
  }

  .persona-panels {
    padding-right: 3rem;
    padding-left: 3rem;
  }

  .persona-panel__inner {
    min-height: 460px;
  }

  .persona-foto {
    min-height: 420px;
  }

  .persona-foto__img {
    max-height: 420px;
  }

  .persona-col__title {
    font-size: 20px;
  }

  .persona-masalah__item,
  .persona-solusi__item {
    font-size: 14px;
    padding: 12px 16px;
    min-height: 64px;
  }

  .persona-cta {
    font-size: 15px;
  }
}