/* =========================================================
   NAVBAR WEBSITE UTAMA PADA HALAMAN CHAPTER
   ========================================================= */

.chapter-page {
  padding-top: 78px;
}

#mainNavbar {
  min-height: 78px;
  background: rgba(5, 5, 5, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  transition: 0.3s ease;
}

#mainNavbar.navbar-scrolled {
  min-height: 70px;
  background: rgba(5, 5, 5, 0.97);
}

.navbar-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 1px solid rgba(249, 184, 0, 0.35);
  border-radius: 11px;
}

.navbar-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar-brand strong {
  color: var(--gold);
  letter-spacing: 0.17em;
}

.navbar-brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.navbar .nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  font-weight: 650;
}

.navbar .nav-link:hover,
.navbar .nav-link.active,
.navbar .nav-link.show {
  color: var(--gold);
}

.navbar .nav-link::after {
  position: absolute;
  right: 0.7rem;
  bottom: 3px;
  left: 0.7rem;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transition: 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after,
.navbar .nav-link.show::after {
  transform: scaleX(1);
}

.chapter-nav-dropdown > .dropdown-toggle {
  border: 0;
  background: transparent;
}

.chapter-nav-dropdown .dropdown-menu {
  min-width: 250px;
  padding: 10px;
  margin-top: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    radial-gradient(
      circle at top right,
      rgba(249, 184, 0, 0.1),
      transparent 42%
    ),
    #0b0b0b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
}

.chapter-nav-dropdown .dropdown-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
}

.chapter-nav-dropdown .dropdown-item i {
  width: 21px;
  color: var(--gold);
  text-align: center;
}

.chapter-nav-dropdown .dropdown-item:hover,
.chapter-nav-dropdown .dropdown-item:focus {
  color: var(--white);
  background: rgba(249, 184, 0, 0.1);
}

.btn-brand {
  color: #101010;
  border-color: var(--gold);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 12px 30px rgba(249, 184, 0, 0.18);
  font-weight: 750;
}

.btn-brand:hover,
.btn-brand:focus {
  color: #050505;
  border-color: var(--gold-light);
  background: var(--gold-light);
  transform: translateY(-2px);
}

.offcanvas {
  background:
    radial-gradient(
      circle at top right,
      rgba(249, 184, 0, 0.12),
      transparent 30%
    ),
    #0a0a0a !important;
}

.offcanvas-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
}

.mobile-nav-link {
  display: block;
  width: 100%;
  padding: 12px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  text-align: left;
}

.mobile-nav-link.active {
  color: var(--gold);
}

.mobile-gallery-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.mobile-gallery-toggle i {
  color: var(--gold);
  transition: transform 0.25s ease;
}

.mobile-gallery-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.mobile-gallery-menu {
  display: grid;
  gap: 3px;
  padding: 8px 0 10px 18px;
  border-bottom: 1px solid var(--line);
}

.mobile-gallery-menu a {
  padding: 9px 12px;
  border-left: 1px solid rgba(249, 184, 0, 0.3);
  color: #a9a9a9;
  font-size: 0.84rem;
}

.mobile-gallery-menu a:hover {
  color: var(--gold);
}

@media (max-width: 991.98px) {
  .chapter-page {
    padding-top: 70px;
  }
}

/* =========================================================
   HALAMAN CHAPTER MOT15 INDONESIA
   Tema: hitam, emas, dan putih
   ========================================================= */

:root {
  --black: #050505;
  --black-soft: #0d0d0d;
  --panel: #121212;
  --panel-light: #181818;
  --gold: #f9b800;
  --gold-light: #ffd55a;
  --white: #ffffff;
  --muted: #a9a9a9;
  --line: rgba(255, 255, 255, 0.11);
  --danger: #ff5b5b;
  --radius-small: 12px;
  --radius-medium: 20px;
  --radius-large: 30px;
  --shadow-gold: 0 18px 60px rgba(249, 184, 0, 0.14);
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(
      circle at top left,
      rgba(249, 184, 0, 0.08),
      transparent 28rem
    ),
    var(--black);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.is-hidden {
  display: none !important;
}

/* ========================= HERO ========================= */

.chapter-hero {
  position: relative;
  isolation: isolate;
  min-height: 490px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(
      100deg,
      rgba(0, 0, 0, 0.96) 5%,
      rgba(0, 0, 0, 0.78) 65%,
      rgba(0, 0, 0, 0.92)
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0 25px,
      rgba(249, 184, 0, 0.03) 25px 27px
    );
}

.chapter-hero::before {
  content: "MOT15";
  position: absolute;
  z-index: -1;
  right: -2vw;
  bottom: -5rem;
  color: rgba(255, 255, 255, 0.025);
  font-size: clamp(8rem, 23vw, 25rem);
  font-weight: 1000;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.chapter-hero__content {
  position: relative;
  z-index: 2;
  padding-block: 90px 72px;
}

.chapter-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 1000;
  letter-spacing: -0.065em;
  line-height: 0.9;
  text-transform: uppercase;
}

.chapter-hero h1 span {
  display: block;
  color: var(--gold);
}

.hero-description {
  max-width: 670px;
  margin: 28px 0 0;
  color: #d2d2d2;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.8;
}

.hero-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-summary article {
  min-width: 170px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
}

.hero-summary strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 1.5rem;
}

