/* ==========================================================================
   Tunas Muda — Jawatankuasa Kecil (committee lists, mobile-first)
   ========================================================================== */

.jawatankuasa-kecil-page {
  --jk-navy: var(--tm-primary);
  --jk-navy-deep: var(--tm-primary-dark);
  --jk-teal: #2a9d8f;
  --jk-gold: var(--tm-secondary);
  --jk-gold-soft: var(--tm-gold-soft);
  --jk-line: rgba(29, 54, 92, 0.12);
  --jk-radius: 16px;
  --jk-shadow: 0 4px 28px rgba(12, 24, 41, 0.08);
  --jk-shadow-hover: 0 16px 44px rgba(29, 54, 92, 0.14);
  --jk-gap: clamp(1.25rem, 2.5vw, 1.75rem);
  --jk-section-pad: clamp(3rem, 6vw, 4.5rem);
}

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

.jawatankuasa-kecil-page.tm-theme-bg-page .jk-page.section {
  background: transparent;
  --background-color: transparent;
}

.jawatankuasa-kecil-page .tm-skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 100050;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--jk-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;
}

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

@media (min-width: 1200px) {
  .jawatankuasa-kecil-page:not(.scrolled) #header.header {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

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

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

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

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

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

@media (max-width: 1199.98px) {
  .mobile-nav-active.jawatankuasa-kecil-page #header.header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
  }

  .mobile-nav-active.jawatankuasa-kecil-page .tm-scroll-progress {
    z-index: 9999;
  }
}

/* Hero */
.tm-jk-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  min-height: clamp(300px, 46svh, 460px);
  padding:
    calc(var(--tm-header-h, 72px) + 0.85rem + env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    clamp(1rem, 2.5vh, 1.5rem)
    max(1rem, env(safe-area-inset-left, 0px));
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

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

.tm-jk-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  height: calc(var(--tm-header-h, 72px) + 4rem);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 24, 41, 0.82) 0%,
    rgba(12, 24, 41, 0.48) 45%,
    rgba(12, 24, 41, 0.12) 78%,
    transparent 100%
  );
}

.tm-jk-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.tm-jk-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(12, 24, 41, 0.62) 0%,
      rgba(12, 24, 41, 0.28) 38%,
      rgba(246, 248, 250, 0.35) 58%,
      rgba(246, 248, 250, 0.88) 76%,
      #f6f8fa 90%
    ),
    radial-gradient(ellipse 120% 80% at 50% 30%, rgba(12, 24, 41, 0.1) 0%, rgba(12, 24, 41, 0.48) 100%);
  pointer-events: none;
}

.tm-jk-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.35;
  background: repeating-linear-gradient(
    -12deg,
    transparent 0,
    transparent 18px,
    rgba(255, 199, 54, 0.05) 18px,
    rgba(255, 199, 54, 0.05) 19px
  );
  pointer-events: none;
}

.tm-jk-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  width: min(100%, 720px);
  margin: 0 auto;
}

.tm-jk-hero__content {
  width: 100%;
}

.tm-jk-hero__crumb ol {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0.45rem 0.85rem;
  list-style: none;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tm-jk-hero__crumb li {
  display: inline-flex;
  align-items: center;
}

.tm-jk-hero__crumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.55;
}

.tm-jk-hero__crumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tm-jk-hero__crumb a:hover,
.tm-jk-hero__crumb a:focus-visible {
  color: var(--jk-gold);
}

.tm-jk-hero__crumb li[aria-current="page"] {
  color: var(--jk-gold);
}

.tm-jk-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jk-gold);
}

.tm-jk-hero h1 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.85rem, 5.5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
}

