/* ─── footer_05 ──────────────────────────────────────────────── */
.footer-journal-05 {
  --f05-bg:      var(--color-footer-bg, var(--color-primary, #0d1b4a));
  --f05-bg-dark: var(--color-footer-bg-dark, var(--color-primary-dark, #080f2e));
  --f05-accent:  var(--color-accent, #f3a43a);
  --f05-text:    var(--color-footer-text, #ffffff);
  --f05-muted:   rgba(255, 255, 255, 0.55);
  --f05-border:  rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, var(--f05-bg), var(--f05-bg-dark));
  color: var(--f05-text);
  overflow: hidden;
  position: relative;
}

.footer-journal-05 *,
.footer-journal-05 *::before,
.footer-journal-05 *::after { box-sizing: border-box; }

.footer-journal-05 a      { color: inherit; text-decoration: none; }
.footer-journal-05 img    { display: block; max-width: 100%; }
.footer-journal-05 address{ font-style: normal; }

/* ── Container ───────────────────────────────────────────────── */
.footer-journal-05__container {
  margin: 0 auto;
  max-width: 1290px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── CTA Banner ──────────────────────────────────────────────── */
.footer-journal-05__cta {
  align-items: center;
  background: var(--f05-accent);
  border-radius: 24px;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.6fr) auto;
  margin-top: 80px;
  overflow: hidden;
  padding: 44px 48px;
  position: relative;
}

.footer-journal-05__cta-copy,
.footer-journal-05__cta-actions {
  position: relative;
  z-index: 1;
}

.footer-journal-05__cta-title {
  color: #0f172a;
  font-family: var(--title-font);
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.18;
  margin: 0 0 12px;
}

.footer-journal-05__cta-description {
  color: rgba(15, 23, 42, 0.75);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
  max-width: 560px;
}

.footer-journal-05__cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer-journal-05__cta-button {
  align-items: center;
  /* Background mengikuti primary color dari active ColorPreset.
     Fallback ke --f05-bg (navy gelap) supaya kontras di banner kuning. */
  background: var(--color-primary, var(--f05-bg, #0d1b4a));
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--color-text-on-primary, #ffffff);
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  min-height: 56px;
  min-width: 180px;
  padding: 0 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.footer-journal-05__cta-button:hover,
.footer-journal-05__cta-button:focus-visible {
  background: var(--color-primary-dark, var(--f05-bg-dark, #080f2e));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.28);
  color: var(--color-text-on-primary, #ffffff);
  outline: none;
  transform: translateY(-2px);
}

.footer-journal-05__cta-button i {
  color: inherit;
}

.footer-journal-05__cta-note {
  color: rgba(15, 23, 42, 0.65);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
  text-align: right;
}

.footer-journal-05__cta-line {
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  position: absolute;
}

.footer-journal-05__cta-line img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.footer-journal-05__cta-arrow {
  bottom: 16px;
  pointer-events: none;
  position: absolute;
  right: 220px;
  z-index: 0;
}

.footer-journal-05__cta-arrow img {
  filter: invert(1);
  max-width: 160px;
  opacity: 0.6;
}

/* ── Widgets ─────────────────────────────────────────────────── */
.footer-journal-05__widgets {
  padding: 72px 0 0;
}

.footer-journal-05__grid {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.9fr);
  align-items: start;
}

/* ── Brand panel (left) ──────────────────────────────────────── */
.footer-journal-05__brand-panel {
  min-width: 0;
}

.footer-journal-05__logo-wrap {
  margin-bottom: 16px;
}

.footer-journal-05__logo {
  max-height: 52px;
}

.footer-journal-05__brand-title {
  color: var(--f05-text);
  font-family: var(--title-font);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
}

.footer-journal-05__brand-description {
  color: var(--f05-muted);
  font-size: 15px;
  line-height: 1.85;
  margin: 0;
  max-width: 320px;
}

/* Newsletter — white pill input + gold rounded-square button */
.footer-journal-05__newsletter {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--f05-border);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  max-width: 340px;
  padding: 6px 6px 6px 18px;
}

.footer-journal-05__newsletter-input {
  background: transparent;
  border: 0;
  color: var(--f05-text);
  flex: 1 1 auto;
  font-size: 15px;
  min-height: 40px;
  padding: 0;
  width: 100%;
}

.footer-journal-05__newsletter-input::placeholder {
  color: var(--f05-muted);
}

.footer-journal-05__newsletter-input:focus {
  outline: none;
}

.footer-journal-05__newsletter-button {
  align-items: center;
  background: var(--f05-accent);
  border: 0;
  border-radius: var(--radius-pill);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 16px;
  height: 44px;
  justify-content: center;
  transition: filter 0.2s ease, transform 0.2s ease;
  width: 44px;
}

.footer-journal-05__newsletter-button:hover,
.footer-journal-05__newsletter-button:focus-visible {
  filter: brightness(1.06);
  outline: none;
  transform: scale(1.04);
}

/* ── Nav columns (right) ─────────────────────────────────────── */
.footer-journal-05__nav-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-journal-05__column-title {
  color: var(--f05-text);
  font-family: var(--title-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 20px;
}

.footer-journal-05__links,
.footer-journal-05__contact-list,
.footer-journal-05__bottom-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-journal-05__links li + li,
.footer-journal-05__contact-list li + li {
  margin-top: 14px;
}

.footer-journal-05__links a {
  color: var(--f05-muted);
  display: inline-block;
  font-size: 15px;
  line-height: 1.7;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-journal-05__links a:hover,
.footer-journal-05__links a:focus-visible {
  color: var(--f05-text);
  outline: none;
  transform: translateX(3px);
}

/* Contact column with icons */
.footer-journal-05__contact-list li {
  align-items: flex-start;
  display: flex;
  gap: 11px;
}

.footer-journal-05__contact-icon {
  color: var(--f05-accent);
  flex: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
}

.footer-journal-05__contact-text {
  color: var(--f05-muted);
  font-size: 15px;
  line-height: 1.75;
  transition: color 0.2s ease;
}

.footer-journal-05__contact-text:hover,
.footer-journal-05__contact-text:focus-visible {
  color: var(--f05-text);
  outline: none;
}

.footer-journal-05__contact-text--strong {
  color: var(--f05-text);
  font-size: 18px;
  font-weight: 700;
}

/* ── Bottom bar ──────────────────────────────────────────────── */
.footer-journal-05__bottom {
  align-items: center;
  border-top: 1px solid var(--f05-border);
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto 1fr;
  margin-top: 56px;
  padding: 22px 0 28px;
}

.footer-journal-05__copyright {
  color: var(--f05-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.footer-journal-05__copyright strong,
.footer-journal-05__copyright a {
  color: var(--f05-text);
  font-weight: 600;
}

.footer-journal-05__copyright a:hover {
  color: var(--f05-accent);
}

/* Back-to-top — centered, large floating square */
.footer-journal-05__backtop {
  align-items: center;
  background: var(--f05-accent);
  border: 0;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  gap: 1px;
  height: 54px;
  justify-content: center;
  transition: transform 0.22s ease, filter 0.22s ease;
  width: 54px;
}

.footer-journal-05__backtop:hover,
.footer-journal-05__backtop:focus-visible {
  filter: brightness(1.06);
  outline: none;
  transform: translateY(-3px);
}

/* Bottom nav links — right-aligned */
.footer-journal-05__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: flex-end;
}

.footer-journal-05__bottom-links a {
  color: var(--f05-muted);
  font-size: 14px;
  line-height: 1.7;
  transition: color 0.2s ease;
}

.footer-journal-05__bottom-links a:hover,
.footer-journal-05__bottom-links a:focus-visible {
  color: var(--f05-text);
  outline: none;
}

/* ── Decorative shape (right) ────────────────────────────────── */
.footer-journal-05__shape {
  opacity: 0.14;
  pointer-events: none;
  position: absolute;
  right: -220px;
  top: 60px;
  z-index: 0;
}

.footer-journal-05__shape img {
  max-width: 480px;
}

/* ── Box shapes (bottom-left) ────────────────────────────────── */
.footer-journal-05__box-shape {
  bottom: 0;
  height: 160px;
  left: 0;
  pointer-events: none;
  position: absolute;
  width: 160px;
  z-index: 0;
}

.footer-journal-05__box {
  background: rgba(255, 255, 255, 0.1);
  display: block;
  position: absolute;
}

.footer-journal-05__box--one {
  bottom: 0;
  height: 100%;
  left: 0;
  width: 50%;
}

.footer-journal-05__box--two {
  bottom: 0;
  height: 50%;
  left: 0;
  width: 100%;
}

/* ── SR-only ─────────────────────────────────────────────────── */
.footer-journal-05__sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ── Color variants ──────────────────────────────────────────── */
.footer-journal-05--navy_orange {
  --f05-bg:      #0e1b4a;
  --f05-bg-dark: #080f2d;
  --f05-accent:  #f3a43a;
}

.footer-journal-05--academic_blue_gold {
  --f05-bg:      #102b63;
  --f05-bg-dark: #081c45;
  --f05-accent:  #e7b94c;
}

.footer-journal-05--dark_journal {
  --f05-bg:      #111827;
  --f05-bg-dark: #020617;
  --f05-accent:  #d4a72c;
}

/* ── Layout variants ─────────────────────────────────────────── */
.footer-journal-05--compact_footer .footer-journal-05__cta {
  margin-top: 60px;
  padding: 36px 40px;
}

.footer-journal-05--split_footer .footer-journal-05__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .footer-journal-05__cta {
    grid-template-columns: 1fr;
  }

  .footer-journal-05__cta-actions {
    align-items: flex-start;
  }

  .footer-journal-05__cta-note {
    text-align: left;
  }

  .footer-journal-05__cta-arrow {
    right: 60px;
  }

  .footer-journal-05__grid {
    grid-template-columns: 1fr;
  }

  .footer-journal-05__brand-description {
    max-width: 480px;
  }
}

@media (max-width: 991px) {
  .footer-journal-05__nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .footer-journal-05__bottom {
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
  }

  .footer-journal-05__backtop {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 767px) {
  .footer-journal-05__cta {
    margin-top: 56px;
    padding: 28px 24px;
  }

  .footer-journal-05__cta-title {
    font-size: 24px;
  }

  .footer-journal-05__cta-arrow,
  .footer-journal-05__cta-line {
    opacity: 0.18;
  }

  .footer-journal-05__newsletter {
    max-width: 100%;
  }

  .footer-journal-05__nav-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-journal-05__bottom {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-journal-05__bottom-links {
    justify-content: flex-start;
  }

  .footer-journal-05__shape {
    opacity: 0.08;
  }
}

@media (max-width: 575px) {
  .footer-journal-05__nav-grid {
    grid-template-columns: 1fr;
  }

  .footer-journal-05__shape,
  .footer-journal-05__box-shape {
    display: none;
  }
}