.hero-summary span {
  color: var(--muted);
  font-size: 0.86rem;
}

.chapter-hero__glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(20px);
}

.chapter-hero__glow--one {
  top: -120px;
  right: 16%;
  width: 340px;
  height: 340px;
  background: rgba(249, 184, 0, 0.12);
}

.chapter-hero__glow--two {
  bottom: -150px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: rgba(249, 184, 0, 0.08);
}

/* ========================= SECTION ========================= */

.chapter-section {
  padding-block: 88px;
}

.section-heading,
.directory-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.section-heading h2,
.directory-heading h2,
.join-banner h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.section-heading > p,
.directory-heading > p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ========================= TOOLBAR ========================= */

.chapter-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding-inline: 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.search-box:focus-within {
  border-color: rgba(249, 184, 0, 0.7);
  box-shadow: 0 0 0 4px rgba(249, 184, 0, 0.1);
}

.search-box__icon {
  display: grid;
  width: 22px;
  color: var(--gold);
}

.search-box__icon svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  font-size: 1rem;
}

.search-box input::placeholder {
  color: #737373;
}

.outline-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 850;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.outline-button {
  min-height: 56px;
  border: 1px solid var(--line);
  color: var(--white);
  background: var(--panel);
  cursor: pointer;
}

.outline-button:hover,
.secondary-button:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.primary-button {
  border: 1px solid var(--gold);
  color: #080808;
  background: var(--gold);
  box-shadow: 0 10px 30px rgba(249, 184, 0, 0.18);
}

.primary-button:hover {
  color: var(--black);
  background: var(--gold-light);
  transform: translateY(-2px);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--white);
  background: transparent;
}

/* ========================= MAP LAYOUT ========================= */

.chapter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(310px, 0.75fr);
  gap: 22px;
  align-items: stretch;
}

.map-panel,
.chapter-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.map-panel {
  min-width: 0;
  overflow: hidden;
}

.map-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 27px;
  border-bottom: 1px solid var(--line);
}

.map-panel__label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.map-panel h3 {
  margin: 5px 0 0;
  font-size: 1.35rem;
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.map-legend span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(249, 184, 0, 0.12);
}

.map-stage {
  position: relative;
  width: 100%;
  min-height: 530px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)),
    #f6f3ed;
}

.indonesia-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 530px;
  object-fit: contain;
  user-select: none;
}

.map-help {
  margin: 0;
  padding: 13px 24px;
  border-top: 1px solid var(--line);
  color: #777;
  background: #0b0b0b;
  font-size: 0.76rem;
  line-height: 1.5;
}

/* ========================= HOTSPOTS ========================= */

.chapter-hotspot {
  --x: 50%;
  --y: 50%;

  position: absolute;
  z-index: 5;
  left: var(--x);
  top: var(--y);

  display: grid;
  place-items: center;

  width: 12px;
  height: 12px;
  padding: 0;

  border: 1.5px solid #111;
  border-radius: 50%;

  color: #111;
  background: var(--gold);

  box-shadow:
    0 0 0 3px rgba(249, 184, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.35);

  cursor: pointer;
  transform: translate(-50%, -50%);

  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.chapter-hotspot::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: inherit;
  background: #0b0b0b;
}

.chapter-hotspot::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 170px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(8, 8, 8, 0.94);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  font-size: 0.68rem;
  font-weight: 750;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 7px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.chapter-hotspot:hover,
.chapter-hotspot:focus-visible,
.chapter-hotspot.is-active {
  z-index: 10;
  background: var(--white);

  box-shadow:
    0 0 0 4px rgba(249, 184, 0, 0.3),
    0 6px 18px rgba(0, 0, 0, 0.4);

  transform: translate(-50%, -50%) scale(1.15);
}

