/* ==========================================================================
   Tunas Muda — Sejarah page (polished)
   ========================================================================== */

.sejarah-page {
  --sj-navy: var(--tm-primary);
  --sj-navy-deep: var(--tm-primary-dark);
  --sj-gold: var(--tm-secondary);
  --sj-gold-soft: var(--tm-gold-soft);
  --sj-bg: #f4f6f9;
  --sj-bg-deep: #eef1f6;
  --sj-card: #ffffff;
  --sj-text: #4b5563;
  --sj-line: rgba(29, 54, 92, 0.12);
  --sj-gap: clamp(3rem, 5vw, 4rem);
  --sj-card-radius: 12px;
  --sj-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --sj-card-pad: clamp(1.5rem, 3vw, 2rem);
  --sj-anchor: calc(var(--sj-card-pad) + 0.8rem);
  scroll-behavior: smooth;
}

.sejarah-page.tm-theme-bg-page,
.sejarah-page.tm-theme-bg-page .main {
  background: transparent;
}

.sejarah-page.tm-theme-bg-page .sejarah.section.light-background {
  --background-color: transparent;
}

.sejarah-page.tm-theme-bg-page .sejarah.section {
  background: transparent;
}

.sejarah-page.tm-theme-bg-page .tm-sejarah-canvas {
  display: none;
}

/* —— Skip link (self-contained) —— */
.sejarah-page .tm-skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 100050;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--sj-navy-deep);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(15, 30, 53, 0.12);
  transition: top 0.2s ease;
}

.sejarah-page .tm-skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--sj-gold);
  outline-offset: 3px;
}

/* —— Page entrance —— */
.sejarah-page .main {
  opacity: 1;
}

/* —— Header on hero (transparent until scroll) —— */
@media (min-width: 1200px) {
  .sejarah-page:not(.scrolled) #header.header {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .sejarah-page:not(.scrolled) .navmenu > ul > li > a {
    color: rgba(255, 255, 255, 0.92) !important;
    background: transparent !important;
  }

  .sejarah-page:not(.scrolled) .navmenu > ul > li > a:hover,
  .sejarah-page:not(.scrolled) .navmenu > ul > li > a:focus-visible {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }

  .sejarah-page:not(.scrolled) .navmenu > ul > li > a.active {
    color: var(--sj-gold) !important;
    background: rgba(255, 199, 54, 0.18) !important;
  }

  .sejarah-page:not(.scrolled) .tm-header-cta {
    background: var(--sj-gold);
    color: var(--sj-navy-deep) !important;
    box-shadow: 0 4px 20px rgba(255, 199, 54, 0.35);
  }
}

.sejarah-page:not(.scrolled) #header .mobile-nav-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

/* —— Hero (Latar Belakang + Titian Perjuangan chapter) —— */
.tm-sejarah-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--tm-header-h, 72px) + 0.75rem) 1.5rem 0.75rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.tm-sejarah-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 720px;
  min-height: 0;
}

.tm-sejarah-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tm-sejarah-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: grayscale(0.72) contrast(1.08) brightness(0.92);
  transform: scale(1.02);
}

.tm-sejarah-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(12, 24, 41, 0.68) 0%,
      rgba(12, 24, 41, 0.3) 36%,
      rgba(246, 248, 250, 0.42) 56%,
      rgba(246, 248, 250, 0.9) 72%,
      #f6f8fa 88%
    ),
    radial-gradient(ellipse 120% 85% at 50% 32%, rgba(12, 24, 41, 0.08) 0%, rgba(12, 24, 41, 0.5) 100%);
}

/* Hero subtle crosshatch */
.tm-sejarah-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.22;
  background-image:
    linear-gradient(135deg, rgba(255, 199, 54, 0.08) 1px, transparent 1px),
    linear-gradient(-135deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  pointer-events: none;
}

.tm-sejarah-hero__content {
  position: relative;
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 0;
}

.tm-sejarah-hero__crumb {
  position: relative;
  margin: 0 0 1.15rem;
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.tm-sejarah-hero__crumb ol {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(12, 24, 41, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tm-sejarah-hero__eyebrow {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sj-gold);
  margin-bottom: 0.65rem;
}

.tm-sejarah-hero h1 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(12, 24, 41, 0.35);
}

.tm-sejarah-hero h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--sj-gold), transparent);
}

.tm-sejarah-hero__crumb a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  transition: color 0.3s ease;
}

.tm-sejarah-hero__crumb a:hover {
  color: var(--sj-gold);
}

.tm-sejarah-hero__crumb li + li {
  padding-left: 0;
}

