@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ========================================
   APM — Apple White Minimal + Light Gray
   Modern Professional + Full Animated Revamp
   Keeps UM Navy, Gold accents + refined warm action
   ======================================== */

:root {
  --navy: #0a2540;
  --dark: #0a2540;
  --ink: #1d1d1f;
  --orange: #c35f3a;
  --gold: #b89c5e;
  --cream: #f5f5f7;

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-subtle: #fafafa;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --border: #e5e5e7;
  --border-light: #f0f0f2;

  --radius: 16px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  font-family: 'DM Sans', system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; line-height: 1.6; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { text-decoration: none; color: inherit; transition: color .2s var(--ease); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #c35f3a33; outline-offset: 3px;
}
img { max-width: 100%; display: block; }

/* Layout */
.container { width: min(1200px, calc(100% - 72px)); margin: 0 auto; }
@media (max-width: 720px) { .container { width: calc(100% - 40px); } }

/* Top utility bar - refined UM branding */
.utility { background: #0a2540; color: #d8e0ed; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; }
.utility-inner { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.utility a { color: #f4f2e9; transition: opacity .2s; }
.utility a:hover { opacity: .8; }
.utility-right { display: flex; align-items: center; gap: 20px; }
.sep-dot { font-size: 6px; color: #b89c5e; padding: 0 8px; }
.prototype-pill {
  border: 1px solid #4a5e7c; border-radius: 999px; padding: 3px 11px; font-size: 9px; letter-spacing: .9px;
  color: #d8c9a8; background: rgba(255,255,255,0.03);
}

/* Header - Apple clean frosted */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; padding: 0; background: none; border: 0; }
.brand-symbol {
  width: 44px; height: 48px; display: grid; place-items: center;
  background: var(--navy); color: #fff;
  clip-path: polygon(50% 0, 95% 14%, 91% 70%, 50% 100%, 9% 70%, 5% 14%);
  font-family: Georgia, serif; font-size: 15px; font-weight: 700; letter-spacing: -2px; position: relative;
}
.brand-symbol:after {
  content: ''; position: absolute; inset: 5px;
  clip-path: inherit; border: 1px solid #c5a26f; opacity: .85;
}
.brand-symbol i {
  position: absolute; bottom: 11px; height: 5px; width: 18px; background: #c5a26f;
  clip-path: polygon(0 0, 100% 0, 70% 100%, 20% 100%);
}
.brand-type b { display: block; color: #111f40; font-size: 12px; font-weight: 800; line-height: 1.1; letter-spacing: .7px; }
.brand-type small { display: block; font-size: 9px; letter-spacing: 1.3px; color: #a17a40; margin-top: 5px; font-weight: 700; }

/* Nav - minimal Apple */
.desktop-nav { display: flex; align-items: stretch; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-btn {
  border: 0; background: transparent; padding: 16px 13px; font-size: 12px; font-weight: 600;
  color: #4c5566; border-radius: 8px; display: flex; gap: 5px; align-items: center;
  transition: all .15s var(--ease);
}
.nav-btn:hover, .nav-btn.active { color: #c35f3a; background: #fafafa; }
.nav-btn span { font-size: 9px; opacity: .4; }

/* Dropdown — stable hover + click friendly */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.12);
  border-radius: 14px;
  padding: 16px 10px 12px;
  padding-top: 10px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .18s var(--ease), visibility .18s;
  z-index: 70;
  max-height: 65vh;
  overflow: auto;
}
/* Invisible hover bridge so mouse can travel down without dropdown disappearing */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 14px;
}
/* Keep dropdown open while hovering either the trigger or the dropdown itself */
.nav-item:hover .nav-dropdown,
.nav-dropdown:hover,
.nav-item:focus-within .nav-dropdown,
.nav-item.open .nav-dropdown {
  visibility: visible;
  opacity: 1;
}
.nav-dropdown b { display: block; margin: 0 10px 6px; font-size: 13px; color: var(--navy); }
.nav-dropdown p { font-size: 11px; color: var(--text-2); margin: 0 10px 8px; }
.nav-dropdown a {
  display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; padding: 8px 10px;
  border-radius: 8px; color: #2f3b52;
}
.nav-dropdown a:hover { background: #f7f7f9; color: #c35f3a; }

/* Small left offset for wider dropdowns if needed (optional per item) */
.nav-item:nth-child(1) .nav-dropdown { left: -20px; }
.nav-item:nth-child(2) .nav-dropdown { left: -10px; }

.header-actions { display: flex; align-items: center; gap: 9px; }
.header-search {
  border: 1px solid var(--border); background: #f9f9fb; color: #6e6e73; padding: 10px 12px;
  display: flex; align-items: center; gap: 7px; border-radius: 10px; font-size: 11px; white-space: nowrap;
  transition: all .2s var(--ease);
}
.header-search:hover { border-color: #c8c8cd; background: #fff; }
.search-icon { font-size: 21px; line-height: 1; }

.agent-header {
  background: var(--navy); color: #fff; border: 0; border-radius: 10px; padding: 11px 15px;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 8px;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.agent-header:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -4px rgba(10,37,64,0.35); }
.agent-glow { width: 6px; height: 6px; background: #c5a26f; border-radius: 50%; box-shadow: 0 0 0 3px rgba(197,162,111,0.25); }

.mobile-menu, .mobile-nav { display: none; }

/* HERO — Apple clean, white base, professional, animated */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border-light);
}
.hero .hero-bg {
  width: 100%;
  color: white;
}
.hero .container { position: relative; }
.hero-main {
  min-height: 540px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px;
  align-items: center; padding: 72px 0 78px;
}
.hero-kicker {
  font-size: 10px; letter-spacing: 2.4px; text-transform: uppercase; font-weight: 700;
  color: #8c6640; display: flex; align-items: center; gap: 12px;
}
.hero-kicker:before { content: ''; height: 1px; width: 34px; background: #c5a26f; }

.hero h1 {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.08; letter-spacing: -2.6px; margin: 18px 0 14px; color: #111;
}
.hero h1 em, .section-title em, .footer h2 em { color: #b89c5e; font-style: normal; }

.hero-desc { color: #5f5f65; line-height: 1.7; font-size: 15px; max-width: 520px; }
.hero-btns { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.btn-primary, .btn-ghost {
  border: 0; padding: 14px 22px; border-radius: 10px; font-size: 12px; font-weight: 700;
  transition: all .2s var(--ease); display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #a84f30; transform: translateY(-1px); }
.btn-ghost { color: #3a3a3f; border: 1px solid #d2d2d7; background: #fff; }
.btn-ghost:hover { background: #f9f9fb; border-color: #b9b9bf; }

.hero-note {
  display: flex; align-items: center; gap: 22px; margin-top: 48px; color: #6f6f75; font-size: 11px;
}
.hero-note strong { color: #111; font-size: 15px; display: block; line-height: 1; }
.hero-note .bar { height: 22px; width: 1px; background: #d8d8de; }

/* Hero visual — soft modern treatment */
.hero-visual { position: relative; min-height: 420px; }
.hero-bg {
  min-height: 620px;
  background-size: cover;
  background-position: center;
}

.hero-photo {
  position: absolute; inset: 0 0 28px 6%; border-radius: 20px;
  background: linear-gradient(125deg, rgba(10,37,64,0.08), rgba(255,255,255,0.3)), url('../media/apm/generic/11.jpg') center/cover;
  box-shadow: 0 30px 90px -20px rgba(10,37,64,0.18), 0 4px 18px -2px rgba(0,0,0,0.06);
  overflow: hidden; transition: transform .6s var(--ease);
}
.hero-photo:hover { transform: scale(1.008); }
.hero-photo:after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.55) 12%, transparent 48%, rgba(10,37,64,0.06) 82%);
}
.hero-photo-title {
  position: absolute; left: 26px; bottom: 24px; z-index: 2; display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 10px; letter-spacing: 1.6px; color: #2f3f55;
}
.hero-photo-title span { display: block; width: 24px; height: 1px; background: #c5a26f; }

.hero-stamp {
  position: absolute; right: -18px; top: 42px; z-index: 3; background: #fff;
  color: #1c2b49; border-radius: 14px; padding: 15px 18px; box-shadow: 0 20px 55px -10px rgba(10,37,64,0.16);
  border: 1px solid var(--border-light); width: 168px;
}
.hero-stamp small { font-size: 9px; letter-spacing: 1.4px; color: #8f7a4f; font-weight: 700; }
.hero-stamp strong { display: block; font: 800 27px 'Manrope'; margin: 2px 0; color: #0a2540; }
.hero-stamp span { font-size: 10px; color: #6e6e73; }

/* Floating AI hint card — gentle float */
.hero-ai-card {
  position: absolute; left: -32px; bottom: -4px; z-index: 4;
  background: #fff; color: #1f283a; width: 282px; border-radius: 14px;
  padding: 16px 17px; box-shadow: 0 18px 55px -12px rgba(10,37,64,0.14);
  border: 1px solid var(--border-light);
  animation: heroFloat 7s var(--ease) infinite;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.hero-ai-top { display: flex; align-items: center; gap: 10px; }
.hero-ai-top .ai-mini {
  width: 32px; height: 32px; background: #f1f3f8; color: #0a2540; border-radius: 9px;
  display: grid; place-items: center; font-size: 20px;
}
.hero-ai-top b { font-size: 12px; color: #111; }
.hero-ai-top small { font-size: 9px; color: #86868b; }
.hero-ai-card p { font-size: 11px; color: #575c68; margin: 10px 0 11px; line-height: 1.55; }
.hero-ai-card button {
  background: #f6f6f9; color: #2d3a52; border: 0; border-radius: 7px; font-size: 10px; font-weight: 700;
  padding: 7px 11px; transition: all .2s;
}
.hero-ai-card button:hover { background: #e8ecf4; }

/* Signal bar */
.signal { background: #fff; border-bottom: 1px solid var(--border); }
.signal-inner { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 16px; font-size: 11px; }
.signal-label { display: flex; align-items: center; gap: 8px; color: #9a6f3c; font-weight: 700; letter-spacing: .6px; font-size: 10px; }
.live-dot { width: 6px; height: 6px; background: #5e9c7c; border-radius: 50%; display: inline-block; margin-right: 6px; animation: pulse 2.6s ease infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.signal-content { color: #555a67; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.signal-link { color: #3f4f6b; font-weight: 700; }

/* SECTIONS — generous, clean Apple spacing */
.section { padding: 78px 0; }
.section-sm { padding: 56px 0; }
.section-beige, .section-offwhite { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 32px; }
.eyebrow {
  font-size: 10px; letter-spacing: 2.4px; text-transform: uppercase; font-weight: 700;
  color: #9f6f3e; display: block; margin-bottom: 10px;
}
.section-title {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(27px, 3.1vw, 40px);
  line-height: 1.12; letter-spacing: -1.7px; margin: 0; color: #111;
}
.section-description { color: var(--text-2); font-size: 14px; line-height: 1.7; max-width: 480px; margin-top: 12px; }
.inline-action, .text-cta {
  font-size: 12px; font-weight: 700; color: var(--orange); background: none; border: 0; padding: 0;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: color .15s;
}
.inline-action:hover, .text-cta:hover { color: #9c4527; }

/* Quick Access Cards — Apple clean */
.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.quick-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 22px 18px; min-height: 176px; text-align: left; position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .2s;
  will-change: transform;
}
.quick-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 45px -14px rgba(10,37,64,0.11);
  border-color: #d8d8de;
}
.quick-icon {
  width: 38px; height: 38px; border-radius: 10px; background: #f8f3eb; color: #b56a43;
  display: grid; place-items: center; font-size: 20px; margin-bottom: 16px;
  transition: transform .35s var(--ease), background .25s;
}
.quick-card:hover .quick-icon { transform: scale(1.08) translateY(-1px); background: #f4e9d9; }
.quick-card b { display: block; color: #111; font-size: 13px; font-weight: 700; line-height: 1.35; }
.quick-card .description { color: var(--text-2); font-size: 12px; line-height: 1.5; margin-top: 6px; display: block; }
.quick-card .arrow { position: absolute; right: 18px; top: 21px; color: #c5a26f; font-size: 15px; transition: transform .3s; }
.quick-card:hover .arrow { transform: translateX(2px); }

/* Program Cards + Tabs */
.program-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab {
  background: #fff; border: 1px solid var(--border); color: #626972; padding: 8px 18px;
  border-radius: 999px; font-size: 11px; font-weight: 700; transition: all .2s;
}
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.program-card {
  min-height: 268px; border-radius: var(--radius-sm); background: #fff;
  border: 1px solid var(--border); padding: 24px 22px 18px;
  display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .2s;
  will-change: transform;
}
.program-card:hover {
  transform: translateY(-6px) scale(1.003);
  box-shadow: 0 24px 52px -18px rgba(10,37,64,0.13);
  border-color: #d0d0d5;
}
.program-number {
  font-size: 10px; font-weight: 700; color: #9a6f3e; letter-spacing: 1.1px;
  background: #f9f7f2; padding: 2px 9px; border-radius: 999px; align-self: start;
}
.program-card .program-symbol {
  font-family: Georgia, serif; font-size: 46px; color: #e6e4df; line-height: 1; margin: 8px 0 2px;
  transition: color .3s;
}
.program-card:hover .program-symbol { color: #d4d0c7; }
.program-card h3 { color: #111; margin: 6px 0 7px; font-size: 15px; font-weight: 700; line-height: 1.32; }
.program-card p { font-size: 12px; color: var(--text-2); line-height: 1.55; flex: 1; }
.program-links {
  display: flex; align-items: center; justify-content: space-between; margin-top: 15px;
  padding-top: 13px; border-top: 1px solid var(--border-light); font-size: 11px; font-weight: 700;
}
.program-links a { color: #3f546f; }
.program-links button { color: var(--orange); background: none; border: 0; padding: 0; font-weight: 700; }

/* AI Band — clean light professional */
.ai-band { background: #f7f7f9; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.ai-band-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; padding: 68px 0;
}
.ai-band h2 { font: 800 clamp(28px,3.4vw,44px)/1.15 'Manrope'; letter-spacing: -1.6px; margin: 12px 0; color: #111; }
.ai-band p { color: var(--text-2); font-size: 14px; line-height: 1.7; max-width: 460px; }
.ai-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ai-feature {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 17px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.ai-feature:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -8px rgba(10,37,64,0.09); }
.ai-feature-icon { font-size: 19px; color: #c5a26f; margin-bottom: 11px; }
.ai-feature b { font-size: 12px; color: #111; }
.ai-feature small { font-size: 11px; color: var(--text-2); line-height: 1.55; margin-top: 4px; display: block; }

/* News & Events — clean cards */
.news-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; }
.news-lead {
  position: relative; min-height: 398px; border-radius: 14px; overflow: hidden; display: block;
  background: #111; color: #fff; border: 1px solid #222;
}
.news-lead img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.news-lead:hover img { transform: scale(1.04); }
.news-lead:after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgba(0,0,0,0.75) 64%);
}
.news-lead-overlay { position: absolute; z-index: 2; bottom: 28px; left: 28px; right: 28px; }
.news-lead-overlay small { color: #e8b88a; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.news-lead-overlay h3 { font: 800 22px/1.3 'Manrope'; margin: 8px 0; max-width: 420px; }

.news-list a {
  padding: 17px 0; border-bottom: 1px solid var(--border); display: flex; gap: 18px; align-items: flex-start;
  transition: background .15s;
}
.news-list a:hover { background: #fafafa; }
.news-list .datebox { min-width: 48px; color: #a36f44; font-weight: 700; font-size: 10px; line-height: 1.35; }
.news-list .datebox strong { font: 800 23px 'Manrope'; color: #111; display: block; }
.news-list h4 { font-size: 13px; margin: 0; color: #1f2838; line-height: 1.4; }
.news-list small { color: var(--text-2); font-size: 11px; margin-top: 4px; display: block; }

.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.event-card {
  border-radius: 13px; background: #fff; border: 1px solid var(--border); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.event-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px -16px rgba(10,37,64,0.12); }
.event-card img { height: 172px; width: 100%; object-fit: cover; background: #e8e9ed; transition: transform .55s var(--ease); }
.event-card:hover img { transform: scale(1.035); }
.event-body { padding: 19px 18px 20px; }
.event-body time { font-size: 10px; color: #9a6f3e; font-weight: 700; }
.event-body h3 { font: 700 15px/1.35 'Manrope'; margin: 8px 0 7px; color: #111; min-height: 44px; }
.event-body p { font-size: 12px; color: var(--text-2); line-height: 1.5; min-height: 30px; }
.event-body a { font-size: 11px; font-weight: 700; color: var(--orange); }

/* Heritage gallery */
.gallery-strip { display: grid; grid-template-columns: 1.3fr .9fr .9fr; gap: 12px; }
.gallery-strip a {
  position: relative; height: 228px; border-radius: 13px; overflow: hidden; background: #0d1f38;
  display: block;
}
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-strip a:hover img { transform: scale(1.065); }
.gallery-strip span {
  position: absolute; left: 16px; bottom: 15px; background: rgba(10,37,64,0.78); color: #fff;
  border-radius: 6px; padding: 6px 11px; font-size: 11px; font-weight: 700;
}

/* Resource cards */
.resource-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* Enhanced animations for Saya Mencari */
#looking-for .grid > div {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  transform: translateY(30px);
}
#looking-for .grid > div.visible {
  opacity: 1;
  transform: translateY(0);
}
#looking-for .grid > div:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px -10px rgba(10,37,64,0.15);
  border-color: #c5a26f;
}

/* Why Choose APM - Slider */
.why-slider {
  position: relative;
  overflow: hidden;
  padding: 0 40px;
}
.why-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  gap: 20px;
}
.why-slide {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .why-slide {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}
.why-slide .border {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.why-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid #e5e5e7;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.why-slider-btn:hover {
  background: #f5f5f7;
  border-color: #c5a26f;
}
.why-slider-btn.prev { left: 0; }
.why-slider-btn.next { right: 0; }
.why-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.why-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e5e7;
  cursor: pointer;
  transition: all 0.2s;
}
.why-dot.active {
  background: #c5a26f;
  width: 24px;
  border-radius: 4px;
}

/* Testimonials - Slideshow */
.testimonial-slider {
  position: relative;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 10px;
  box-sizing: border-box;
}
.testimonial-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid #e5e5e7;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.testimonial-slider-btn:hover {
  background: #c5a26f;
  color: white;
}
.testimonial-slider-btn.prev { left: 10px; }
.testimonial-slider-btn.next { right: 10px; }
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.testimonial-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e5e5e7;
  cursor: pointer;
}
.testimonial-dot.active {
  background: #c5a26f;
}
.resource-card {
  display: flex; gap: 15px; align-items: flex-start; border: 1px solid var(--border);
  background: #fff; border-radius: 12px; padding: 20px; transition: all .35s var(--ease);
}
.resource-card:hover { border-color: #d0d0d5; transform: translateY(-2px); }
.resource-card span { font-size: 22px; color: #b56a43; line-height: 1; }
.resource-card b { font-size: 14px; color: #111; margin: 0 0 2px; display: block; }
.resource-card p { font-size: 12px; color: var(--text-2); line-height: 1.55; margin: 0; }
.resource-card strong { color: var(--orange); font-weight: 700; font-size: 14px; margin-left: auto; }

/* Footer — refined dark but clean */
.footer { background: #0a2540; color: #c8d0dd; padding: 64px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.9fr .85fr 1fr 1.15fr; gap: 52px; padding-bottom: 50px; }
.footer-brand { color: #c5a26f; font: 800 17px 'Manrope'; }
.footer h2 { font: 800 24px/1.25 'Manrope'; letter-spacing: -.6px; margin: 18px 0; color: #fff; }
.footer h2 em { color: #c5a26f; }
.footer p { font-size: 12px; line-height: 1.75; color: #9aa7bc; }
.footer h4 { font-size: 11px; letter-spacing: 1.2px; margin: 0 0 12px; color: #c5a26f; }
.footer-link-col a { display: block; font-size: 12px; padding: 5px 0; color: #a3b1c7; }
.footer-link-col a:hover { color: #fff; }
.footer-ai { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 20px 20px; border-radius: 12px; }
.footer-ai .neural-mark { font-size: 32px; color: #c5a26f; }
.light-cta {
  background: #c5a26f; color: #0a2540; border: 0; border-radius: 8px; padding: 10px 14px;
  font-size: 11px; font-weight: 700; margin-top: 14px; display: inline-block;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; font-size: 10px; color: #7f8fa1; display: flex; gap: 16px; justify-content: space-between; }
.footer-bottom a { color: #c5a26f; }

/* Page templates */
.page-hero { background: linear-gradient(180deg, #0a2540, #0c2a4a); color: #fff; padding: 62px 0 68px; position: relative; overflow: hidden; }
.page-hero:after { content: 'APM'; font: 800 210px 'Manrope'; color: rgba(255,255,255,0.035); position: absolute; top: -48px; right: -10px; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: 11px; color: #c5a26f; display: flex; gap: 9px; }
.breadcrumb a { color: #b2c0d4; }
.page-hero h1 { font: 800 clamp(27px, 4vw, 48px)/1.15 'Manrope'; letter-spacing: -1.6px; margin: 16px 0 10px; max-width: 880px; }
.page-hero p { color: #b6c4d6; font-size: 14px; line-height: 1.65; max-width: 680px; }

.page-content-layout { display: grid; grid-template-columns: 1fr 280px; gap: 42px; padding: 46px 0 80px; }
.page-intro { font-size: 16px; color: #2f3e55; line-height: 1.75; }
.source-note { background: #f7f7f9; border: 1px solid var(--border); border-radius: 10px; padding: 14px 17px; font-size: 11px; color: #636c7c; line-height: 1.6; margin-bottom: 22px; }
.article-body { font-size: 14.5px; line-height: 1.82; color: #2a354a; }
.article-body h2, .article-body h3 { font-family: 'Manrope', sans-serif; color: #0f253f; }
.article-body a { color: var(--orange); text-decoration: underline; }
.page-ai-panel {
  margin-top: 28px; background: #f7f7f9; border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px; display: flex; align-items: center; gap: 16px; justify-content: space-between;
}
.page-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 16px 0; }
.page-media img { border-radius: 10px; }

/* Directory & side panels */
.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.directory-item {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.directory-item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(10,37,64,0.1); }
.directory-item small { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: #9a6f3e; }
.directory-item h3 { font-size: 14px; color: #111; margin: 7px 0 5px; }
.directory-item p { font-size: 12px; color: var(--text-2); }
.directory-item .dir-actions { margin-top: 12px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; }

.side-panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.side-panel h4 { font-size: 12px; color: #111; margin: 0 0 9px; }
.side-panel a { display: block; padding: 7px 0; font-size: 12px; border-bottom: 1px solid #f2f2f5; color: #49526b; }
.side-panel a:hover { color: var(--orange); }
.context-ai {
  background: #f3f4f8; border: 1px solid #d6dce8; padding: 9px 13px; border-radius: 9px; font-weight: 700;
  font-size: 11px; color: #2a405f; display: inline-flex; align-items: center; gap: 7px;
}
.context-ai:hover { background: #e9ebf3; }

/* Search Overlay — Apple white minimalist polish */
.search-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: min(14vh, 110px);
}
.overlay-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(24px);
}
.search-panel {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: min(720px, calc(100% - 32px));
  box-shadow: 0 30px 90px -15px rgba(0,0,0,0.18), 0 8px 30px -8px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform .2s var(--ease), opacity .15s ease;
}
.search-overlay:not([hidden]) .search-panel {
  transform: translateY(0);
  opacity: 1;
}

.search-input-line {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}
.search-input-line span {
  font-size: 22px; color: #9a7044; line-height: 1; opacity: .85;
}
.search-input-line input {
  flex: 1; min-width: 0;
  border: 0; outline: 0;
  font-size: 16px; background: transparent;
  color: #1d1d1f;
}
.search-input-line input::placeholder {
  color: #8e8e93;
}
.search-input-line input:focus {
  outline: none;
}
.search-input-line button {
  background: #f0f0f3;
  border: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 15px;
  color: #6e6e73;
  display: grid; place-items: center;
  transition: all .15s var(--ease);
  line-height: 1;
}
.search-input-line button:hover {
  background: #e5e5e8;
  color: #1d1d1f;
}

.search-results {
  max-height: 380px;
  overflow: auto;
  padding: 6px 8px;
  background: #fff;
}
.search-results > p {
  padding: 22px 18px;
  color: #8e8e93;
  font-size: 13px;
  margin: 0;
}

.result-item {
  width: 100%;
  background: #fff;
  border: 0;
  text-align: left;
  padding: 13px 16px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #1d1d1f;
  transition: background .1s;
}
.result-item:hover,
.result-item.selected {
  background: #f5f5f7;
}
.result-item.selected {
  box-shadow: inset 3px 0 0 #c5a26f;
}
.result-item b {
  display: block;
  color: #111;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}
.result-item small {
  display: block;
  color: #6e6e73;
  font-size: 11px;
  margin-top: 2px;
  line-height: 1.35;
}
.result-item > span:last-child {
  color: #c5a26f;
  font-size: 16px;
  flex-shrink: 0;
}

.search-foot {
  border-top: 1px solid var(--border);
  padding: 10px 18px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: #6e6e73;
}
.search-foot kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 10px;
  color: #555;
  box-shadow: 0 1px 0 #ddd;
  vertical-align: middle;
}
.search-foot button {
  background: none;
  border: 0;
  color: #b56b4a;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all .1s;
}
.search-foot button:hover {
  background: #f0f0f3;
  color: #9c4527;
}

.ai-drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: min(430px, 100%); z-index: 130;
  background: #f9f9fb; box-shadow: -22px 0 70px -18px rgba(10,37,64,0.22);
  transform: translateX(108%); transition: transform .38s var(--ease); display: flex; flex-direction: column;
}
.ai-drawer.open { transform: translateX(0); }
.drawer-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.2); backdrop-filter: blur(6px); z-index: 120; }
.drawer-head { padding: 17px 18px; background: #fff; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.ai-avatar { width: 38px; height: 38px; border-radius: 10px; background: var(--navy); color: #c5a26f; display: grid; place-items: center; font-size: 22px; }
.chat-messages { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 11px; }
.message { max-width: 88%; padding: 11px 13px; border-radius: 11px; font-size: 12.5px; line-height: 1.55; }
.message.user { align-self: flex-end; background: #0a2540; color: #fff; border-bottom-right-radius: 3px; }
.message.bot { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.chat-form { background: #fff; padding: 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.chat-form textarea { flex: 1; border: 1px solid var(--border); border-radius: 9px; padding: 10px; font-size: 13px; resize: none; }
.chat-form button { background: var(--navy); color: #fff; border: 0; border-radius: 9px; width: 44px; }

.floating-ai {
  position: fixed; bottom: 22px; right: 22px; z-index: 65;
  background: #0a2540; color: #fff; border-radius: 999px; padding: 8px 16px 8px 9px;
  display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700;
  box-shadow: 0 10px 30px -8px rgba(10,37,64,0.4); border: 1px solid #1f3555;
}
.floating-ai span { width: 28px; height: 28px; border-radius: 50%; background: #c5a26f; color: #0a2540; display: grid; place-items: center; font-size: 18px; }

.toast {
  position: fixed; top: 100px; left: 50%; transform: translate(-50%, -20px); z-index: 200;
  background: #0a2540; color: #fff; font-size: 12px; padding: 10px 17px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: all .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ========================================
   TOTAL ANIMATED REVAMP — all angles, everything
   ======================================== */

/* Base reveal system — staggered from multiple directions */
.reveal {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* Direction variants for "semua angle" */
.reveal.from-up { transform: translateY(32px); }
.reveal.from-down { transform: translateY(-26px); }
.reveal.from-left { transform: translateX(-36px); }
.reveal.from-right { transform: translateX(36px); }
.reveal.scale-in { transform: scale(0.96); }
.reveal.from-up.visible,
.reveal.from-down.visible,
.reveal.from-left.visible,
.reveal.from-right.visible,
.reveal.scale-in.visible {
  transform: none;
}

/* Stagger for grids */
.quick-grid .reveal:nth-child(1) { transition-delay: 40ms; }
.quick-grid .reveal:nth-child(2) { transition-delay: 110ms; }
.quick-grid .reveal:nth-child(3) { transition-delay: 170ms; }
.quick-grid .reveal:nth-child(4) { transition-delay: 230ms; }
.quick-grid .reveal:nth-child(5) { transition-delay: 290ms; }
.quick-grid .reveal:nth-child(6) { transition-delay: 340ms; }

.program-grid .reveal:nth-child(1) { transition-delay: 30ms; }
.program-grid .reveal:nth-child(2) { transition-delay: 95ms; }
.program-grid .reveal:nth-child(3) { transition-delay: 155ms; }
.program-grid .reveal:nth-child(4) { transition-delay: 215ms; }
.program-grid .reveal:nth-child(5) { transition-delay: 270ms; }
.program-grid .reveal:nth-child(6) { transition-delay: 320ms; }
.program-grid .reveal:nth-child(7) { transition-delay: 370ms; }
.program-grid .reveal:nth-child(8) { transition-delay: 420ms; }

.event-grid .reveal:nth-child(1) { transition-delay: 60ms; }
.event-grid .reveal:nth-child(2) { transition-delay: 140ms; }
.event-grid .reveal:nth-child(3) { transition-delay: 210ms; }

.resource-row .reveal:nth-child(1) { transition-delay: 50ms; }
.resource-row .reveal:nth-child(2) { transition-delay: 120ms; }
.resource-row .reveal:nth-child(3) { transition-delay: 185ms; }

.gallery-strip a { transition: transform .55s var(--ease), box-shadow .4s; }
.gallery-strip a:hover { transform: translateY(-2px); }

/* Rich micro interactions on everything */
.quick-card, .program-card, .event-card, .resource-card, .directory-item {
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .2s var(--ease);
}
.quick-card:active, .program-card:active { transform: scale(0.985); }

.btn-primary:active, .btn-ghost:active, .agent-header:active { transform: scale(0.97); }

/* Tab animation */
.tab { transition: all .2s var(--ease); position: relative; }
.tab.active:after {
  content: ''; position: absolute; bottom: -1px; left: 18px; right: 18px; height: 2px;
  background: #fff; border-radius: 2px;
}

/* Signal shimmer */
.signal { position: relative; overflow: hidden; }
.signal:after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(95deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: translateX(-120%); animation: signalSweep 5.5s linear infinite;
}
@keyframes signalSweep { to { transform: translateX(240%); } }

/* Hero aurora soft (very subtle) */
.hero:after {
  content: ''; position: absolute; inset: -40% -15%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 22% 18%, rgba(197,162,111,0.09), transparent 48%),
    radial-gradient(ellipse at 78% 72%, rgba(195,95,58,0.06), transparent 42%);
  animation: softAurora 18s ease-in-out infinite alternate;
}
@keyframes softAurora {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(1.5%, 1%,0) scale(1.03); }
}

/* Image + tile soft lift */
.event-card img, .news-lead img, .gallery-strip img { transition: transform .6s var(--ease); }
.event-card:hover img, .news-lead:hover img, .gallery-strip a:hover img { transform: scale(1.04); }

/* AI feature pop */
.ai-feature { transition: transform .35s var(--ease), box-shadow .3s; }
.ai-feature:hover { transform: translateY(-3px); }

/* Floating elements */
.floating-ai { transition: transform .25s var(--ease), box-shadow .25s; }
.floating-ai:hover { transform: translateY(-2px); }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important; transition: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
.no-motion * , .no-motion *::before, .no-motion *::after {
  animation: none !important; transition-duration: 0.01ms !important;
}

/* Responsive refinements */
@media (max-width: 1100px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-main { gap: 42px; }
}
@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; background: #f4f4f6; border: 0; width: 38px; height: 38px; border-radius: 8px; font-size: 18px; }
  .mobile-nav { display: block; border-top: 1px solid var(--border); padding: 10px 18px; }
  .hero-main { grid-template-columns: 1fr; padding: 48px 0 60px; }
  .hero-visual { min-height: 280px; margin-top: 20px; }
  .ai-band-inner, .news-grid, .resource-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .event-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .gallery-strip a:first-child { grid-column: span 2; }
  .section { padding: 54px 0; }
  .hero h1 { font-size: 38px; }
}
/* ============================================================
   Search overlay / AI drawer layout fixes
   The redesigned stylesheet omitted the hidden-state and footer
   rules, so the overlay could stay visible and the footer text
   collided with the "Tanya APM AI" button.
   ============================================================ */
[hidden] { display: none !important; }
.search-overlay[hidden],
.drawer-scrim[hidden],
.mobile-nav[hidden] { display: none !important; }

.search-panel {
  width: min(700px, calc(100% - 32px)) !important;
  max-height: calc(100dvh - 90px);
  display: flex;
  flex-direction: column;
}
.search-input-line { flex: 0 0 auto; }
.search-input-line > span { color: #9a7a55; font-size: 26px; line-height: 1; }
.search-input-line button {
  flex: 0 0 auto;
  border: 0;
  background: #f2f3f5;
  color: #5d6879;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 15px;
  cursor: pointer;
}
.search-input-line button:hover { background: #e8eaee; color: #1d1d1f; }
.search-results {
  flex: 1 1 auto;
  min-height: 120px;
  max-height: 430px;
  overflow: auto;
  padding: 10px;
}
.search-results .result-item {
  width: 100%;
  background: #fff;
  border: 0;
  text-align: left;
  padding: 13px 14px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.search-results .result-item > span:first-child { min-width: 0; }
.search-results .result-item b { display: block; color: #17243a; font-size: 12.5px; }
.search-results .result-item small {
  display: block;
  color: #7d8795;
  font-size: 10.5px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-results .result-item > span:last-child { color: #a57b54; flex: none; }
.search-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-top: 1px solid #eceef2;
  color: #7c8796;
  font-size: 10.5px;
}
.search-foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.search-foot kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 2px 5px;
  border: 1px solid #dfe3e8;
  border-radius: 4px;
  background: #f8f9fb;
  color: #5f6a79;
  font: 700 9px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.search-foot button {
  flex: none;
  border: 0;
  background: transparent;
  color: #b45f3d;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 0;
  cursor: pointer;
  white-space: nowrap;
}
.search-foot button:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .search-overlay { padding-top: 8vh; }
  .search-foot { justify-content: flex-end; padding: 10px 14px; }
  .search-foot span { display: none; }
  .search-results { max-height: 55vh; }
}

/* Slides and galleries — one photo at a time, every control labelled */
.stage-viewport { position: relative; }
.stage-slide { display: none; }
.stage-slide.is-active { display: grid; }
.stage-kicker {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #8c6640;
}
.stage-copy h1,
.stage-copy h3 {
  font-family: 'Manrope', sans-serif; font-weight: 800; letter-spacing: -1.4px;
  line-height: 1.05; color: #0a2540; margin: 10px 0 12px;
}
.stage-copy h3 { font-size: clamp(28px, 3vw, 44px); }
.stage-copy p { margin: 0; color: #3a3a3f; font-size: 16px; line-height: 1.6; }
.stage-copy em { color: #b89c5e; font-style: normal; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.stage-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 16px; flex-wrap: wrap;
}
.stage-nav, .stage-dot {
  border: 1px solid #e5e5e7; background: #fff; color: #0a2540;
  border-radius: 999px; font-weight: 700; cursor: pointer;
}
.stage-nav { padding: 10px 16px; font-size: 13px; }
.stage-nav:hover, .stage-dot:hover { border-color: #b89c5e; }
.stage-dots { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.stage-dot { min-height: 36px; padding: 0 12px; font-size: 12px; }
.stage-dot.is-active { background: #0a2540; color: #fff; border-color: #0a2540; }
.stage-slide.is-active { animation: stageFade .55s ease; }
.stage-slide.is-active .stage-photo img { animation: stageKen .5s linear forwards; }
@keyframes stageFade { from { opacity: .45; } to { opacity: 1; } }
@keyframes stageKen { from { transform: scale(1.04); } to { transform: scale(1); } }
.cine-stage img { animation: stageKen .55s ease; }

.stage-hero { position: relative; background: #f5f5f7; }
.stage-hero .stage-viewport { position: relative; min-height: 0; overflow: hidden; }
.stage-hero .stage-slide { position: relative; min-height: 0; background: #f5f5f7; }
.stage-hero .stage-slide.is-active {
  display: block;
  min-height: 520px;
}
.stage-hero .stage-photo {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  left: calc(max(36px, (100vw - 1200px) / 2) + 560px);
  overflow: hidden;
  background: #e8e6e1;
}
.stage-hero .stage-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.stage-hero .stage-copy {
  position: relative; z-index: 2;
  width: min(520px, calc(100vw - 96px));
  max-width: 520px;
  min-height: 520px;
  margin: 0 0 0 max(36px, calc((100vw - 1200px) / 2));
  padding: 48px 28px 48px 0;
  display: flex; flex-direction: column; justify-content: center;
  background: transparent; border-radius: 0; box-shadow: none;
}
.stage-hero .stage-copy h1 { font-size: clamp(40px, 4.6vw, 64px); letter-spacing: -2px; }
.stage-hero .stage-bar {
  position: relative; z-index: 5;
  width: 100%; margin: 0;
  padding: 14px max(36px, calc((100vw - 1200px) / 2));
  justify-content: flex-start;
  background: #fff; border-bottom: 1px solid #e5e5e7; border-top: 1px solid #e5e5e7;
}

.stage-split .stage-slide.is-active {
  grid-template-columns: 1.15fr .9fr; min-height: 440px; background: #fff;
  border: 1px solid #e5e5e7; border-radius: 28px; overflow: hidden;
}
.stage-split .stage-photo { min-height: 280px; background: #e8e6e1; }
.stage-split .stage-photo img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; display: block; }
.stage-split .stage-copy { padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; }
.stage-quote .stage-copy p { font-size: 18px; line-height: 1.55; }

.cine { display: grid; grid-template-columns: 1.45fr .85fr; gap: 16px; align-items: stretch; }
.cine-stage {
  position: relative; margin: 0; min-height: 520px; border-radius: 28px;
  overflow: hidden; background: #0a2540;
}
.cine-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cine-stage figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(255,255,255,.95); color: #1d1d1f; border-radius: 18px; padding: 16px 18px;
}
.cine-kicker { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #8c6640; }
.cine-stage h3 { margin: 6px 0; font: 800 26px/1.15 'Manrope', sans-serif; color: #0a2540; }
.cine-stage p { margin: 0 0 10px; color: #3a3a3f; font-size: 14px; line-height: 1.5; }
.cine-stage a { font-weight: 800; color: #c35f3a; font-size: 14px; }
.cine-rail { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow: auto; padding-right: 2px; }
.cine-item {
  display: grid; grid-template-columns: 86px 1fr; gap: 12px; text-align: left;
  background: #fff; border: 1px solid #e5e5e7; border-radius: 16px; padding: 8px; cursor: pointer;
}
.cine-item.is-active { border-color: #b89c5e; box-shadow: 0 12px 28px -18px rgba(10,37,64,.45); }
.cine-item img { width: 86px; height: 72px; object-fit: cover; border-radius: 12px; }
.cine-item b { display: block; color: #1d1d1f; font-size: 14px; }
.cine-item small { display: block; color: #6e6e73; font-size: 12px; line-height: 1.4; margin-top: 3px; }
.cine-note { margin: 12px 0 0; color: #6e6e73; font-size: 12px; }

.page-hero-split {
  background: #f5f5f7 !important; color: #1d1d1f; padding: 28px 0;
}
.page-hero-split:after { display: none; }
.page-hero-split h1, .page-hero-split p { color: #1d1d1f; max-width: none; }
.page-hero-split h1 { margin: 12px 0 10px; }
.page-hero-split p { color: #4a4a4f; }
.page-hero-split .breadcrumb, .page-hero-split .breadcrumb a { color: #8c6640; }
.page-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px; align-items: center;
}
.page-hero-grid > div:first-child { min-width: 0; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.page-hero-photo { margin: 0; background: #fff; border: 1px solid #e5e5e7; border-radius: 24px; overflow: hidden; }
.page-hero-photo img { width: 100%; height: 320px; object-fit: cover; object-position: center; display: block; }
.page-hero-photo figcaption { padding: 12px 16px 14px; font-size: 13px; font-weight: 700; color: #1d1d1f; }

.program-card { padding: 0 0 18px; overflow: hidden; }
.program-photo { width: 100%; height: 148px; object-fit: cover; display: block; background: #eceae4; }
.program-card .program-number,
.program-card h3,
.program-card p,
.program-card .program-links { margin-left: 16px; margin-right: 16px; }
.program-card .program-number { margin-top: 14px; }

.directory-grid { align-items: stretch; }
.directory-item { padding: 0 0 16px; overflow: hidden; display: flex; flex-direction: column; }
.dir-photo { width: 100%; height: 168px; object-fit: cover; display: block; background: #eceae4; }
.directory-item small, .directory-item h3, .directory-item p, .directory-item .dir-actions {
  margin-left: 16px; margin-right: 16px;
}
.directory-item small { margin-top: 14px; }
.directory-item .dir-actions { margin-top: auto; flex-wrap: wrap; gap: 8px; }
.directory-item .dir-actions button {
  background: none; border: 0; padding: 0; color: var(--orange); font-weight: 700; font-size: 12px;
}
.directory-empty { grid-column: 1 / -1; }

.resource-card { align-items: center; }
.resource-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; flex: 0 0 72px; }
.resource-copy { flex: 1; min-width: 0; }
.resource-copy b { display: block; }
.resource-card strong { flex: 0 0 auto; white-space: nowrap; }

.page-gallery-block { margin-top: 28px; }
.page-gallery-block h2 { font: 800 28px/1.15 'Manrope', sans-serif; color: #0a2540; margin: 0 0 6px; }
.page-gallery-block > p { color: #6e6e73; margin: 0 0 14px; }
.ai-side img { width: 100%; height: 132px; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 12px; }

.mobile-menu { width: auto; padding: 0 12px; font-size: 12px; font-weight: 700; }
.search-input-line button, #aiClose, .chat-form button {
  width: auto; min-height: 36px; padding: 0 12px; font-size: 12px; font-weight: 700;
}
#aiClose { border: 1px solid #e5e5e7; background: #fff; border-radius: 999px; color: #0a2540; }

#looking-for h2 { color: #0a2540; font-family: 'Manrope', sans-serif; }
#looking-for .grid > div {
  background: #fff; border: 1px solid #e5e5e7; border-radius: 20px; padding: 22px 20px; color: #1d1d1f;
}
#looking-for .grid > div > div { color: #0a2540; font-weight: 800; font-size: 18px; }
#looking-for .grid a, #looking-for .grid button {
  color: #1d1d1f; background: none; border: 0; padding: 0; font-size: 14px; text-align: left;
}
#looking-for .grid li { margin: 8px 0; }

@media (max-width: 860px) {
  .stage-hero .stage-slide.is-active { min-height: 0; display: flex; flex-direction: column; }
  .stage-hero .stage-photo {
    position: relative; left: auto; right: auto; top: auto; bottom: auto;
    width: 100%; height: 230px; order: -1;
  }
  .stage-hero .stage-copy {
    width: calc(100% - 40px); max-width: none; min-height: 0;
    margin: 0 auto; padding: 24px 0 8px;
  }
  .stage-hero .stage-copy h1 { font-size: 36px; }
  .stage-hero .stage-bar {
    width: 100%; padding: 12px 20px 16px; flex-wrap: wrap;
  }
  .stage-hero .stage-dots { flex-basis: 100%; order: 3; justify-content: flex-start; padding-right: 76px; }
  .stage-hero [data-stage-next] { margin-left: auto; }
  .stage-split .stage-slide.is-active,
  .cine,
  .page-hero-grid,
  .page-content-layout,
  .directory-grid { grid-template-columns: 1fr; }
  .stage-split .stage-photo img { min-height: 240px; }
  .cine-stage { min-height: 420px; }
  .cine-rail { max-height: none; }
  .program-grid { grid-template-columns: 1fr; }
}

/* Preserve Quill/WYSIWYG alignment and indentation in published articles. */
.article-body .ql-align-center { text-align: center; }
.article-body .ql-align-right { text-align: right; }
.article-body .ql-align-justify { text-align: justify; }
.article-body .ql-indent-1 { margin-left: 1.5em; }
.article-body .ql-indent-2 { margin-left: 3em; }
.article-body .ql-indent-3 { margin-left: 4.5em; }
.article-body .ql-indent-4 { margin-left: 6em; }

/* ============================================================
   Cyberpunk neon vibe (optional Theme Studio preset)
   ============================================================ */
body[data-vibe="cyberpunk"]{
  --cp-bg:#05010f;--cp-panel:#0b0620;--cp-panel-2:#100a26;--cp-line:#2b1b4d;
  --cp-cyan:#05d9e8;--cp-pink:#ff2a6d;--cp-text:#e8f7ff;--cp-muted:#9eb6c9;
  /* Override the day palette so any variable-driven section turns neon too. */
  --navy:#0a0618;--dark:#05010f;--ink:#e8f7ff;--orange:#ff2a6d;--gold:#05d9e8;--cream:#0b0620;
  --bg:#05010f;--bg-alt:#0b0620;--bg-subtle:#080414;--text:#e8f7ff;--text-2:#9eb6c9;
  --border:#2b1b4d;--border-light:#1a1130;
  background:var(--cp-bg);color:var(--cp-text);
}
body[data-vibe="cyberpunk"] .utility{background:#03000a;color:#9fb6c9;border-bottom:1px solid #1a1130}
body[data-vibe="cyberpunk"] .site-header{background:rgba(5,1,15,.92);border-bottom:1px solid #251641;backdrop-filter:blur(18px)}
body[data-vibe="cyberpunk"] .brand-type b,
body[data-vibe="cyberpunk"] .nav-btn{color:#e8f7ff}
body[data-vibe="cyberpunk"] .nav-btn:hover,
body[data-vibe="cyberpunk"] .nav-btn.active{background:#ff2a6d14;color:#05d9e8}
body[data-vibe="cyberpunk"] .nav-dropdown{background:#0b0620;border-color:#2b1b4d;box-shadow:0 24px 60px #000a,0 0 0 1px #05d9e822}
body[data-vibe="cyberpunk"] .nav-dropdown b{color:#e8f7ff}
body[data-vibe="cyberpunk"] .nav-dropdown a{color:#b9c9d9}
body[data-vibe="cyberpunk"] .nav-dropdown a:hover{background:#05d9e812;color:#05d9e8}
body[data-vibe="cyberpunk"] .header-search{background:#0b0620;border-color:#2b1b4d;color:#9eb6c9}
body[data-vibe="cyberpunk"] .agent-header{background:linear-gradient(135deg,#ff2a6d,#a8105c);box-shadow:0 0 22px #ff2a6d55}
body[data-vibe="cyberpunk"] .hero{background:radial-gradient(ellipse at 20% 10%,#ff2a6d22,transparent 38%),radial-gradient(ellipse at 85% 20%,#05d9e822,transparent 38%),linear-gradient(120deg,#05010f,#0b0620 70%,#05010f)}
body[data-vibe="cyberpunk"] .hero:before{background-image:linear-gradient(#05d9e80a 1px,transparent 1px),linear-gradient(90deg,#05d9e80a 1px,transparent 1px);background-size:44px 44px;opacity:.7}
body[data-vibe="cyberpunk"] .hero:after{background:radial-gradient(circle at 18% 24%,#ff2a6d33,transparent 26%),radial-gradient(circle at 82% 12%,#05d9e82e,transparent 22%)}
body[data-vibe="cyberpunk"] .hero h1{color:#fff;text-shadow:0 0 34px #ff2a6d22}
body[data-vibe="cyberpunk"] .hero h1 em{color:#05d9e8;text-shadow:0 0 26px #05d9e877}
body[data-vibe="cyberpunk"] .hero-desc,
body[data-vibe="cyberpunk"] .hero-note,
body[data-vibe="cyberpunk"] .section-description{color:#9eb6c9}
body[data-vibe="cyberpunk"] .hero-photo{background-image:linear-gradient(130deg,#ff2a6d55,#05d9e844),url('../media/apm/APM1.jpg');box-shadow:0 0 0 1px #05d9e833,0 32px 70px #0008}
body[data-vibe="cyberpunk"] .hero-photo-title{color:#e8f7ff;text-shadow:0 0 18px #ff2a6d}
body[data-vibe="cyberpunk"] .hero-stamp,
body[data-vibe="cyberpunk"] .hero-ai-card{background:#0b0620;color:#e8f7ff;border:1px solid #2b1b4d;box-shadow:0 0 0 1px #05d9e81f,0 24px 50px #0008}
body[data-vibe="cyberpunk"] .hero-stamp small,
body[data-vibe="cyberpunk"] .hero-ai-card small,
body[data-vibe="cyberpunk"] .hero-ai-card p{color:#9eb6c9}
body[data-vibe="cyberpunk"] .hero-ai-card .ai-mini{background:#ff2a6d1a;color:#ff7aa2}
body[data-vibe="cyberpunk"] .hero-ai-card button{background:#05d9e81a;color:#05d9e8}
body[data-vibe="cyberpunk"] .signal{background:#0b0620;border-color:#2b1b4d}
body[data-vibe="cyberpunk"] .signal-label,
body[data-vibe="cyberpunk"] .signal-link,
body[data-vibe="cyberpunk"] .signal-content{color:#9eb6c9}
body[data-vibe="cyberpunk"] .signal-content strong{color:#e8f7ff}
body[data-vibe="cyberpunk"] .section,
body[data-vibe="cyberpunk"] .section-offwhite,
body[data-vibe="cyberpunk"] .section-beige{background:#05010f}
body[data-vibe="cyberpunk"] .section-title,
body[data-vibe="cyberpunk"] .program-card h3,
body[data-vibe="cyberpunk"] .directory-item h3,
body[data-vibe="cyberpunk"] .event-body h3,
body[data-vibe="cyberpunk"] .page-hero h1{color:#e8f7ff}
body[data-vibe="cyberpunk"] .section-title em{color:#05d9e8;text-shadow:0 0 22px #05d9e866}
body[data-vibe="cyberpunk"] .eyebrow{color:#ff7aa2}
body[data-vibe="cyberpunk"] .quick-card,
body[data-vibe="cyberpunk"] .program-card,
body[data-vibe="cyberpunk"] .event-card,
body[data-vibe="cyberpunk"] .resource-card,
body[data-vibe="cyberpunk"] .directory-item,
body[data-vibe="cyberpunk"] .side-panel,
body[data-vibe="cyberpunk"] .page-ai-panel{
  background:#0b0620;border-color:#2b1b4d;color:#cfe9f5;box-shadow:0 0 0 1px #05d9e80d,0 14px 34px #0006
}
body[data-vibe="cyberpunk"] .quick-card:hover,
body[data-vibe="cyberpunk"] .program-card:hover,
body[data-vibe="cyberpunk"] .event-card:hover,
body[data-vibe="cyberpunk"] .resource-card:hover,
body[data-vibe="cyberpunk"] .directory-item:hover{border-color:#05d9e866;box-shadow:0 0 26px #05d9e822,0 18px 38px #0007}
body[data-vibe="cyberpunk"] .quick-card b,
body[data-vibe="cyberpunk"] .event-body h3,
body[data-vibe="cyberpunk"] .resource-card b,
body[data-vibe="cyberpunk"] .directory-item h3{color:#e8f7ff}
body[data-vibe="cyberpunk"] .quick-card .description,
body[data-vibe="cyberpunk"] .program-card p,
body[data-vibe="cyberpunk"] .event-body p,
body[data-vibe="cyberpunk"] .resource-card p,
body[data-vibe="cyberpunk"] .directory-item p{color:#9eb6c9}
body[data-vibe="cyberpunk"] .quick-icon{background:#ff2a6d18;color:#ff7aa2}
body[data-vibe="cyberpunk"] .program-number{color:#05d9e8}
body[data-vibe="cyberpunk"] .program-card .program-symbol{color:#2b1b4d}
body[data-vibe="cyberpunk"] .program-links{border-color:#1e1438}
body[data-vibe="cyberpunk"] .program-links a,
body[data-vibe="cyberpunk"] .program-links button,
body[data-vibe="cyberpunk"] .inline-action,
body[data-vibe="cyberpunk"] .text-link{color:#05d9e8}
body[data-vibe="cyberpunk"] .btn-primary{background:linear-gradient(135deg,#ff2a6d,#a8105c);box-shadow:0 0 26px #ff2a6d55}
body[data-vibe="cyberpunk"] .btn-ghost{border-color:#05d9e855;color:#05d9e8;background:#05d9e80d}
body[data-vibe="cyberpunk"] .ai-band{background:linear-gradient(135deg,#0b0620,#150a2e);border-top:1px solid #2b1b4d;border-bottom:1px solid #2b1b4d}
body[data-vibe="cyberpunk"] .ai-feature{background:#ffffff08;border-color:#2b1b4d}
body[data-vibe="cyberpunk"] .news-list a{border-color:#1e1438}
body[data-vibe="cyberpunk"] .news-list h4{color:#e8f7ff}
body[data-vibe="cyberpunk"] .news-list small{color:#9eb6c9}
body[data-vibe="cyberpunk"] .footer{background:#03000a;border-top:1px solid #1a1130}
body[data-vibe="cyberpunk"] .footer h2,
body[data-vibe="cyberpunk"] .footer h4{color:#e8f7ff}
body[data-vibe="cyberpunk"] .footer h2 em{color:#05d9e8}
body[data-vibe="cyberpunk"] .footer p,
body[data-vibe="cyberpunk"] .footer-link-col a{color:#9eb6c9}
body[data-vibe="cyberpunk"] .footer-ai{background:#0b0620;border-color:#2b1b4d}
body[data-vibe="cyberpunk"] .page-hero{background:radial-gradient(ellipse at 80% 10%,#ff2a6d22,transparent 40%),linear-gradient(120deg,#05010f,#0b0620)}
body[data-vibe="cyberpunk"] .page-hero p,
body[data-vibe="cyberpunk"] .breadcrumb{color:#9eb6c9}
body[data-vibe="cyberpunk"] .source-note,
body[data-vibe="cyberpunk"] .content-status{background:#0b0620;border-color:#2b1b4d;color:#9eb6c9}
body[data-vibe="cyberpunk"] .article-body{color:#cfe9f5}
body[data-vibe="cyberpunk"] .article-body h2,
body[data-vibe="cyberpunk"] .article-body h3{color:#e8f7ff}
body[data-vibe="cyberpunk"] .search-panel,
body[data-vibe="cyberpunk"] .search-input-line,
body[data-vibe="cyberpunk"] .search-foot{background:#0b0620;border-color:#2b1b4d}
body[data-vibe="cyberpunk"] .search-input-line input{background:transparent;color:#e8f7ff}
body[data-vibe="cyberpunk"] .result-item{background:#0b0620;color:#cfe9f5}
body[data-vibe="cyberpunk"] .result-item:hover,
body[data-vibe="cyberpunk"] .result-item.selected{background:#05d9e812}
body[data-vibe="cyberpunk"] .result-item b{color:#e8f7ff}
body[data-vibe="cyberpunk"] .result-item small{color:#9eb6c9}
body[data-vibe="cyberpunk"] .search-input-line button{background:#150a2e;color:#9eb6c9}
body[data-vibe="cyberpunk"] .cookie-card{background:#0b0620f2;border-color:#05d9e855;box-shadow:0 0 0 1px #ff2a6d22,0 24px 60px #000a;color:#e8f7ff}
body[data-vibe="cyberpunk"] .cookie-card p{color:#9eb6c9}
body[data-vibe="cyberpunk"] .cookie-accept{background:#ff2a6d;color:#fff;box-shadow:0 0 18px #ff2a6d55}
body[data-vibe="cyberpunk"] .cookie-decline{border-color:#05d9e855;color:#05d9e8}

/* ============================================================
   Cookie consent card
   ============================================================ */
.cookie-card{
  position:fixed;left:22px;bottom:22px;z-index:95;width:min(400px,calc(100vw - 32px));
  display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;align-items:start;
  padding:16px;border:1px solid #e2e7ee;border-radius:14px;background:#fffffff2;
  color:#1d1d1f;box-shadow:0 20px 60px #0a25401f;backdrop-filter:blur(18px);
  font-size:11.5px;line-height:1.6;
}
.cookie-card[hidden]{display:none!important}
.cookie-icon{
  width:36px;height:36px;border-radius:11px;display:grid;place-items:center;
  background:#0a254012;color:#9a6a3f;font-size:20px;
}
.cookie-copy b{display:block;font-size:12.5px;line-height:1.4;margin-bottom:3px;color:#17243a}
.cookie-copy p{margin:0;color:#6e7887;font-size:11px;line-height:1.65}
.cookie-copy a{color:#a45a36;font-weight:700;text-decoration:underline}
.cookie-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:7px;margin-top:2px}
.cookie-actions button{
  border-radius:8px;padding:8px 12px;font-size:10.5px;font-weight:800;cursor:pointer;
  border:1px solid transparent;
}
.cookie-accept{background:#0a2540;color:#fff}
.cookie-accept:hover{background:#12345a}
.cookie-decline{background:transparent;border-color:#d9dfe7;color:#5e6b7c}
.cookie-decline:hover{background:#f5f6f8}
@media(max-width:640px){
  .cookie-card{left:12px;right:12px;bottom:82px;width:auto;max-width:none;padding:14px}
  .cookie-actions button{flex:1}
}


/* Day / Night switch for the neon theme. */
.vibe-toggle{
  display:inline-flex;align-items:center;gap:6px;border:1px solid #e2e6ec;background:#fff;color:#34445b;
  border-radius:999px;padding:9px 12px;font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.vibe-toggle:hover{border-color:#c8d0da;background:#f7f8fa}
.vibe-toggle .vibe-sun{display:none;font-size:13px;line-height:1}
.vibe-toggle .vibe-moon{display:inline;font-size:13px;line-height:1}
.vibe-toggle .vibe-label{font-size:10px;font-weight:800;letter-spacing:.04em}
body[data-vibe="cyberpunk"] .vibe-toggle{background:#0b0620;border-color:#2b1b4d;color:#05d9e8;box-shadow:0 0 18px #05d9e822}
body[data-vibe="cyberpunk"] .vibe-toggle:hover{background:#100a26;border-color:#05d9e866}
body[data-vibe="cyberpunk"] .vibe-toggle .vibe-sun{display:inline}
body[data-vibe="cyberpunk"] .vibe-toggle .vibe-moon{display:none}
@media(max-width:720px){
  .vibe-toggle{padding:9px 10px;gap:0}
  .vibe-toggle .vibe-label{display:none}
}

/* Cyberpunk coverage for the newer stage/slider homepage components. */
body[data-vibe="cyberpunk"] .stage-hero,
body[data-vibe="cyberpunk"] .stage-hero .stage-slide,
body[data-vibe="cyberpunk"] .stage-hero .stage-slide.is-active,
body[data-vibe="cyberpunk"] .stage-split .stage-slide.is-active,
body[data-vibe="cyberpunk"] .stage-split .stage-copy{
  background:#05010f !important;
}
body[data-vibe="cyberpunk"] .stage-copy h1,
body[data-vibe="cyberpunk"] .stage-copy h3,
body[data-vibe="cyberpunk"] .stage-copy strong{color:#e8f7ff !important}
body[data-vibe="cyberpunk"] .stage-copy p,
body[data-vibe="cyberpunk"] .stage-copy small{color:#9eb6c9 !important}
body[data-vibe="cyberpunk"] .stage-copy em{color:#05d9e8 !important;text-shadow:0 0 18px #05d9e866}
body[data-vibe="cyberpunk"] .stage-kicker{color:#ff7aa2 !important}
body[data-vibe="cyberpunk"] .stage-bar{
  background:#0b0620 !important;border-color:#2b1b4d !important;
}
body[data-vibe="cyberpunk"] .stage-nav,
body[data-vibe="cyberpunk"] .stage-dot{
  background:#0b0620 !important;border-color:#2b1b4d !important;color:#9eb6c9 !important;
}
body[data-vibe="cyberpunk"] .stage-nav:hover,
body[data-vibe="cyberpunk"] .stage-dot:hover{border-color:#05d9e8 !important;color:#05d9e8 !important}
body[data-vibe="cyberpunk"] .stage-dot.is-active{
  background:#ff2a6d !important;border-color:#ff2a6d !important;color:#fff !important;
  box-shadow:0 0 18px #ff2a6d55 !important;
}
body[data-vibe="cyberpunk"] .stage-hero .stage-photo::after,
body[data-vibe="cyberpunk"] .stage-split .stage-photo::after{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(125deg,#ff2a6d33,#05d9e833);
  mix-blend-mode:screen;
}
body[data-vibe="cyberpunk"] .bg-white,
body[data-vibe="cyberpunk"] .bg-gray-50,
body[data-vibe="cyberpunk"] .bg-gray-100,
body[data-vibe="cyberpunk"] .bg-slate-50{
  background:#0b0620 !important;color:#cfe9f5 !important;
}
body[data-vibe="cyberpunk"] .border{border-color:#2b1b4d !important}
body[data-vibe="cyberpunk"] .text-\[\#0a2540\],
body[data-vibe="cyberpunk"] .text-gray-900,
body[data-vibe="cyberpunk"] .text-gray-600{color:#e8f7ff !important}
body[data-vibe="cyberpunk"] .heading-font{color:#e8f7ff}
body[data-vibe="cyberpunk"] .rounded-2xl{background-color:#0b0620}
body[data-vibe="cyberpunk"] .resource-card,
body[data-vibe="cyberpunk"] .slide-card,
body[data-vibe="cyberpunk"] .cine-card{background:#0b0620 !important;border-color:#2b1b4d !important;color:#cfe9f5 !important}

/* Mobile header: keep brand, day/night, search and menu on one row. */
@media (max-width: 760px) {
  .header-inner { height: auto; min-height: 72px; padding: 10px 0; gap: 8px; flex-wrap: nowrap; }
  .brand { min-width: 0; flex: 1 1 auto; max-width: calc(100% - 150px); gap: 7px; }
  .brand-symbol { width: 36px; height: 40px; flex: none; }
  .brand-type b { font-size: 9.5px; line-height: 1.18; letter-spacing: .35px; }
  .brand-type small { font-size: 7.5px; letter-spacing: .8px; margin-top: 4px; }
  .header-actions { flex: none; gap: 6px; flex-wrap: nowrap; }
  .header-search { width: 36px; height: 36px; padding: 0; justify-content: center; flex: none; }
  .header-search span:not(.search-icon), .header-search kbd { display: none; }
  .agent-header { display: none; }
  .vibe-toggle { width: 36px; height: 36px; padding: 0; justify-content: center; flex: none; }
  .vibe-toggle .vibe-label { display: none; }
  .mobile-menu { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; flex: none; }
}
html{overflow-x:hidden}

body[data-vibe="cyberpunk"] .cookie-card .cookie-copy b{color:#e8f7ff!important}
body[data-vibe="cyberpunk"] .cookie-card .cookie-copy p{color:#9eb6c9!important}

/* ============================================================
   Cyberpunk globe menu — a compact AINNA-style network launcher
   ============================================================ */
.apm-globe{
  position:fixed;left:50%;bottom:22px;transform:translateX(-50%);
  z-index:97;display:flex;flex-direction:column;align-items:center;
}
.apm-globe-btn{
  position:relative;width:62px;height:62px;border-radius:50%;padding:0;
  border:1px solid #05d9e866;background:radial-gradient(circle at 40% 35%,#16335c,#070312 70%);
  box-shadow:0 0 0 1px #ff2a6d22,0 0 28px #05d9e833,0 12px 32px #0008;
  display:grid;place-items:center;cursor:pointer;transition:transform .25s ease,box-shadow .25s ease;
}
.apm-globe-btn:hover{transform:translateY(-2px);box-shadow:0 0 0 1px #ff2a6d44,0 0 34px #05d9e855,0 16px 38px #0009}
.apm-globe-btn img{
  width:34px;height:34px;border-radius:50%;object-fit:cover;display:block;
  filter:saturate(1.25) drop-shadow(0 0 7px #05d9e8aa);animation:apmGlobePulse 3.5s ease-in-out infinite;
}
.apm-globe-orbit{
  position:absolute;inset:-7px;border-radius:50%;border:1px dashed #05d9e888;
  animation:apmGlobeSpin 16s linear infinite;
}
.apm-globe-orbit::before,.apm-globe-orbit::after{
  content:'';position:absolute;width:5px;height:5px;border-radius:50%;background:#ff2a6d;
  box-shadow:0 0 10px #ff2a6d;top:-3px;left:50%;transform:translateX(-50%);
}
.apm-globe-orbit::after{top:auto;bottom:-3px;background:#05d9e8;box-shadow:0 0 10px #05d9e8}
.apm-globe-label{
  position:absolute;bottom:-17px;left:50%;transform:translateX(-50%);
  color:#05d9e8;font:800 7.5px/1 system-ui,sans-serif;letter-spacing:.22em;white-space:nowrap;
}
.apm-globe.is-open .apm-globe-btn{border-color:#ff2a6d;box-shadow:0 0 0 1px #ff2a6d55,0 0 36px #ff2a6d44}
.apm-globe-panel{
  position:absolute;z-index:98;bottom:76px;left:50%;transform:translateX(-50%);
  width:min(680px,calc(100vw - 28px));max-height:min(78vh,680px);overflow:auto;
  padding:18px;border:1px solid #05d9e855;border-radius:16px;
  background:radial-gradient(circle at 100% 0%,#ff2a6d1a,transparent 42%),radial-gradient(circle at 0% 100%,#05d9e81a,transparent 42%),#070312f5;
  color:#e8f7ff;box-shadow:0 0 0 1px #ff2a6d22,0 30px 80px #000b;
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
}
.apm-globe-panel[hidden]{display:none!important}
.apm-globe-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid #2b1b4d}
.apm-globe-head>span{font:800 10px/1.2 system-ui,sans-serif;letter-spacing:.2em;color:#05d9e8}
.apm-globe-head button{border:1px solid #2b1b4d;background:#0b0620;color:#9eb6c9;border-radius:6px;width:27px;height:27px;cursor:pointer}
.apm-globe-head button:hover{border-color:#ff2a6d;color:#ff7aa2}
.apm-globe-sub{margin:9px 0 12px;color:#9eb6c9;font-size:10.5px;line-height:1.6}
.apm-globe-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.apm-globe-grid a{
  display:flex;align-items:center;gap:10px;padding:10px 11px;text-decoration:none;
  border:1px solid #2b1b4d;border-radius:8px;background:#0b0620cc;color:#cfe9f5;
  font-size:11px;font-weight:700;line-height:1.35;transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.apm-globe-grid a:hover{border-color:#05d9e866;background:#120a2b;box-shadow:0 0 18px #05d9e822}
.apm-globe-grid a b{color:#ff2a6d;font-size:8.5px;letter-spacing:.08em;flex:none}
.apm-globe-grid a span{min-width:0}
.apm-globe-foot{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:13px;padding-top:11px;border-top:1px solid #2b1b4d}
.apm-globe-foot a{color:#05d9e8;font-size:10px;font-weight:800;text-decoration:none}
.apm-globe-foot a:hover{color:#ff7aa2;text-decoration:underline}
@keyframes apmGlobeSpin{to{transform:rotate(360deg)}}
@keyframes apmGlobePulse{50%{filter:saturate(1.45) drop-shadow(0 0 12px #05d9e8)}}
@media(max-width:640px){
  .apm-globe{bottom:18px}
  .apm-globe-btn{width:52px;height:52px}
  .apm-globe-btn img{width:28px;height:28px}
  .apm-globe-label{bottom:-15px;font-size:6.5px}
  .apm-globe-panel{bottom:66px;max-height:70vh;padding:14px}
  .apm-globe-grid{grid-template-columns:1fr}
  .apm-globe-grid a{padding:9px 10px}
}
@media(prefers-reduced-motion:reduce){
  .apm-globe-orbit,.apm-globe-btn img{animation:none!important}
}

/* Night contrast for the newer "Saya Mencari" cards and resource cards. */
body[data-vibe="cyberpunk"] #looking-for h2{color:#e8f7ff!important}
body[data-vibe="cyberpunk"] #looking-for > .container > p{color:#9eb6c9!important}
body[data-vibe="cyberpunk"] #looking-for .grid > div{
  background:#0b0620!important;border-color:#2b1b4d!important;color:#cfe9f5!important;
  box-shadow:0 0 0 1px #05d9e80d,0 14px 30px #0006;
}
body[data-vibe="cyberpunk"] #looking-for .grid > div:hover{
  border-color:#05d9e866!important;box-shadow:0 0 24px #05d9e822,0 18px 34px #0007;
}
body[data-vibe="cyberpunk"] #looking-for .grid > div > div{color:#e8f7ff!important}
body[data-vibe="cyberpunk"] #looking-for .grid a,
body[data-vibe="cyberpunk"] #looking-for .grid button{color:#b9d3e2!important}
body[data-vibe="cyberpunk"] #looking-for .grid a:hover,
body[data-vibe="cyberpunk"] #looking-for .grid button:hover{color:#05d9e8!important}
body[data-vibe="cyberpunk"] .resource-card{background:#0b0620!important;border-color:#2b1b4d!important}
body[data-vibe="cyberpunk"] .resource-card b{color:#e8f7ff!important}
body[data-vibe="cyberpunk"] .resource-card p{color:#9eb6c9!important}
body[data-vibe="cyberpunk"] .resource-card strong{color:#05d9e8!important}
body[data-vibe="cyberpunk"] .resource-card span{color:#ff7aa2!important}
body[data-vibe="cyberpunk"] .cta-row p{color:#9eb6c9!important}