.chapter-hotspot:hover::after,
.chapter-hotspot:focus-visible::after,
.chapter-hotspot.is-active::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.chapter-hotspot.is-filtered-out {
  pointer-events: none;
  opacity: 0.15;
}

/* ========================= DETAIL ========================= */

.chapter-detail {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.chapter-detail::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, rgba(249, 184, 0, 0.16), transparent 72%);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.chapter-detail__empty,
.chapter-detail__content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 32px;
}

.chapter-detail__empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 530px;
  text-align: center;
}

.empty-logo,
.chapter-logo {
  display: grid;
  place-items: center;
  border: 1px solid rgba(249, 184, 0, 0.35);
  color: var(--gold);
  background:
    linear-gradient(145deg, rgba(249, 184, 0, 0.1), rgba(255, 255, 255, 0.015)),
    #0d0d0d;
  font-weight: 1000;
  letter-spacing: -0.04em;
  box-shadow: var(--shadow-gold);
}

.empty-logo {
  width: 132px;
  height: 132px;
  margin-bottom: 26px;
  overflow: hidden;
  padding: 10px;
  border-radius: 30px;
  transform: rotate(-3deg);
}

.empty-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chapter-detail__empty h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.chapter-detail__empty p {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 32px;
}

.status-badge,
.chapter-code {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-badge {
  color: #101010;
  background: var(--gold);
}

.chapter-code {
  border: 1px solid var(--line);
  color: #a4a4a4;
  background: rgba(255, 255, 255, 0.025);
}

.chapter-logo {
  width: 132px;
  height: 132px;
  margin-bottom: 28px;
  overflow: hidden;
  padding: 10px;
  border-radius: 30px;
}

.chapter-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-island {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chapter-detail__content h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.detail-description {
  margin: 18px 0 27px;
  color: #bebebe;
  line-height: 1.75;
}

.chapter-statistics {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
}

.chapter-statistics > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.chapter-statistics dt {
  color: #878787;
  font-size: 0.84rem;
}

.chapter-statistics dd {
  margin: 0;
  color: var(--white);
  font-weight: 800;
  text-align: right;
}

.detail-actions {
  display: grid;
  gap: 10px;
}

/* ========================= DIRECTORY ========================= */

.chapter-directory {
  padding-top: 84px;
}

.chapter-slider {
  position: relative;
  min-height: 476px;
  overflow: hidden;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.chapter-grid.is-sliding {
  animation: directorySlideIn 320ms ease both;
}

@keyframes directorySlideIn {
  from {
    opacity: 0;
    transform: translateX(28px);
  }

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

.chapter-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  color: var(--white);
  background:
    linear-gradient(150deg, rgba(249, 184, 0, 0.06), transparent 42%),
    var(--panel);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.chapter-card::after {
  content: attr(data-index);
  position: absolute;
  right: -5px;
  bottom: -28px;
  color: rgba(255, 255, 255, 0.035);
  font-size: 7rem;
  font-weight: 1000;
  line-height: 1;
}

.chapter-card:hover,
.chapter-card:focus-visible,
.chapter-card.is-active {
  border-color: rgba(249, 184, 0, 0.62);
  box-shadow: var(--shadow-gold);
  transform: translateY(-5px);
}

.chapter-card__top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.chapter-card__initial {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  padding: 5px;
  border: 1px solid rgba(249, 184, 0, 0.45);
  border-radius: 18px;
  color: var(--gold);
  background:
    radial-gradient(circle, rgba(249, 184, 0, 0.13), transparent 65%), #090909;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.chapter-card__initial img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chapter-card__status {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #999;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chapter-card h3 {
  position: relative;
  z-index: 2;
  margin: 24px 0 7px;
  font-size: 1.32rem;
}

.chapter-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #8f8f8f;
  font-size: 0.86rem;
}

.chapter-card__footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #b6b6b6;
  font-size: 0.77rem;
}

.chapter-card__footer strong {
  color: var(--gold);
}

/* Navigasi slide direktori chapter */
.directory-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 30px;
}

.pagination-button,
.pagination-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: #d5d5d5;
  background: var(--panel);
  font-weight: 850;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.pagination-button {
  font-size: 1.15rem;
}

.pagination-button:hover:not(:disabled),
.pagination-number:hover,
.pagination-number.is-active {
  border-color: var(--gold);
  color: #0b0b0b;
  background: var(--gold);
  transform: translateY(-2px);
}

.pagination-button:disabled {
  color: #555;
  cursor: not-allowed;
  opacity: 0.45;
}

.pagination-number.is-active {
  box-shadow: 0 10px 24px rgba(249, 184, 0, 0.18);
}

.pagination-ellipsis {
  display: grid;
  width: 30px;
  height: 44px;
  place-items: center;
  color: #777;
  user-select: none;
}

.directory-page-info {
  width: 100%;
  margin-top: 4px;
  color: #777;
  font-size: 0.75rem;
  text-align: center;
  letter-spacing: 0.04em;
}

.no-result {
  padding: 50px 25px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-medium);
  color: var(--muted);
  text-align: center;
}