.tm-sejarah-hero__crumb li + li::before {
  content: "/";
  padding-right: 0.35rem;
  color: rgba(255, 255, 255, 0.42);
}

.tm-sejarah-hero__crumb li[aria-current="page"] {
  color: var(--sj-gold);
  font-weight: 600;
}

/* Scroll arrow — below Titian Perjuangan */
.tm-sejarah-hero__scroll {
  position: static;
  transform: none;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: clamp(0.85rem, 2vh, 1.25rem);
  padding: 0.35rem 0.75rem;
  border: 0;
  background: transparent;
  color: rgba(29, 54, 92, 0.72);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
}

.tm-sejarah-hero__scroll:hover,
.tm-sejarah-hero__scroll:focus-visible {
  color: var(--sj-navy);
  outline: none;
}

.tm-sejarah-hero__scroll:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 199, 54, 0.55);
  border-radius: 999px;
}

.tm-sejarah-hero__scroll i {
  font-size: 1.2rem;
  color: var(--sj-gold);
  animation: tmSejarahScrollBounce 2.2s ease-in-out infinite;
}

@keyframes tmSejarahScrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(5px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .tm-sejarah-hero__scroll i {
    animation: none;
    opacity: 0.85;
  }
}

.sejarah-page .page-title {
  display: none;
}

/* —— Main section + decorative canvas —— */
.sejarah-page .sejarah.section {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background: transparent;
  padding-top: 0;
  padding-bottom: clamp(3.5rem, 7vw, 5rem);
}

.tm-sejarah-content {
  position: relative;
  z-index: 2;
}

/* Decorative background layer */
.tm-sejarah-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.tm-sejarah-canvas__mesh {
  position: absolute;
  inset: -20%;
}

.tm-sejarah-canvas__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 1;
}

.tm-sejarah-canvas__orb--1 {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  top: 2%;
  left: -8%;
  background: radial-gradient(circle, rgba(255, 199, 54, 0.18) 0%, transparent 70%);
}

.tm-sejarah-canvas__orb--2 {
  width: min(38vw, 380px);
  height: min(38vw, 380px);
  top: 28%;
  right: -10%;
  background: radial-gradient(circle, rgba(29, 54, 92, 0.12) 0%, transparent 72%);
}

.tm-sejarah-canvas__orb--3 {
  width: min(34vw, 340px);
  height: min(34vw, 340px);
  top: 58%;
  left: 10%;
  background: radial-gradient(circle, rgba(255, 199, 54, 0.1) 0%, transparent 68%);
}

.tm-sejarah-canvas__orb--4 {
  width: min(40vw, 400px);
  height: min(40vw, 400px);
  bottom: -5%;
  right: 15%;
  background: radial-gradient(circle, rgba(29, 54, 92, 0.1) 0%, transparent 70%);
}

/* Dot grid */
.tm-sejarah-canvas__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(29, 54, 92, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 20%, transparent 75%);
  opacity: 0.55;
}

/* Film grain */
.tm-sejarah-canvas__grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* Faint heritage year watermarks */
.tm-sejarah-canvas__wm {
  position: absolute;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 1;
  color: var(--sj-navy);
  opacity: 0.035;
  letter-spacing: -0.04em;
  user-select: none;
}

.tm-sejarah-canvas__wm--1 {
  top: 18%;
  left: 4%;
  transform: rotate(-8deg);
}

.tm-sejarah-canvas__wm--2 {
  top: 48%;
  right: 2%;
  transform: rotate(6deg);
}

.tm-sejarah-canvas__wm--3 {
  bottom: 8%;
  left: 18%;
  transform: rotate(-4deg);
}

/* Gold corner accents */
.tm-sejarah-canvas__arc {
  position: absolute;
  width: clamp(80px, 12vw, 140px);
  height: clamp(80px, 12vw, 140px);
  border: 2px solid rgba(255, 199, 54, 0.22);
  opacity: 0.9;
}

.tm-sejarah-canvas__arc--tl {
  top: 1.5rem;
  left: 1.5rem;
  border-right: none;
  border-bottom: none;
  border-radius: 12px 0 0 0;
}

.tm-sejarah-canvas__arc--br {
  bottom: 1.5rem;
  right: 1.5rem;
  border-left: none;
  border-top: none;
  border-radius: 0 0 12px 0;
}

/* —— Intro (inside hero chapter) —— */
.tm-sejarah-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
  flex-shrink: 0;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.tm-sejarah-hero .tm-sejarah-intro {
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.tm-sejarah-intro__tagline {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  font-weight: 500;
  font-style: italic;
  color: var(--sj-navy);
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.tm-sejarah-intro h2 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sj-navy);
  margin: 0 0 0.75rem;
}