.tm-jk-hero__lead {
  margin: 0.75rem auto 0;
  max-width: 40ch;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

/* Content */
.jk-page {
  position: relative;
  padding: var(--jk-section-pad) 0;
  overflow: hidden;
}

.jk-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 55% at 50% -8%, rgba(255, 255, 255, 0.55) 0%, transparent 58%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--tm-bg-fallback, #f6f8fa) 78%, transparent) 0%,
      color-mix(in srgb, var(--tm-bg-fallback, #f6f8fa) 92%, transparent) 22%,
      color-mix(in srgb, var(--tm-bg-fallback, #f6f8fa) 96%, transparent) 100%
    );
}

.jawatankuasa-kecil-page .tm-theme-bg::after {
  background:
    linear-gradient(
      180deg,
      rgba(246, 248, 250, 0.08) 0%,
      rgba(246, 248, 250, 0.42) 28vh,
      rgba(246, 248, 250, 0.78) 55vh,
      rgba(246, 248, 250, 0.9) 100%
    ),
    var(--tm-bg-overlay, transparent);
}

.tm-jk-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.tm-jk-canvas__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.tm-jk-canvas__orb--1 {
  top: 8%;
  right: -8%;
  width: min(320px, 50vw);
  height: min(320px, 50vw);
  background: rgba(42, 157, 143, 0.12);
}

.tm-jk-canvas__orb--2 {
  bottom: 12%;
  left: -6%;
  width: min(280px, 45vw);
  height: min(280px, 45vw);
  background: rgba(255, 199, 54, 0.1);
}

.tm-jk-content {
  position: relative;
  z-index: 1;
}

/* Intro */
.tm-jk-intro {
  max-width: 640px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.tm-jk-intro__tagline {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jk-teal);
}

.tm-jk-intro h2 {
  margin: 0 0 0.75rem;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--jk-navy);
  line-height: 1.2;
}

.tm-jk-intro__lead {
  margin: 0 auto 1.25rem;
  max-width: 52ch;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.65;
  color: rgba(29, 54, 92, 0.78);
}

.tm-jk-intro__session {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--jk-gold-soft);
  border: 1px solid rgba(255, 199, 54, 0.35);
  font-size: 0.9rem;
  color: var(--jk-navy);
}

.tm-jk-intro__session-label {
  font-weight: 500;
  opacity: 0.75;
}

.tm-jk-intro__session strong {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tm-jk-intro__divider {
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--jk-teal), var(--jk-gold));
}

/* Committee grid */
.tm-jk-committees {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--jk-gap);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 640px) {
  .tm-jk-committees {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tm-jk-committees {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tm-jk-committee {
  display: flex;
  flex-direction: column;
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  border-radius: var(--jk-radius);
  background: #fff;
  border: 1px solid var(--jk-line);
  box-shadow: var(--jk-shadow);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.tm-jk-committee:hover {
  box-shadow: var(--jk-shadow-hover);
  border-color: rgba(42, 157, 143, 0.22);
}

.tm-jk-committee__title {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--jk-gold-soft);
  font-family: "Poppins", sans-serif;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--jk-navy);
}

.tm-jk-committee__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: jk-member;
}

.tm-jk-committee__list > li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(29, 54, 92, 0.06);
  font-size: clamp(0.85rem, 1.8vw, 0.92rem);
  line-height: 1.45;
}

.tm-jk-committee__list > li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tm-jk-member__name {
  flex: 1 1 12rem;
  color: rgba(29, 54, 92, 0.92);
  font-weight: 500;
}

.tm-jk-member__id {
  flex-shrink: 0;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(29, 54, 92, 0.06);
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--jk-navy);
}

.tm-jk-member__id::before {
  content: "(";
}

.tm-jk-member__id::after {
  content: ")";
}

/* CTA */
.tm-jk-cta {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: calc(var(--jk-radius) + 4px);
  background: linear-gradient(135deg, var(--jk-navy) 0%, var(--jk-navy-deep) 100%);
  text-align: center;
  box-shadow: 0 12px 40px rgba(12, 24, 41, 0.2);
}

.tm-jk-cta__text {
  margin: 0 auto 1.25rem;
  max-width: 42ch;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.tm-jk-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.tm-jk-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tm-jk-cta__btn:focus-visible {
  outline: 2px solid var(--jk-gold);
  outline-offset: 3px;
}

.tm-jk-cta__btn--primary {
  background: var(--jk-gold);
  color: var(--jk-navy-deep);
  border: 1px solid var(--jk-gold);
}

.tm-jk-cta__btn--primary:hover {
  background: #ffd04d;
  color: var(--jk-navy-deep);
}

.tm-jk-cta__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.tm-jk-cta__btn--ghost:hover,
.tm-jk-cta__btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* Reveal */
[data-jk-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-jk-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-jk-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