.no-result strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.25rem;
}

.no-result p {
  margin: 0;
}

/* ========================= JOIN BANNER ========================= */

.join-banner {
  padding-block: 35px 80px;
}

.join-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: clamp(28px, 5vw, 55px);
  border: 1px solid rgba(249, 184, 0, 0.35);
  border-radius: var(--radius-large);
  background:
    linear-gradient(115deg, rgba(249, 184, 0, 0.11), transparent 58%),
    var(--panel);
  box-shadow: var(--shadow-gold);
}

.join-banner h2 {
  max-width: 790px;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
}

/* ========================= RESPONSIVE ========================= */

@media (max-width: 1050px) {
  .chapter-layout {
    grid-template-columns: 1fr;
  }

  .chapter-detail__empty {
    min-height: 360px;
  }

  .chapter-detail__content {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 28px;
  }

  .detail-status-row {
    grid-column: 1 / -1;
  }

  .chapter-logo {
    grid-row: 2 / span 4;
  }

  .detail-island,
  .chapter-detail__content h3,
  .detail-description,
  .chapter-statistics,
  .detail-actions {
    grid-column: 2;
  }

  .detail-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .section-heading,
  .directory-heading {
    align-items: start;
    flex-direction: column;
  }

  .chapter-slider {
    min-height: 722px;
  }

  .chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-stage,
  .indonesia-map {
    min-height: 430px;
  }

  .join-banner__content {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 650px) {
  .container {
    width: min(calc(100% - 26px), var(--container));
  }

  .chapter-hero {
    min-height: auto;
  }

  .chapter-hero__content {
    padding-block: 74px 58px;
  }

  .chapter-hero h1 {
    font-size: clamp(2.55rem, 15vw, 4.6rem);
  }

  .hero-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-summary article {
    min-width: 0;
    padding: 13px 11px;
  }

  .hero-summary strong {
    font-size: 1.15rem;
  }

  .hero-summary span {
    font-size: 0.69rem;
    line-height: 1.3;
  }

  .chapter-section {
    padding-block: 65px;
  }

  .chapter-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .map-panel__top {
    align-items: start;
    flex-direction: column;
  }

  .map-stage {
    min-height: 360px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .indonesia-map {
    width: 760px;
    max-width: none;
    min-height: 360px;
  }

  #chapterHotspots {
    position: absolute;
    inset: 0;
    width: 760px;
  }

  .chapter-detail__content {
    display: block;
  }

  .chapter-logo {
    width: 92px;
    height: 92px;
    border-radius: 23px;
    font-size: 1.75rem;
  }

  .detail-actions {
    grid-template-columns: 1fr;
  }

  .chapter-slider {
    min-height: 1380px;
  }

  .chapter-grid {
    grid-template-columns: 1fr;
  }

  .pagination-button,
  .pagination-number {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .chapter-card {
    min-height: 215px;
  }

  .join-banner {
    padding-bottom: 55px;
  }
}

@media (max-width: 390px) {
  .hero-summary {
    grid-template-columns: 1fr;
  }

  .hero-summary article {
    text-align: center;
  }

  .chapter-detail__empty,
  .chapter-detail__content {
    padding: 25px;
  }
}

/* Pengguna yang memilih mengurangi animasi */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   POPUP PROFIL CHAPTER LAYAR PENUH
   ========================================================= */

body.profile-modal-open {
  overflow: hidden;
}

.chapter-profile-modal {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.chapter-profile-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.chapter-profile-modal[hidden] {
  display: none;
}

.chapter-profile-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(12px);
  cursor: default;
}

.chapter-profile-dialog {
  position: relative;
  z-index: 1;
  width: min(1380px, 100%);
  height: min(920px, calc(100dvh - 36px));
  overflow: hidden;
  border: 1px solid rgba(249, 184, 0, 0.28);
  border-radius: 28px;
  background: #080808;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.72);
  transform: translateY(22px) scale(0.985);
  transition: transform 0.28s ease;
}

.chapter-profile-modal.is-open .chapter-profile-dialog {
  transform: translateY(0) scale(1);
}

.chapter-profile-topbar {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(16px);
}

.profile-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  font-weight: 800;
}

.profile-back-link i {
  color: var(--gold);
}

.profile-topbar-actions {
  display: flex;
  gap: 8px;
}

.profile-icon-button {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: 0.2s ease;
}

.profile-icon-button:hover,
.profile-icon-button:focus-visible {
  border-color: var(--gold);
  color: #080808;
  background: var(--gold);
  transform: translateY(-2px);
}

.chapter-profile-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chapter-profile-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 470px;
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(28px, 6vw, 84px) 65px;
  background:
    radial-gradient(
      circle at 77% 35%,
      rgba(249, 184, 0, 0.18),
      transparent 28%
    ),
    linear-gradient(115deg, #050505 15%, #111 58%, #090909);
}

.chapter-profile-hero::before {
  content: "MOT15";
  position: absolute;
  z-index: -1;
  right: -3%;
  bottom: -8%;
  color: rgba(255, 255, 255, 0.025);
  font-size: clamp(9rem, 25vw, 24rem);
  font-weight: 1000;
  line-height: 0.78;
  letter-spacing: -0.08em;
}

.profile-grid-pattern {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.chapter-profile-identity {
  display: flex;
  align-items: center;
  gap: clamp(25px, 5vw, 62px);
}

.profile-logo-frame {
  display: grid;
  width: clamp(150px, 18vw, 245px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(249, 184, 0, 0.4);
  border-radius: 42px;
  color: var(--gold);
  background:
    radial-gradient(circle, rgba(249, 184, 0, 0.14), transparent 62%), #090909;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.5),
    0 0 55px rgba(249, 184, 0, 0.08);
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 1000;
  letter-spacing: -0.08em;
}

.profile-logo-frame img {
  width: 100%;
  height: 100%;
  padding: 18px;
  object-fit: contain;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}

.chapter-profile-identity h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 7rem);
  font-weight: 1000;
  letter-spacing: -0.065em;
  line-height: 0.9;
  text-transform: uppercase;
}

.profile-city {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chapter-profile-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(30px, 5vw, 75px);
  padding: clamp(44px, 7vw, 90px) clamp(28px, 6vw, 84px);
  background:
    radial-gradient(
      circle at 10% 100%,
      rgba(249, 184, 0, 0.07),
      transparent 30%
    ),
    #0b0b0b;
}

.profile-main-copy h3 {
  margin: 9px 0 20px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 950;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.profile-description {
  max-width: 790px;
  margin: 0;
  color: #b9b9b9;
  font-size: clamp(1rem, 1.6vw, 1.17rem);
  line-height: 1.9;
}

.profile-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 34px;
}

.profile-contact-actions a {
  gap: 9px;
}

.profile-information-card {
  align-self: start;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.025);
}

