/* XII-E1 Fluid Horizontal Hub — Zero FOUC & Full-Width Ledger */
:root {
  --xii-bg: #f6f5f0;
  --xii-text: #141413;
  --xii-muted: #6e6b63;
  --xii-line: rgba(20, 20, 19, 0.14);
  --xii-accent: #c85a28;
}

body[data-theme="dark"] .xii-panel-slide {
  --xii-bg: #121211;
  --xii-text: #f3f1eb;
  --xii-muted: #969289;
  --xii-line: rgba(243, 241, 235, 0.15);
  --xii-accent: #e5854b;
}

/* Pre-hide initial hero elements in CSS so there is ZERO un-animated flash before GSAP runs */
.xii-anim-init {
  opacity: 0;
  visibility: hidden;
}

html:has(.xii-hub-main),
body:has(.xii-hub-main) {
  height: 100vh !important;
  overflow: hidden !important;
  margin: 0;
}

/* Force transparent floating header on any page/category running the Horizontal Hub */
body:has(.xii-hub-main) .main-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent !important;
  border-bottom: none !important;
  z-index: 30;
}

body:has(.xii-hub-main) .main-header .ms-logo__default a,
body:has(.xii-hub-main) .main-header .navbar-nav > li > a {
  color: #ffffff !important;
}

/* Switch header text to dark ink when viewing Slide 02+ in Light Mode */
body:has(.xii-hub-swiper.is-light-panel) .main-header .ms-logo__default a,
body:has(.xii-hub-swiper.is-light-panel) .main-header .navbar-nav > li > a {
  color: var(--xii-text) !important;
}

.xii-hub-main,
.xii-hub-swiper {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #121211;
}

.xii-hub-swiper > .swiper-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
}

.xii-hub-swiper > .swiper-wrapper > .swiper-slide {
  flex-shrink: 0;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   SLIDE 01: COVER XII-E1
   ========================================================================== */
.xii-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.xii-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.xii-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.18) 50%,
    rgba(10, 10, 10, 0.05) 100%
  );
  pointer-events: none;
}

.xii-cover-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  padding-inline: clamp(2rem, 6vw, 6.5rem);
  pointer-events: none;
}

.xii-cover-inner {
  pointer-events: auto;
  max-width: 760px;
}

.xii-cover-kicker {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.4rem;
}

.xii-cover-title {
  margin: 0 0 1.75rem !important;
  font-size: clamp(4.5rem, 11vw, 9.5rem) !important;
  font-weight: 900 !important;
  line-height: 0.92 !important;
  letter-spacing: -0.04em !important;
  color: #ffffff !important;
  text-transform: uppercase;
}

.xii-cover-cta .btn-circle,
.xii-cover-cta .ms-btn__text {
  color: #ffffff !important;
}

.xii-cover-cta .circle-outline circle {
  stroke: rgba(255, 255, 255, 0.55) !important;
}

.xii-cover-cta .icon-arrow path {
  fill: #ffffff !important;
}

/* ==========================================================================
   SLIDE 02+: TUGAS KAMI & DAFTAR KELOMPOK (FULL-WIDTH)
   ========================================================================== */
.xii-panel-slide {
  background-color: var(--xii-bg);
  color: var(--xii-text);
}

.xii-hub-scroll-area {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: clamp(5.5rem, 10vh, 7.5rem);
  padding-bottom: 7rem;
  box-sizing: border-box;
  z-index: 4;
}

.xii-hub-container {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding-inline: clamp(1.75rem, 4.5vw, 4.5rem);
  box-sizing: border-box;
}

.xii-hub-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: clamp(1.75rem, 3.5vh, 2.75rem);
  border-bottom: 1px solid var(--xii-line);
}

.xii-bar-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.xii-link-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0.25rem 0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--xii-text);
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
}

.xii-link-btn:hover {
  color: var(--xii-accent);
  transform: translateX(-3px);
}

.xii-mono-meta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--xii-muted);
}

.xii-panel-title {
  margin: 0 0 clamp(1.75rem, 3.5vh, 2.75rem);
  font-size: clamp(2.5rem, 5.2vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--xii-text);
}

/* Full-Width Editorial Ledger */
.xii-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--xii-line);
}

.xii-ledger-row {
  border-bottom: 1px solid var(--xii-line);
}

.xii-ledger-trigger {
  appearance: none;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  display: grid;
  grid-template-columns: 3.25rem 1fr auto 2rem;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 1.65rem;
  padding-inline: 0.25rem;
  color: var(--xii-text);
  text-decoration: none;
  cursor: pointer;
  transition: padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}

.xii-ledger-trigger:hover {
  padding-left: 1rem;
  color: var(--xii-accent);
}

.xii-ledger-index {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--xii-muted);
}

.xii-ledger-trigger:hover .xii-ledger-index {
  color: var(--xii-accent);
}

.xii-ledger-main {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.xii-ledger-name {
  font-size: clamp(1.4rem, 2.5vw, 2.15rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.xii-ledger-sub {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--xii-muted);
  max-width: 75ch;
}

.xii-ledger-count {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--xii-muted);
  white-space: nowrap;
}

.xii-ledger-arrow {
  font-size: 1.25rem;
  text-align: right;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.xii-ledger-trigger:hover .xii-ledger-arrow {
  transform: translateX(6px);
}

/* ==========================================================================
   BOTTOM NAVIGATION ARROWS & PROGRESS BAR
   ========================================================================== */
.xii-hub-nav {
  position: fixed;
  left: clamp(1.5rem, 4.5vw, 4.5rem);
  right: clamp(1.5rem, 4.5vw, 4.5rem);
  bottom: 1.5rem;
  z-index: 25;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.xii-hub-next,
.xii-hub-prev {
  appearance: none;
  background: none;
  border: none;
  pointer-events: auto;
  cursor: pointer;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.xii-hub-next:hover {
  transform: translateX(3px);
}

.xii-hub-prev:hover {
  transform: translateX(-3px);
}

.xii-hub-prev .i-arrow {
  transform: rotate(180deg);
}

.xii-hub-nav .i-arrow {
  width: 22px;
  height: 16px;
  stroke: #ffffff;
  stroke-width: 1.75;
  fill: none;
  transition: stroke 0.3s ease;
}

.xii-hub-progress {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2.1rem;
  width: min(320px, 42vw);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 1rem;
  pointer-events: none;
}

.xii-hub-count,
.xii-hub-total {
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.xii-hub-pagination {
  position: relative !important;
  flex: 1;
  height: 2px !important;
  background: rgba(255, 255, 255, 0.28) !important;
  transition: background-color 0.3s ease;
}

.xii-hub-pagination .swiper-pagination-progressbar-fill {
  background: #ffffff !important;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease !important;
}

/* Contrast on Slide 2+ in Light Mode */
.xii-hub-swiper.is-light-panel .xii-hub-count,
.xii-hub-swiper.is-light-panel .xii-hub-total {
  color: var(--xii-text);
}

.xii-hub-swiper.is-light-panel .i-arrow {
  stroke: var(--xii-text);
}

.xii-hub-swiper.is-light-panel .xii-hub-pagination {
  background: var(--xii-line) !important;
}

.xii-hub-swiper.is-light-panel .xii-hub-pagination .swiper-pagination-progressbar-fill {
  background: var(--xii-text) !important;
}

@media (max-width: 768px) {
  .xii-ledger-trigger {
    grid-template-columns: 2.25rem 1fr 1.5rem;
    gap: 0.85rem;
  }

  .xii-ledger-count {
    display: none;
  }
}