/* =========================================================
   IALVI / ASICLIVAR Research Group — Design Tokens
   Palette:
     --deep-ocean : #16324F  (headline, navbar bg on scroll)
     --sea-blue   : #2C5F8A  (primary accent, links, buttons)
     --sky        : #6FA3C7  (secondary accent, tags)
     --mist       : #EAF2F8  (soft section background)
     --foam       : #FFFFFF  (cards, base background)
     --ink        : #1F2A37  (body text)
     --slate      : #5B6B7B  (muted text / captions)
   Type:
     Headings : 'Spectral', a literary serif — gives the page the register
                of a scientific journal / earth-sciences faculty page
     Body/UI  : 'Inter' — clean, highly legible sans for data-dense pages
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Spectral:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --deep-ocean: #16324f;
  --sea-blue: #2c5f8a;
  --sky: #6fa3c7;
  --mist: #eaf2f8;
  --foam: #ffffff;
  --ink: #1f2a37;
  --slate: #5b6b7b;
  --border: #d7e4ee;

  --font-head: "Spectral", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;

  --radius: 10px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--foam);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--deep-ocean);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 {
  font-size: 2.6rem;
  font-weight: 600;
}
h2 {
  font-size: 1.9rem;
  font-weight: 600;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

p {
  max-width: 68ch;
  color: var(--ink);
}

a {
  color: var(--sea-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- NAVBAR ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--foam);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--deep-ocean);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.navbar__brand img {
  height: 38px;
  width: auto;
}

.navbar__brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--slate);
  letter-spacing: 0.02em;
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--deep-ocean);
  cursor: pointer;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__menu a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.navbar__menu a:hover,
.navbar__menu a.is-active {
  color: var(--sea-blue);
  border-bottom-color: var(--sea-blue);
}

@media (max-width: 860px) {
  .navbar__toggle {
    display: block;
  }
  .navbar__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--foam);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .navbar__menu.is-open {
    display: flex;
  }
  .navbar__menu li {
    width: 100%;
  }
  .navbar__menu a {
    display: block;
    padding: 10px 0;
    border-bottom: none;
  }
}

/* ---------- NAVBAR DROPDOWN (Publication > Patent, Stakeholder) ---------- */
.navbar__item {
  position: relative;
}

.navbar__caret {
  font-size: 0.65rem;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.15s ease;
}

.navbar__item.has-dropdown:hover .navbar__caret,
.navbar__item.has-dropdown:focus-within .navbar__caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  margin-top: 10px;
  background: var(--foam);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(22, 50, 79, 0.12);
  list-style: none;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s ease;
  z-index: 20;
}

.navbar__item.has-dropdown:hover .dropdown-menu,
.navbar__item.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: calc(var(--radius) - 4px);
  border-bottom: none !important;
  color: var(--ink);
  font-size: 0.9rem;
}

.dropdown-menu a:hover,
.dropdown-menu a.is-active {
  background: var(--mist);
  color: var(--sea-blue);
}

@media (max-width: 860px) {
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    margin: 4px 0 4px 16px;
    padding: 0;
  }

  .navbar__caret {
    display: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(180deg, var(--mist) 0%, var(--foam) 100%);
  padding: 72px 0 56px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero__eyebrow {
  color: var(--sea-blue);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.hero__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(22, 50, 79, 0.14);
}
/* The hero slide's <img> is now wrapped in an <a> (links to gallery.php) —
   make the link fill the slide exactly like the image did before. */
.hero-slider__slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- SECTION ---------- */
.section {
  padding: 64px 0;
}
.section--muted {
  background: var(--mist);
}
.section__head {
  max-width: 680px;
  margin-bottom: 36px;
}

/* ---------- PEOPLE GRID ---------- */
.people-category {
  margin-bottom: 56px;
}

.people-category__title {
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 24px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 28px;
}

.person-card {
  background: var(--foam);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.person-card:hover {
  box-shadow: 0 10px 24px rgba(22, 50, 79, 0.1);
  transform: translateY(-2px);
}

.person-card__photo {
  aspect-ratio: 4 / 5;
  background: var(--mist) center/cover no-repeat;
  background-image: var(--photo-url);
}

.person-card__body {
  padding: 14px 16px 18px;
}

.person-card__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--deep-ocean);
  margin: 0 0 4px;
}

