:root {
  --navy: #214b86;
  --navy-dark: #14345f;
  --green: #5c7800;
  --green-deep: #345900;
  --lime: #a4bd37;
  --gold: #f4c542;
  --ink: #15304d;
  --muted: #5a6a77;
  --white: #ffffff;
  --surface: rgba(255, 255, 255, 0.89);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --border: rgba(69, 111, 82, 0.18);
  --shadow: 0 18px 50px rgba(29, 62, 47, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef6ec url("riacs-background.webp") top center / cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(247, 252, 245, .26), rgba(238, 248, 236, .72)),
    radial-gradient(circle at top right, rgba(164, 189, 55, .12), transparent 36%);
}

.background-wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(1.5px);
}

.site-shell {
  width: min(900px, calc(100% - 30px));
  margin: 0 auto;
  padding: 38px 0 60px;
}

.glass-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(24px, 5vw, 48px);
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -145px;
  bottom: -170px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(164, 189, 55, .26), rgba(33, 75, 134, .08));
  pointer-events: none;
}

.brand-wrap {
  width: min(730px, 100%);
  margin: 0 auto 18px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(89, 117, 46, .12);
}

.riacs-logo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 6vw, 4.1rem);
  line-height: .98;
  letter-spacing: -.05em;
  color: var(--navy-dark);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  color: var(--navy-dark);
}

.hero-copy {
  width: min(650px, 100%);
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 22px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(33, 75, 134, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: var(--navy-dark);
  font-size: .88rem;
  font-weight: 750;
}

.countdown-card {
  width: min(560px, 100%);
  margin: 0 auto 22px;
  padding: 15px 18px 17px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  box-shadow: 0 12px 26px rgba(33, 75, 134, .22);
}

.countdown-label {
  margin-bottom: 10px;
  color: rgba(255,255,255,.82);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.countdown div {
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .09);
}

.countdown strong,
.countdown span { display: block; }

.countdown strong {
  font-size: clamp(1.35rem, 5vw, 2.2rem);
  line-height: 1;
}

.countdown span {
  margin-top: 5px;
  color: rgba(255,255,255,.74);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 14px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  box-shadow: 0 12px 22px rgba(69, 102, 0, .22);
}

.button-secondary {
  color: var(--navy-dark);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(33, 75, 134, .15);
}

main {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.section {
  border-radius: var(--radius-xl);
  padding: clamp(22px, 5vw, 36px);
}

.section-heading {
  max-width: 660px;
  margin-bottom: 22px;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.link-card {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .74);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(23, 56, 43, .06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(92, 120, 0, .38);
  box-shadow: 0 14px 26px rgba(23, 56, 43, .11);
}

.link-card.featured {
  color: #fff;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
}

.link-card strong,
.link-card small { display: block; }

.link-card strong {
  margin-bottom: 5px;
  font-size: .98rem;
}

.link-card small {
  color: var(--muted);
  line-height: 1.35;
}

.link-card.featured small { color: rgba(255,255,255,.72); }

.link-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(164, 189, 55, .18);
  font-weight: 900;
}

.link-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(100%);
}

.featured .link-icon { background: rgba(255,255,255,.14); }

.arrow {
  font-size: 1.25rem;
  font-weight: 900;
}

.button-reset {
  appearance: none;
  font: inherit;
}

.timeline {
  position: relative;
  display: grid;
  gap: 12px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 124px;
  width: 2px;
  background: linear-gradient(var(--lime), rgba(33, 75, 134, .2));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 28px;
  align-items: start;
  padding: 15px 17px;
  border-radius: 16px;
  background: rgba(255,255,255,.67);
  border: 1px solid rgba(69, 111, 82, .12);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 117px;
  top: 23px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(92,120,0,.18);
}

.timeline-item time {
  color: var(--navy);
  font-size: .83rem;
  font-weight: 900;
}

.timeline-item strong {
  display: block;
  margin-bottom: 4px;
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: .9rem;
}

.timeline-item.highlight {
  background: linear-gradient(135deg, rgba(164, 189, 55, .18), rgba(33, 75, 134, .08));
  border-color: rgba(92,120,0,.23);
}

.timeline-item.past {
  opacity: .58;
}

.timeline-item.past::after {
  content: "SELESAI";
  position: absolute;
  top: 13px;
  right: 14px;
  color: var(--green);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .09em;
}

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

.track-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.74);
  border: 1px solid var(--border);
}

