/* =====================================================================
   APP FOOTER — standard footer RBAC-Naitfej (core/views/layouts/footer.php)
   Diekstrak APA ADANYA dari public/assets/css/style.css template supaya
   footer yang SAMA dapat dipakai layout internal (style.css) maupun
   halaman publik Need Discovery (tanpa memuat seluruh style.css admin).
   Token var(--…) diberi fallback nilai dari :root style.css template.
   ===================================================================== */
/* =====================================================================
   FOOTER — adapted from BEKAL Portal brand footer (bsa-footer)
   ===================================================================== */
.app-footer {
  background: var(--c-primary-dark, #004d63);
  color: #fff;
  padding: 30px 0 20px;
  margin-top: auto;
}
.app-footer .footer-container {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.app-footer .footer-row1 {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.app-footer .footer-tagline p { margin: 0; font-size: 12.5px; color: rgba(255,255,255,0.72); line-height: 1.7; text-align: right; }
.app-footer .footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display, inherit); font-weight: 700; }
.app-footer .footer-brand img { height: 26px; }
.app-footer .footer-divider { height: 1px; background: rgba(255,255,255,0.12); }
.app-footer .footer-socials { display: flex; justify-content: center; gap: 16px; font-size: 15px; padding: 4px 0; }
.app-footer .footer-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.22);
  transition: background var(--transition, 0.25s cubic-bezier(0.4, 0, 0.2, 1)), border-color var(--transition, 0.25s cubic-bezier(0.4, 0, 0.2, 1)), transform var(--transition, 0.25s cubic-bezier(0.4, 0, 0.2, 1));
}
.app-footer .footer-socials a:hover { background: var(--c-accent, #F15A22); border-color: var(--c-accent, #F15A22); transform: translateY(-3px); }
.app-footer .footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 11.5px; color: rgba(255,255,255,0.55);
}
.app-footer .footer-legal { display: flex; gap: 18px; }
.app-footer .footer-legal a:hover { color: #fff; }

/* DOIT: footer dua sisi — identitas aplikasi (kiri) & regulasi BNI Life (kanan) */
.app-footer .footer-bottom--split { align-items: flex-start; gap: 12px 32px; font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,0.72); }
.app-footer .footer-bottom--split p { margin: 0; }
.app-footer .footer-meta { text-align: left; }
.app-footer .footer-regulator { margin-left: auto; text-align: right; }
/* DOIT: baris media sosial (kiri, baris 1) — ikon Font Awesome + handle */
.app-footer .footer-social { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.app-footer .footer-social__icon {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.22); color: #fff; font-size: 14px; text-decoration: none;
  transition: background var(--transition, 0.25s cubic-bezier(0.4, 0, 0.2, 1)), border-color var(--transition, 0.25s cubic-bezier(0.4, 0, 0.2, 1));
}
.app-footer a.footer-social__icon:hover { background: var(--c-accent, #F15A22); border-color: var(--c-accent, #F15A22); }
.app-footer a.footer-social__icon:focus-visible { outline: 2px solid var(--c-warning, #F99D1F); outline-offset: 2px; }
.app-footer .footer-social__handle { margin-left: 4px; color: #fff; font-weight: 500; }
.app-footer .footer-regulator strong { color: #fff; font-weight: 700; }
.app-footer .footer-regulator a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.app-footer .footer-regulator a:hover { color: var(--c-warning, #F99D1F); }
.app-footer .footer-regulator a:focus-visible { outline: 2px solid var(--c-warning, #F99D1F); outline-offset: 2px; border-radius: 2px; }

/* Simple centered footer variant (used on error pages / minimal layouts) */
.app-footer.app-footer--simple { padding: 18px 28px; text-align: center; font-size: 12.5px; background: transparent; color: var(--c-text-muted, #5C7378); border-top: 1px solid var(--c-border, #E1EBED); }

/* =========================================================
   FOOTER — MOBILE CENTERED LAYOUT
   ========================================================= */
@media (max-width: 768px) {

  .app-footer .footer-container {
    padding: 0 20px;
    align-items: center;
    text-align: center;
  }

  /* Row utama: brand + tagline */
  .app-footer .footer-row1 {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  /* Logo */
  .app-footer .footer-brand {
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .app-footer .footer-brand img {
    height: 24px;
    width: auto;
  }

  /* Tagline */
  .app-footer .footer-tagline {
    width: 100%;
    text-align: center;
  }

  .app-footer .footer-tagline p {
    text-align: center;
  }

  /* Divider */
  .app-footer .footer-divider {
    width: 100%;
  }

  /* Social media */
  .app-footer .footer-socials {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  /* Bottom copyright + bantuan */
  .app-footer .footer-bottom {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding-top: 14px;
  }

  .app-footer .footer-bottom > span {
    width: 100%;
    text-align: center;
  }

  /* DOIT: footer dua sisi ditumpuk dan dipusatkan di layar kecil */
  .app-footer .footer-meta,
  .app-footer .footer-regulator {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .app-footer .footer-social {
    justify-content: center;
  }

  .app-footer .footer-legal {
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .app-footer .footer-legal a {
    text-align: center;
  }

}