.person-card__role {
  font-size: 0.82rem;
  color: var(--sea-blue);
  font-weight: 600;
  margin: 0 0 4px;
}

.person-card__note {
  font-size: 0.78rem;
  color: var(--slate);
  margin: 0;
}
/* ---------- HERO IMAGE SLIDER (Home) ---------- */
.hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(22, 50, 79, 0.14);
}

.hero-slider__track {
  display: flex;
  transition: transform 0.4s ease;
}

.hero-slider__slide {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
}

.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  color: var(--deep-ocean);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.hero-slider__nav:hover {
  background: var(--foam);
}
.hero-slider__nav--prev {
  left: 14px;
}
.hero-slider__nav--next {
  right: 14px;
}

.hero-slider__dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  padding: 0;
}

.hero-slider__dot.is-active {
  background: var(--foam);
}
/* ---------- STORYTELLING SECTION (Home) — no cards, alternating layout ---------- */
.storytelling-section {
  padding: 40px 0 20px;
}

.story-block {
  padding: 90px 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.story-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.story-block__grid {
  display: flex;
  align-items: flex-start;
  gap: 130px;
}

.story-block--right .story-block__grid {
  flex-direction: row-reverse;
}

.story-block__text {
  flex: 0 0 420px; /* fixed-width column, same pattern as .story-publications__head */
}

.story-block__media {
  flex: 1 1 0;
  min-width: 0;
}

.story-block__desc {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 28px;
  /* max-width: 46ch; ← dihapus, karena kolom teks sekarang sudah dibatasi oleh flex-basis 320px di atas */
}

/* The business-process diagram is dense with text, so it stays uncropped
   and sits on a soft neutral backdrop rather than filling a fixed frame. */
.story-block__media--diagram {
  background: var(--mist);
  border-radius: 20px;
  padding: 20px;
}

.story-block__media--diagram img {
  border-radius: 2px;
}

/* Elegant text link — no button shape, animated underline instead */
.story-link {
  position: relative;
  display: inline-block;
  color: var(--deep-ocean);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding-bottom: 3px;
}

.story-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--sea-blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.story-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.story-link:hover { text-decoration: none; }

/* ---------- Minimalist publication list (Story 2) — no cards ---------- */
.story-pub-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  max-width: 52ch;
}

.story-pub-list__item {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.story-pub-list__item:last-child {
  border-bottom: 1px solid var(--border);
}

.story-pub-list__year {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--sea-blue);
  padding-top: 2px;
}

.story-pub-list__body { min-width: 0; }

.story-pub-list__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-ocean);
  margin: 0 0 4px;
  line-height: 1.4;
}

.story-pub-list__venue {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--slate);
  margin: 0;
}

@media (max-width: 860px) {
  .story-block { padding: 60px 0; }
  .story-block__grid {
    flex-direction: column;
  }
  .story-block__text {
    flex: none; /* lepas lebar tetap 320px saat sudah ditumpuk vertikal */
  }
  .story-block__title { font-size: 1.7rem; }
}
/* ---------- STORY DUO — Story 1 & 2 side-by-side, text-only ---------- */
.story-duo {
  padding: 90px 0 60px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.story-duo.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.story-duo__grid {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.story-duo__col {
  flex: 1 1 0;
  min-width: 0;
}

.story-duo__divider {
  flex: 0 0 auto;
  width: 1px;
  align-self: stretch;
  background: var(--border);
}

@media (max-width: 860px) {
  .story-duo__grid {
    flex-direction: column;
    gap: 40px;
  }
  .story-duo__divider {
    width: 100%;
    height: 1px;
  }
}

/* ---------- FEATURED PUBLICATIONS — standalone section, left text / right list ---------- */
.story-publications {
  padding: 40px 0 90px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.story-publications.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.story-publications__grid {
  display: flex;
  align-items: flex-start;
  gap: 130px;
}

.story-publications__head {
  flex: 0 0 420px; /* fixed-ish narrow column for the short intro text */
}

.story-publications__body {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 860px) {
  .story-publications__grid {
    flex-direction: column;
    gap: 32px;
  }
  .story-publications__head {
    flex: none;
  }
}
/* ---------- INFINITE STAKEHOLDER MARQUEE ---------- */
.story-marquee-wrap {
  padding: 50px 0 70px;
}

.story-marquee__label {
  color: var(--slate);
  font-size: 1.2rem;
  margin: 0 0 32px;
  justify-content: center;

}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.marquee__item:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.marquee__item img {
  height: 100%;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- PROGRAM BOX (Visiting Professor / Exchange) ---------- */
.program-boxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 12px;
}

.program-box {
  background: var(--deep-ocean);
  color: var(--foam);
  border-radius: var(--radius);
  padding: 28px;
}

.program-box h3 {
  color: var(--foam);
}
.program-box p {
  color: #cfe0ee;
  margin: 0;
}

@media (max-width: 700px) {
  .program-boxes {
    grid-template-columns: 1fr;
  }
}

/* ---------- LEADER WELCOME (About) ---------- */
.leader__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}

.leader__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--mist) center/cover no-repeat;
  box-shadow: 0 12px 32px rgba(22, 50, 79, 0.12);
}