.track-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.track-badge.blue { background: var(--navy); }
.track-badge.green { background: var(--green); }

.track-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.75;
}

.track-card li::marker { color: var(--lime); }

.award-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 18px;
}

.award-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 28px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(145deg, #214b03, #537500);
}

.award-card::after {
  content: "✦";
  position: absolute;
  right: 20px;
  top: 8px;
  color: rgba(244,197,66,.28);
  font-size: 7rem;
}

.award-kicker {
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.award-card > strong {
  display: block;
  margin: 5px 0 8px;
  color: var(--gold);
  font-size: clamp(3.5rem, 10vw, 6rem);
  line-height: .9;
  letter-spacing: -.07em;
}

.award-card p {
  max-width: 290px;
  color: rgba(255,255,255,.78);
  line-height: 1.5;
}

.award-chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: #244000;
  font-size: .78rem;
  font-weight: 900;
}

.publication-card {
  padding: 25px;
  border-radius: 24px;
  background: rgba(255,255,255,.74);
  border: 1px solid var(--border);
}

.publication-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.publication-list > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border-radius: 16px;
  background: rgba(164, 189, 55, .10);
}

.publication-list span { font-size: 1.8rem; }

.publication-list p,
.publication-list strong,
.publication-list small { display: block; margin: 0; }

.publication-list small {
  margin-top: 3px;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255,255,255,.74);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 56, 43, .1);
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--green));
  font-weight: 900;
}

.contact-card strong,
.contact-card small { display: block; }

.contact-card small {
  margin-top: 3px;
  color: var(--muted);
}

.whatsapp {
  padding: 8px 10px;
  border-radius: 999px;
  color: #116b3b;
  background: #e8f8ee;
  font-size: .75rem;
  font-weight: 900;
}

footer {
  padding: 26px 12px 0;
  text-align: center;
  color: #38536a;
  font-size: .82rem;
  line-height: 1.55;
}

footer p { margin-bottom: 4px; }

.poster-modal {
  width: min(760px, calc(100% - 26px));
  max-height: calc(100vh - 30px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 25px 80px rgba(7, 29, 17, .35);
}

.poster-modal::backdrop {
  background: rgba(12, 31, 24, .72);
  backdrop-filter: blur(5px);
}

.poster-modal img {
  display: block;
  width: 100%;
  height: auto;
}

.modal-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid #e7ece8;
  backdrop-filter: blur(12px);
}

.modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--navy-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  width: min(480px, calc(100% - 30px));
  padding: 12px 16px;
  border-radius: 14px;
  color: #fff;
  background: rgba(20, 52, 95, .96);
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
  text-align: center;
  font-size: .88rem;
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.leaf {
  position: fixed;
  z-index: -1;
  width: 220px;
  height: 220px;
  border-radius: 65% 35% 70% 30%;
  background: rgba(164, 189, 55, .10);
  filter: blur(2px);
  transform: rotate(28deg);
}

.leaf-one { top: 12%; left: -95px; }
.leaf-two { right: -110px; top: 55%; transform: rotate(-35deg); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  body { background-attachment: scroll; }

  .site-shell {
    width: min(100% - 18px, 900px);
    padding-top: 12px;
  }

  .hero {
    border-radius: 24px;
    padding: 20px 16px 24px;
  }

  .brand-wrap { padding: 6px; border-radius: 16px; }

  .link-grid,
  .track-grid,
  .award-section {
    grid-template-columns: 1fr;
  }

  .section {
    border-radius: 24px;
    padding: 22px 16px;
  }

  .timeline::before { left: 18px; }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-left: 42px;
  }

  .timeline-item::before { left: 12px; top: 18px; }

  .timeline-item.past::after {
    top: 12px;
    right: 12px;
  }

  .contact-card {
    grid-template-columns: auto 1fr;
  }

  .whatsapp {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 430px) {
  .countdown-card { padding-inline: 10px; }
  .countdown { gap: 5px; }
  .countdown div { padding-inline: 2px; }

  .link-card {
    grid-template-columns: auto 1fr;
  }

  .link-card .arrow { display: none; }

  .event-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .meta-pill { justify-content: center; }

  .hero-actions { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