.profile-information-card dl {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
}

.profile-information-card dl > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.profile-information-card dl > div:last-child {
  border-bottom: 0;
}

.profile-information-card dt {
  color: #777;
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-information-card dd {
  margin: 0;
  color: var(--white);
  font-size: 0.87rem;
  font-weight: 800;
  text-align: right;
}

@media (max-width: 800px) {
  .chapter-profile-modal {
    padding: 0;
  }

  .chapter-profile-dialog {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .chapter-profile-topbar {
    min-height: 68px;
    padding-inline: 14px;
  }

  .profile-back-link {
    font-size: 0.76rem;
  }

  .chapter-profile-hero {
    min-height: 560px;
    align-items: center;
    padding: 110px 22px 55px;
  }

  .chapter-profile-identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-logo-frame {
    width: 140px;
    border-radius: 30px;
  }

  .chapter-profile-identity h2 {
    font-size: clamp(2.8rem, 14vw, 5.2rem);
  }

  .chapter-profile-body {
    grid-template-columns: 1fr;
    padding: 48px 22px 75px;
  }
}

@media (max-width: 450px) {
  .profile-back-link {
    max-width: 190px;
    line-height: 1.25;
  }

  .profile-icon-button {
    width: 40px;
    height: 40px;
  }

  .chapter-profile-hero {
    min-height: 520px;
  }
}