.leader__quote {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--deep-ocean);
  border-left: 3px solid var(--sky);
  padding-left: 20px;
  margin: 0 0 20px;
  max-width: none;
}

.leader__name {
  font-weight: 700;
  color: var(--deep-ocean);
  margin-bottom: 2px;
}

.leader__role {
  font-size: 0.88rem;
  color: var(--slate);
  margin: 0;
}

@media (max-width: 760px) {
  .leader__grid {
    grid-template-columns: 1fr;
  }
  .leader__photo {
    max-width: 260px;
  }
}

/* ---------- STRUKTUR ORGANISASI (About) ---------- */
.org-structure {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.org-structure__level {
  background: var(--foam);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  flex: 1 1 190px;
  text-align: center;
}

.org-structure__level-title {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--deep-ocean);
  font-size: 0.95rem;
  margin: 0 0 4px;
}

.org-structure__level-desc {
  font-size: 0.8rem;
  color: var(--slate);
  margin: 0;
}

.org-structure__arrow {
  color: var(--sky);
  font-size: 1.4rem;
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .org-structure {
    flex-direction: column;
    align-items: stretch;
  }
  .org-structure__arrow {
    transform: rotate(90deg);
    align-self: center;
  }
}

/* ---------- DSS ZIG-ZAG CARDS (About) ---------- */
.dss-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-top: 12px;
}

.dss-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.dss-card--reverse .dss-card__image {
  order: 2;
}
.dss-card--reverse .dss-card__content {
  order: 1;
}

.dss-card__image {
  aspect-ratio: 18 / 10;
  border-radius: var(--radius);
  background: var(--mist) center/cover no-repeat;
  box-shadow: 0 12px 28px rgba(22, 50, 79, 0.1);
}