.tm-sejarah-intro__divider {
  position: relative;
  display: block;
  width: min(96px, 28%);
  height: 3px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sj-gold), var(--sj-navy));
}

.tm-sejarah-intro__divider::before,
.tm-sejarah-intro__divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1.5px solid rgba(255, 199, 54, 0.55);
  transform: translateY(-50%) rotate(45deg);
  background: var(--sj-bg);
}

.tm-sejarah-intro__divider::before {
  left: -1.35rem;
}

.tm-sejarah-intro__divider::after {
  right: -1.35rem;
}

/* —— Banner —— */
.tm-sejarah-banner {
  max-width: 960px;
  margin: 0 auto clamp(3rem, 6vw, 4rem);
  box-shadow: var(--sj-card-shadow);
}

.tm-sejarah-banner figcaption,
.tm-sejarah-banner + .tm-sejarah-banner-caption {
  display: none;
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */
.tm-sejarah-timeline {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.25rem 0 0.5rem;
  z-index: 1;
}

.tm-sejarah-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translate3d(-50%, 0, 0);
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--sj-line) 8%,
    var(--sj-line) 92%,
    transparent 100%
  );
  pointer-events: none;
}

/* Soft glow on spine */
.tm-sejarah-timeline::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5%;
  bottom: 5%;
  width: 48px;
  transform: translate3d(-50%, 0, 0);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 199, 54, 0.06) 45%,
    rgba(29, 54, 92, 0.05) 55%,
    transparent
  );
  pointer-events: none;
  z-index: 0;
}

.tm-sejarah-timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-sejarah-timeline__item {
  position: relative;
  width: 50%;
  margin: 0;
  padding: 0 calc(2.25rem + 10px) var(--sj-gap) 0;
}

.tm-sejarah-timeline__item:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 var(--sj-gap) calc(2.25rem + 10px);
}

.tm-sejarah-timeline__item:last-child {
  padding-bottom: 0;
}

/* Node */
.tm-sejarah-timeline__marker {
  position: absolute;
  top: var(--sj-anchor);
  z-index: 3;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sj-navy);
  border: 3px solid var(--sj-gold);
  box-shadow:
    0 0 0 5px rgba(255, 199, 54, 0.22),
    0 0 18px rgba(255, 199, 54, 0.4);
  pointer-events: none;
  transform: translate3d(0, -50%, 0);
}

.tm-sejarah-timeline__item:nth-child(odd) .tm-sejarah-timeline__marker {
  right: 0;
  transform: translate3d(50%, -50%, 0);
}

.tm-sejarah-timeline__item:nth-child(even) .tm-sejarah-timeline__marker {
  left: 0;
  transform: translate3d(-50%, -50%, 0);
}

.tm-sejarah-timeline__item:nth-child(odd) .tm-sejarah-timeline__marker::after,
.tm-sejarah-timeline__item:nth-child(even) .tm-sejarah-timeline__marker::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

/* Cards */
.tm-sejarah-card {
  position: relative;
  background: var(--sj-card);
  border-radius: var(--sj-card-radius);
  padding: var(--sj-card-pad);
  box-shadow: var(--sj-card-shadow);
  border: 1px solid rgba(29, 54, 92, 0.04);
  overflow: visible;
}

.tm-sejarah-card:hover {
  box-shadow: var(--sj-card-shadow);
}

.tm-sejarah-card--featured {
  border-color: rgba(255, 199, 54, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.tm-sejarah-timeline__item:nth-child(odd) .tm-sejarah-card--featured {
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.05),
    inset -4px 0 0 var(--sj-gold);
}

.tm-sejarah-timeline__item:nth-child(even) .tm-sejarah-card--featured {
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.05),
    inset 4px 0 0 var(--sj-gold);
}

.tm-sejarah-timeline__item:nth-child(odd) .tm-sejarah-card--featured:hover {
  box-shadow:
    0 12px 36px rgba(29, 54, 92, 0.11),
    inset -4px 0 0 var(--sj-gold);
}

.tm-sejarah-timeline__item:nth-child(even) .tm-sejarah-card--featured:hover {
  box-shadow:
    0 12px 36px rgba(29, 54, 92, 0.11),
    inset 4px 0 0 var(--sj-gold);
}

/* Arrows — aligned to year row */
.tm-sejarah-timeline__item:nth-child(odd) .tm-sejarah-card::after {
  content: "";
  position: absolute;
  top: var(--sj-anchor);
  right: -9px;
  transform: translateY(-50%);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 9px solid var(--sj-card);
  filter: drop-shadow(2px 0 2px rgba(0, 0, 0, 0.04));
  z-index: 2;
}