.dss-card__tag {
  display: inline-block;
  background: var(--mist);
  color: var(--sea-blue);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.dss-card__title {
  margin-bottom: 4px;
}

.dss-card__tagline {
  font-size: 0.85rem;
  color: var(--sea-blue);
  font-weight: 500;
  margin: 0 0 12px;
}

.dss-card__desc {
  color: var(--ink);
  margin: 0;
}

@media (max-width: 760px) {
  .dss-card {
    grid-template-columns: 1fr;
  }
  .dss-card--reverse .dss-card__image,
  .dss-card--reverse .dss-card__content {
    order: initial;
  }
}

/* ---------- BUTTON (dipakai di beberapa section baru) ---------- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.btn--primary {
  background: var(--sea-blue);
  color: var(--foam);
}
.btn--primary:hover {
  background: var(--deep-ocean);
  text-decoration: none;
}

.btn--light {
  background: var(--foam);
  color: var(--deep-ocean);
}
.btn--light:hover {
  background: var(--mist);
  text-decoration: none;
}

/* ---------- OUR INNOVATIONS (Home) ---------- */
.innovation__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.innovation__item {
  background: var(--foam);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
}

.innovation__logo {
  height: 56px;
  width: auto;
  margin: 0 auto 14px;
}

.innovation__name {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.innovation__desc {
  font-size: 0.85rem;
  color: var(--slate);
  margin: 0;
}

.innovation__cta {
  text-align: center;
  margin-top: 28px;
}

@media (max-width: 700px) {
  .innovation__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- FACILITIES (Home) ---------- */
.facility__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.facility-card {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 24px;
}

.facility-card__title {
  font-size: 1rem;
  margin-bottom: 8px;
}

.facility-card__desc {
  font-size: 0.88rem;
  color: var(--slate);
  margin: 0;
}

.facility-card--stakeholder {
  text-align: center;
}

.facility-card__logo {
  display: block;
  max-width: 100%;
  height: 48px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 12px;
}

@media (max-width: 700px) {
  .facility__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- CALLOUT / OPPORTUNITIES BANNER (Home) ---------- */
.callout {
  background: var(--deep-ocean);
  border-radius: var(--radius);
  padding: 44px;
}

.callout__content h2,
.callout__content p {
  color: var(--foam);
}

.callout__content p {
  color: #cfe0ee;
}

.callout__list {
  list-style: none;
  margin: 20px 0 26px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.callout__item {
  background: rgba(255, 255, 255, 0.1);
  color: var(--foam);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- NEWS & SEMINAR (Home) ---------- */

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--foam);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.news-card__thumb {
  aspect-ratio: 16 / 10;
  background: var(--mist) top center/cover no-repeat;
}

.news-card__body {
  padding: 16px 18px 20px;
}

.news-card__date {
  font-size: 0.75rem;
  color: var(--sea-blue);
  font-weight: 600;
  margin: 0 0 6px;
}

.news-card__title {
  font-size: 1rem;
  margin-bottom: 6px;
}

.news-card__excerpt {
  font-size: 0.85rem;
  color: var(--slate);
  margin: 0;
}

@media (max-width: 860px) {
  .news__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- NEWS & EVENTS (halaman penuh, news.php) ---------- */
.event-group {
  margin-top: 48px;
}

.event-group:first-of-type {
  margin-top: 0;
}

.event-group__title {
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 24px;
}

.news-card__type {
  display: inline-block;
  background: var(--mist);
  border: 1px solid var(--sky);
  color: var(--sea-blue);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.news-card__location {
  font-size: 0.8rem;
  color: var(--slate);
  margin: 0 0 10px;
}

.news-card__link {
  font-size: 0.85rem;
  font-weight: 600;
}


/* ---------- PUBLICATION TABS ---------- */
.pub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.pub-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mist);
  color: var(--slate);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pub-tabs__btn:hover {
  background: #DCEAF5;
  color: var(--deep-ocean);
}

.pub-tabs__btn.is-active {
  background: var(--sea-blue);
  color: var(--foam);
}

.pub-tabs__count {
  background: rgba(255, 255, 255, 0.3);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

.pub-tabs__btn:not(.is-active) .pub-tabs__count {
  background: rgba(22, 50, 79, 0.08);
}

/* ---------- PUBLICATION PANELS ---------- */
.pub-panel { display: none; }
.pub-panel.is-visible { display: block; }

.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ---------- PUBLICATION CARD ---------- */
.pub-card {
  background: var(--foam);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pub-card:hover {
  box-shadow: 0 14px 28px rgba(22, 50, 79, 0.10);
  border-color: var(--sky);
  transform: translateY(-3px);
}

.pub-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pub-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.pub-card__badge--year {
  background: var(--deep-ocean);
  color: var(--foam);
}

.pub-card__badge--type {
  background: var(--mist);
  color: var(--sea-blue);
}

.pub-card__title {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--deep-ocean);
  line-height: 1.4;
  margin: 0;
}

.pub-card__authors {
  font-size: 0.85rem;
  color: var(--ink);
  margin: 0;
}

.pub-card__venue {
  font-size: 0.85rem;
  color: var(--slate);
  margin: 0 0 4px;
}

.pub-card__link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sea-blue);
  text-decoration: none;
}

.pub-card__link:hover { text-decoration: underline; }

.pub-card__link--disabled {
  color: var(--slate);
  font-weight: 500;
  cursor: default;
}
.pub-tabs__span {
  font-weight: 500;
  opacity: 0.85;
  font-size: 0.8em;
}

/* ==========================================================================
   FOOTER COMPONENT
   ========================================================================== */
.site-footer {
  background-color: #0f172a; /* Deep blue navy */
  color: #f8fafc;
  padding: 4rem 0 1.5rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr; /* Kolom pertama lebih lebar */
    gap: 4rem;
  }
}

.site-footer__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.site-footer__subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: #93c5fd; /* Warna biru muda untuk subjudul */
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.site-footer__text {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Badge untuk BRIN */
.site-footer__badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-footer__badge:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* List Tautan */
.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__list li {
  margin-bottom: 0.75rem;
}

.site-footer__list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.site-footer__list-item svg {
  color: #60a5fa;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Interaksi Link */
.site-footer__link {
  color: #cbd5e1;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  display: inline-block;
}

.site-footer__link:hover {
  color: #60a5fa;
  text-decoration: none;
  transform: translateX(4px); /* Efek bergeser sedikit ke kanan saat dihover */
}

/* Footer Bottom (Copyright) */
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #94a3b8;
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---------- CONTACT PAGE ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.contact-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.contact-card h2 svg {
  width: 20px;
  height: 20px;
  color: var(--sea-blue);
  flex-shrink: 0;
}

.contact-card__email-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.contact-card__email-link:hover {
  color: var(--sea-blue);
  text-decoration: none;
}

.contact-socials {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-socials a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-socials a svg {
  width: 20px;
  height: 20px;
  color: var(--sea-blue);
  flex-shrink: 0;
}

.contact-socials a:hover {
  color: var(--sea-blue);
}

.contact-socials a svg {
  width: 20px;
  height: 20px;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(22, 50, 79, 0.12);
}

.contact-map iframe {
  display: block;
}

@media (max-width: 760px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
/* ---------- MASONRY GALLERY (gallery.php) — atmo.ai-inspired ---------- */
.gallery-masonry {
  column-count: 1;
  column-gap: 20px;
}

@media (min-width: 620px) {
  .gallery-masonry {
    column-count: 2;
  }
}

@media (min-width: 960px) {
  .gallery-masonry {
    column-count: 3;
  }
}

@media (min-width: 1300px) {
  .gallery-masonry {
    column-count: 4;
  }
}

.gallery-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 20px;
}

/* The "frame" is the photo/video card itself — position: relative lets us
   layer the telemetry-style overlay, corner arrow, and play button on top
   without ever cropping the image (no object-fit anywhere). */
.gallery-item__frame {
  position: relative;
  display: block;
  line-height: 0; /* removes inline-image whitespace gap */
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--foam);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(22, 50, 79, 0.06);
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.gallery-item__frame:hover {
  box-shadow: 0 14px 30px rgba(22, 50, 79, 0.14);
  border-color: var(--sky);
  transform: translateY(-3px);
}

.gallery-item__media {
  display: block;
  width: 100%;
  height: auto; /* original aspect ratio preserved, no cropping */
}

/* Bottom "telemetry tag" overlay — monospace label + short location string,
   echoing the coordinate-style captions used on atmo.ai's hero cards. */
.gallery-item__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px 12px;
  background: linear-gradient(
    180deg,
    rgba(22, 50, 79, 0) 0%,
    rgba(22, 50, 79, 0.78) 100%
  );
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: normal; /
}

.gallery-item__tag {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foam);
}

.gallery-item__coord {
  font-family: "Menlo", "Consolas", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: #cfe0ee;
}

/* Small directional arrow badge, top-right corner — a nod to the little
   compass/direction glyphs floating over atmo.ai's satellite imagery. */
.gallery-item__corner {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--deep-ocean);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.gallery-item__frame:hover .gallery-item__corner {
  background: var(--sea-blue);
  color: var(--foam);
  transform: translate(2px, -2px);
}

/* Video play button, centered over the thumbnail */
.gallery-item__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(22, 50, 79, 0.75);
  color: var(--foam);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.gallery-item__frame:hover .gallery-item__play {
  background: var(--sea-blue);
  transform: translate(-50%, -50%) scale(1.08);
}

/* Caption line below the card (kept outside the frame, unlike atmo.ai,
   so long captions never overlap the image) */
.gallery-item__caption {
  margin: 8px 2px 0;
  font-size: 0.82rem;
  color: var(--slate);
}

/* ---------- AGENDA TABLE (Upcoming events, news.php) ---------- */
.agenda-table__wrap {
  overflow-x: auto;
  border: 2px solid var(--sea-blue);
  border-radius: var(--radius);
  background: var(--foam);
}

.agenda-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 820px;
}

.agenda-table th {
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--mist);
  padding: 12px 16px;
  white-space: nowrap;
  border: 2px solid var(--sea-blue);
}

.agenda-table td {
  padding: 14px 16px;
  border: 2px solid var(--sea-blue);
  font-size: 0.88rem;
  line-height: 1.5;
  vertical-align: top;
  word-wrap: break-word;
}

.agenda-table tbody tr:hover {
  background: var(--mist);
}

.agenda-table__date {
  font-weight: 600;
  color: var(--sea-blue);
}

.agenda-table__title {
  font-weight: 600;
}

.agenda-table__meta {
  line-height: 1.6;
}

.agenda-table__location {
  color: var(--slate);
  font-size: 0.82rem;
}

@media (max-width: 700px) {
  .agenda-table__wrap {
    border-radius: var(--radius);
  }
}

.navbar__logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-right: 12px;
    flex-shrink: 0;
}

/* ---------- PERSON DETAIL (person.php) ---------- */
.person-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.person-detail__photo {
  aspect-ratio: 4 / 5;
  background: var(--mist) top center/cover no-repeat;
  background-image: var(--photo-url);
  border-radius: var(--radius);
}

.person-detail__name {
  margin-bottom: 4px;
}

.person-detail__role {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sea-blue);
  margin-bottom: 4px;
}

.person-detail__note {
  color: var(--slate);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.person-detail__bio {
  margin-bottom: 24px;
}

.person-detail__meta {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.person-detail__meta dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 12px;
}

.person-detail__meta dd {
  margin: 2px 0 0;
}

@media (max-width: 700px) {
  .person-detail {
    grid-template-columns: 1fr;
  }
  .person-detail__photo {
    max-width: 280px;
  }
}

/* ---------- COLLABORATORS LIST (people.php) ---------- */
.collaborator-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--foam);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.collaborator-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.collaborator-list__item:last-child {
  border-bottom: none;
}

.collaborator-list__item:hover {
  background: var(--mist);
}

.collaborator-list__name {
  font-weight: 600;
  color: var(--ink);
}

.collaborator-list__affiliation {
  color: var(--slate);
  font-size: 0.9rem;
}

.collaborator-list__name a {
  color: inherit;
  text-decoration: none;
}

.collaborator-list__name a:hover {
  color: var(--sea-blue);
  text-decoration: underline;
}
 
/* ==========================================================================
   UPDATED TABLE & EVENT STYLES (Penanganan Lebar Kolom via CSS)
   ========================================================================== */

/* Memastikan tabel memakai layout tetap agar persentase width dipatuhi */
.agenda-table {
  width: 100%;
  table-layout: fixed;
}

/* Pengaturan Lebar Kolom Tabel (Menggantikan atribut width di HTML) */
.agenda-table th:nth-child(1),
.agenda-table td:nth-child(1) { 
  width: 11%; 
  white-space: nowrap;
}

.agenda-table th:nth-child(2),
.agenda-table td:nth-child(2) { 
  width: 25%; 
  word-wrap: break-word;
}

.agenda-table th:nth-child(3),
.agenda-table td:nth-child(3) { 
  width: 20%; 
}

.agenda-table th:nth-child(4),
.agenda-table td:nth-child(4) { 
  width: 14%; 
}

.agenda-table th:nth-child(5),
.agenda-table td:nth-child(5) { 
  width: 10%; 
  white-space: nowrap;
}

.agenda-table th:nth-child(6),
.agenda-table td:nth-child(6) { 
  width: 20%; 
}

/* Hover state untuk baris tabel */
.agenda-table tbody tr:hover {
  background-color: var(--mist, rgba(234, 242, 248, 0.5));
}

/* Jarak antar kelompok event */
.event-group + .event-group {
  margin-top: 48px;
}