.tm-sejarah-timeline__item:nth-child(even) .tm-sejarah-card::after {
  content: "";
  position: absolute;
  top: var(--sj-anchor);
  left: -9px;
  transform: translateY(-50%);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 9px solid var(--sj-card);
  filter: drop-shadow(-2px 0 2px rgba(0, 0, 0, 0.04));
  z-index: 2;
}

.tm-sejarah-card__head {
  margin-bottom: 1rem;
}

.tm-sejarah-card__year {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.25rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.1875rem, 2.5vw, 1.4375rem);
  font-weight: 700;
  color: var(--sj-navy);
  line-height: 1.2;
}

.tm-sejarah-card__year i {
  font-size: 1.05rem;
  color: var(--sj-gold);
}

.tm-sejarah-card--featured .tm-sejarah-card__year {
  color: var(--sj-navy-deep);
}

.tm-sejarah-card h3 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sj-navy);
  opacity: 0.72;
  line-height: 1.35;
  margin: 0;
}

.tm-sejarah-card p {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--sj-text);
  margin: 0;
}

.tm-sejarah-card p + p {
  margin-top: 0.9rem;
}

.tm-sejarah-card strong {
  color: #333;
  font-weight: 600;
}

.tm-sejarah-card__media.tm-media-frame {
  margin: 0 0 1.15rem;
  border-radius: 8px;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}

/* Content always visible — no scroll motion */
[data-tm-reveal] {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Video block */
.tm-sejarah-video {
  max-width: 820px;
  margin: clamp(3.5rem, 6vw, 5rem) auto 0;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--sj-card);
  border-radius: var(--sj-card-radius);
  box-shadow: var(--sj-card-shadow);
  border: 1px solid rgba(29, 54, 92, 0.04);
  text-align: center;
}

.tm-sejarah-video__heading {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sj-navy);
  margin-bottom: 0.5rem;
}

.tm-sejarah-video__lead {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--sj-text);
  margin-bottom: 1.35rem;
  line-height: 1.6;
}

.tm-sejarah-video__frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sj-bg);
  aspect-ratio: 16 / 9;
}

.tm-sejarah-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Tablet — single column timeline */
@media (max-width: 991.98px) {
  .tm-sejarah-timeline::after {
    left: 18px;
    transform: none;
    width: 32px;
  }

  .tm-sejarah-timeline::before {
    left: 18px;
    transform: none;
  }

  .tm-sejarah-timeline__item,
  .tm-sejarah-timeline__item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 var(--sj-gap) 3rem;
  }

  .tm-sejarah-timeline__marker,
  .tm-sejarah-timeline__item:nth-child(even) .tm-sejarah-timeline__marker {
    left: 18px;
    right: auto;
    transform: translate3d(-50%, -50%, 0);
  }

  .tm-sejarah-timeline__item:nth-child(odd) .tm-sejarah-card::after,
  .tm-sejarah-timeline__item:nth-child(even) .tm-sejarah-card::after {
    left: -9px;
    right: auto;
    border-left: none;
    border-right: 9px solid var(--sj-card);
    filter: drop-shadow(-2px 0 2px rgba(0, 0, 0, 0.04));
  }

  .tm-sejarah-timeline__item:nth-child(odd) [data-tm-reveal],
  .tm-sejarah-timeline__item:nth-child(even) [data-tm-reveal] {
    transform: translate3d(0, 20px, 0);
  }
}

@media (max-width: 767.98px) {
  .tm-sejarah-canvas__wm {
    font-size: clamp(3.5rem, 18vw, 5rem);
    opacity: 0.025;
  }

  .tm-sejarah-canvas__arc {
    width: 56px;
    height: 56px;
  }

  .tm-sejarah-hero {
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--tm-header-h, 72px) + 1rem) 1rem clamp(0.85rem, 2vh, 1.25rem);
  }

  .sejarah-page .sejarah.section {
    padding-top: 0;
  }

  .tm-sejarah-intro h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    margin-bottom: 0.85rem;
  }

  .tm-sejarah-intro__divider {
    margin-left: auto;
    margin-right: auto;
  }

  .tm-sejarah-card--featured {
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.05),
      inset 3px 0 0 var(--sj-gold) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sejarah-page .main,
  [data-tm-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .tm-sejarah-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .tm-sejarah-canvas__orb,
  .tm-sejarah-canvas__grain,
  .tm-sejarah-hero__pattern {
    display: none;
  }

  .tm-sejarah-canvas__wm {
    opacity: 0.02;
  }
}
