/* ============================================================
   ESI Indonesia — main.css
   Component styles. Mirrors GoSafe ESI Europe visual language.
   CSS custom properties defined in style.css.
   ============================================================ */


/* ============================================================
   HEADER
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition-med), box-shadow var(--transition-med);
}

/* Default state: solid white (hero background removed) */
.home .header {
  background: var(--color-white);
  box-shadow: var(--shadow-nav);
}

/* Scrolled / non-homepage: white */
.header.is-scrolled,
body:not(.home) .header {
  background: var(--color-white);
  box-shadow: var(--shadow-nav);
}

.header__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 80px;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.header-logo__link {
  display: flex;
  align-items: center;
  padding: 8px 0;
}

.header-logo__img {
  height: 52px;
  width: auto;
}

/* Nav */
.header-nav {
  margin-left: auto;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-black);
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  padding: 6px 14px;
  border: 1.5px solid transparent;
  border-radius: 999px;
}

.nav__link:hover {
  border-color: var(--color-black);
}

.nav__link--active {
  color: var(--color-teal);
  border-color: var(--color-teal);
}

/* Homepage header is always white — no transparent override needed */

/* ============================================================
   LANGUAGE SWITCHER — dropdown
   ============================================================ */

.nav__item--lang {
  list-style: none;
}

.lang-switcher {
  position: relative;
}

/* The visible button */
.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border: 1.5px solid var(--color-black);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--color-black);
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.lang-switcher__btn:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.lang-switcher__btn[aria-expanded="true"] {
  border-color: var(--color-teal);
  color: var(--color-teal);
  background: rgba(42, 167, 155, 0.08);
}

.lang-switcher__flag {
  font-size: 16px;
  line-height: 1;
}

.lang-switcher__code {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.lang-switcher__arrow {
  width: 10px;
  height: 6px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.lang-switcher__btn[aria-expanded="true"] .lang-switcher__arrow {
  transform: rotate(180deg);
}

/* Dropdown panel */
.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 110px;
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  list-style: none;
  padding: 6px;
  margin: 0;

  /* Hidden / animated state */
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-switcher__dropdown.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--color-graphite);
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.lang-switcher__option:hover {
  background: rgba(42, 167, 155, 0.08);
  color: var(--color-teal);
}

/* Homepage header is always white — no transparent override needed */

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
}

.hamburger__icon {
  position: relative;
  width: 32px;
  height: 22px;
}

.hamburger__icon span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-graphite);
  border-radius: 2px;
  transition: transform var(--transition-med), opacity var(--transition-med);
}

/* Homepage header is always white — hamburger stays dark */

.hamburger__icon span:nth-child(1) { top: 0; }
.hamburger__icon span:nth-child(2) { top: 10px; }
.hamburger__icon span:nth-child(3) { top: 10px; opacity: 0; }
.hamburger__icon span:nth-child(4) { top: 20px; }

.hamburger[aria-expanded="true"] .hamburger__icon span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger__icon span:nth-child(2) {
  transform: rotate(-45deg);
}
.hamburger[aria-expanded="true"] .hamburger__icon span:nth-child(3) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger__icon span:nth-child(4) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile nav open state */
.header-nav.is-open {
  display: block;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  padding: var(--space-6) var(--container-pad);
  z-index: 99;
}

.header-nav.is-open .header-menu {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.header-nav.is-open .nav__link {
  font-size: 36px;
  color: var(--color-graphite);
}


/* ============================================================
   MAIN — compensate for fixed header
   ============================================================ */

.main {
  /* No padding-top here — hero section is full-bleed behind header */
}

/* Non-homepage pages need top padding for fixed header */
body:not(.home) .main {
  padding-top: 80px;
}


/* ============================================================
   HERO SECTION
   ============================================================ */

.home-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Teal diagonal shape — full bleed, behind content */
.elements__image {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  align-items: center;
  gap: var(--space-7);
  padding-top: 140px; /* 80px header + 60px breathing room */
  padding-bottom: var(--space-3);
  flex-wrap: wrap;
}

/* Left: Lottie animation */
.home-hero__image {
  flex: 0 0 48%;
  max-width: 520px;
}

.hero-lottie {
  width: 100%;
  aspect-ratio: 833 / 695;
  max-width: 520px;
}

/* Right: Text */
.home-hero__text {
  flex: 1;
  min-width: 300px;
}

.home-hero__heading {
  margin-bottom: var(--space-4);
  color: #000000;
}

.home-hero__subtitle {
  margin-bottom: var(--space-4);
  max-width: 540px;
  color: #000000;
}

.home-hero__body {
  margin-bottom: var(--space-4);
  color: #000000;
  font-size: 16px;
  line-height: 1.6;
  max-width: 540px;
}

/* Image container — relative so decos can be positioned against it */
.home-hero__image {
  position: relative;
}

/* Clip wrapper — grows and moves as a whole on hover */
.hero-photo-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  z-index: 1;
  transform-origin: center center;
  will-change: transform;
}

.home-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Decorative SVG elements */
.hero-deco {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

/* Lime squiggle: top-right, slightly outside the image */
.hero-deco--tr {
  top: -20px;
  right: -28px;
}

/* Teal blob: bottom-left, slightly outside/overlapping */
.hero-deco--bl {
  bottom: -24px;
  left: -20px;
}

.home-hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-5);
}

/* Top-left decorative element */
.hero-tl-deco {
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  pointer-events: none;
  z-index: 0;
  opacity: 0; /* GSAP controls visibility */
}

/* Bottom-right decorative line */
.hero-line-deco {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 38%;
  pointer-events: none;
  z-index: 0;
  opacity: 0; /* GSAP controls visibility */
}

/* GSAP initial state — animated in by JS */
.home-hero--animated {
  opacity: 0;
  transform: translateY(20%);
}


/* ============================================================
   ESI ACRONYM SECTION
   ============================================================ */

.home-intro {
  position: relative;
  padding: var(--space-9) 0;
  background: var(--color-white);
  overflow: hidden;
}

.home-intro__wrapper {
  position: relative;
  gap: var(--space-8);
  align-items: flex-start;
  flex-wrap: wrap;
}

.home-intro--left {
  flex: 0 0 auto;
  width: 300px;
}

.home-intro__label {
  color: var(--color-teal);
  margin-top: 0;
  margin-bottom: var(--space-4);
}

.home-intro__acronym {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.home-intro__heading {
  display: block;
  line-height: 0.9;
}

.home-intro--primary {
  font-weight: 600;
  font-size: 1.2em;
  color: var(--color-teal);
}

.home-intro--secondary {
  font-weight: 400;
  opacity: 0; /* GSAP will animate this in */
  display: inline-block;
}

.home-intro--right {
  flex: 1;
  min-width: 280px;
}

.home-intro__row {
  margin-top: var(--space-5);
}

.home-intro__card {
  position: relative;
  background: #333333;
  border-radius: 32px;
  padding: var(--space-7) var(--space-8);
  color: #ffffff;
  z-index: 1;
  overflow: visible;
}

.home-intro__section-label {
  color: #BDBDBD;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: var(--space-3);
}

.home-intro__columns {
  gap: var(--space-4);
  align-items: flex-start;
}

.home-intro__heading-right {
  font-size: 36px;
  line-height: 1.2;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: var(--space-5);
}

.home-intro__body {
  color: #ffffff;
}

.home-intro__body p {
  margin-bottom: var(--space-4);
}

.home-intro__body p:last-child {
  margin-bottom: 0;
}

/* Decorative shape (legacy) */
.home-intro__image {
  position: absolute;
  bottom: -40px;
  right: -80px;
  width: 35%;
  opacity: 0.15;
  pointer-events: none;
}

/* Decorative SVGs */
.home-intro__deco {
  position: absolute;
  pointer-events: none;
}

/* Decor-E: lime wide shape, top-left, behind the card */
.home-intro__deco--e {
  top: -20px;
  left: -40px;
  width: 280px;
  z-index: 0;
}

/* Decor-D: teal shape, bottom-right corner of card, on top */
.home-intro__deco--d {
  bottom: -60px;
  right: -50px;
  width: 160px;
  z-index: 2;
}


/* ============================================================
   WHAT IS ESI / HOME INFO
   ============================================================ */

.home-info {
  padding: var(--space-9) 0;
}

.home-info__wrapper {
  gap: var(--space-6);
  flex-wrap: wrap;
}

.home-info__column {
  flex: 1;
  min-width: 280px;
}

.home-info__heading {
  margin-bottom: var(--space-4);
  color: var(--color-graphite);
}

.home-info__text {
  margin-bottom: var(--space-5);
  color: var(--color-graphite);
}

.home-info__link {
  margin-top: auto;
}

/* GSAP initial state */
.home-info--animated {
  opacity: 0;
  transform: translateY(20%);
}


/* ============================================================
   HOW IT WORKS — 6-STEP SLIDER
   ============================================================ */

.hiw-section {
  padding: var(--space-6) 0 var(--space-9);
  background: var(--color-white);
}

.hiw-header {
  margin-bottom: var(--space-7);
  text-align: center;
}

.hiw-header__heading {
  margin-bottom: var(--space-3);
}

.hiw-header__sub {
  color: var(--color-graphite);
  opacity: 0.75;
}

/* Slider wrapper: arrows + track */
.hiw-slider-wrap {
  display: flex;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
  gap: var(--space-4);
}

/* Arrow buttons */
.hiw-slider__arrow {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--color-graphite);
  background: transparent;
  color: var(--color-graphite);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}

.hiw-slider__arrow:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.hiw-slider__arrow:disabled,
.hiw-slider__arrow[aria-disabled="true"] {
  opacity: 0.3;
  cursor: default;
}

/* Slider track: all slides stacked in the same grid cell, clips off-screen slides */
.hiw-slider {
  flex: 1;
  min-width: 0;
  display: grid;
  overflow: hidden;
}

/* Each slide: default position = off-screen right */
.hiw-slide {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: var(--space-7);
  padding: var(--space-5) 0;
  transform: translateX(100%);
  pointer-events: none;
  will-change: transform;
}

.hiw-slide.is-active {
  transform: translateX(0);
  pointer-events: auto;
}

/* Transition only added by JS during a navigation — prevents accidental transitions on load */
.hiw-slide.is-animating {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hiw-slide__animation {
  flex: 0 0 45%;
  max-width: 480px;
}

.hiw-slide__player {
  width: 100%;
  aspect-ratio: 833 / 695;
}

.hiw-slide__content {
  flex: 1;
  min-width: 0;
}

.hiw-slide__label {
  display: block;
  color: var(--color-graphite);
  opacity: 0.6;
  margin-bottom: var(--space-2);
  font-size: 1rem;
}

.hiw-slide__title {
  margin-bottom: var(--space-4);
  color: var(--color-graphite);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.hiw-slide__desc {
  color: var(--color-graphite);
  max-width: 480px;
}

/* Dot navigation */
.hiw-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hiw-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--color-graphite);
  background: transparent;
  color: var(--color-graphite);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.hiw-dot.is-active {
  background: var(--color-graphite);
  color: var(--color-white);
}


/* ============================================================
   WHO IS IT FOR
   ============================================================ */

.home-why {
  padding: var(--space-9) 0;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.home-why__decor {
  position: absolute;
  top: 0;
  right: 0;
  height: 360px;
  width: auto;
  z-index: 0;
  pointer-events: none;
}

.home-why .container {
  position: relative;
  z-index: 1;
}

.home-why__label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-graphite);
  margin-bottom: var(--space-3);
}

.home-why__heading {
  margin-bottom: var(--space-7);
  text-align: center;
}

.home-why__list {
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

.home-why__item {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
}

.home-why__item--animated {
  background: #f2f2f2;
  border-radius: 20px;
  padding: var(--space-5) var(--space-4);
  height: 100%;
  text-align: center;
  opacity: 0; /* GSAP start */
  transform: translateY(20%); /* GSAP start */
}

.home-why__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-3);
  display: block;
}

.home-why__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: #000000;
}

.home-why__text {
  color: #000000;
  font-size: 16px;
}


/* ============================================================
   CTA BLOCK
   ============================================================ */

.home-cta {
  padding-top: var(--space-9);
  padding-bottom: calc(320px + 2vw);
  text-align: center;
  position: relative;
  z-index: 1;
  background-image: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('../images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--color-teal); /* fallback if image fails to load */
}

.home-cta__inner {
  max-width: 760px;
}

.home-cta__heading {
  margin-bottom: var(--space-4);
}

.home-cta__text {
  margin-bottom: var(--space-6);
  opacity: 0.9;
}

.home-cta--animated {
  opacity: 0;
  transform: translateY(20%);
}


/* ============================================================
   PARTNERS SECTION
   ============================================================ */

.home-partners {
  padding: var(--space-8) 0;
}

.home-partners__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.home-partners__label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  font-weight: 600;
}

.home-partners__logos {
  gap: var(--space-7);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.home-partners__logo {
  width: 130px;
  height: 60px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: filter var(--transition-med), opacity var(--transition-med);
}

.home-partners__link:hover .home-partners__logo {
  filter: brightness(0) invert(1);
  opacity: 1;
}


/* ============================================================
   DOWNLOADS PAGE — PAGE HERO
   ============================================================ */

.downloads-hero {
  padding: var(--space-7) 0 var(--space-5);
  border-bottom: 1px solid var(--color-grey-mid);
}

.downloads-hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-2);
}

.downloads-hero__title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.1;
  margin-bottom: var(--space-3);
}

.downloads-hero__intro {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-graphite);
  max-width: 680px;
}

/* ============================================================
   DOWNLOADS PAGE — LIBRARY SECTION WRAPPER
   ============================================================ */

.document-library {
  padding-top: var(--space-6);
  padding-bottom: 420px;
}

/* ============================================================
   DOWNLOADS PAGE — FILTER BAR
   ============================================================ */

/* Outer wrapper (is the <form>) */
.doc-filters {
  margin-bottom: var(--space-5);
}

/* Row 1: combos + search + submit button */
.doc-filters__bar {
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: var(--color-grey-light);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

/* Shared combo wrapper: label | select, looks like one input */
.doc-filters__combo {
  display: flex;
  align-items: stretch;
  background: var(--color-white);
  border: 1px solid var(--color-grey-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

/* "Category" / "Language" text label inside the combo box */
.doc-filters__combo-label {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-graphite);
  background: var(--color-grey-light);
  border-right: 1px solid var(--color-grey-mid);
  white-space: nowrap;
  user-select: none;
}

/* Native select inside the combo */
.doc-filters__select {
  border: none;
  outline: none;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-graphite);
  background: var(--color-white);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-width: 150px;
}

.doc-filters__select:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: -2px;
}

/* Search input wrapper — fills remaining space */
.doc-filters__search-wrap {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-grey-mid);
  border-radius: var(--radius-md);
  padding: 0 16px;
  transition: border-color var(--transition-fast);
}

.doc-filters__search-wrap:focus-within {
  border-color: var(--color-teal);
}

.doc-filters__search-icon {
  color: #999;
  flex-shrink: 0;
}

.doc-filters__search {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-graphite);
  background: transparent;
}

.doc-filters__search::placeholder {
  color: #aaa;
}

/* Search / submit button — uses .cta class for style */
.doc-filters__submit {
  flex-shrink: 0;
  white-space: nowrap;
  /* font-size override so it fits the bar height */
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
}

/* ── Row 2: Category tab pills ── */

.doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-3);
}

.doc-tab {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-grey-mid);
  background: var(--color-white);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-graphite);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.doc-tab:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.doc-tab.is-active {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-white);
}

/* ── Result count ── */

.doc-filters__count {
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-size: 14px;
  color: #888;
}

.doc-filters__count strong {
  color: var(--color-graphite);
  font-weight: 600;
}

/* ============================================================
   DOWNLOADS PAGE — DOCUMENT GRID
   ============================================================ */

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

/* Loading state (AJAX in-flight) */
.doc-grid.is-loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

/* ── Document card ── */

.doc-card {
  background: var(--color-white);
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--transition-med), border-color var(--transition-med);
}

.doc-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  border-color: var(--color-teal);
}

/* Placeholder card: slightly faded, no hover lift */
.doc-card--placeholder {
  opacity: 0.65;
}

.doc-card--placeholder:hover {
  box-shadow: none;
  border-color: #E0E0E0;
}

/* Card header: file type badge (left) + title (right) */
.doc-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Grey square badge showing file type (PDF / XLSX / DOCX) */
.doc-card__type {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-grey-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #666;
  text-transform: uppercase;
}

.doc-card__title {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-graphite);
}

/* Tags row: category pill + language badge */
.doc-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.doc-card__cat-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--color-grey-light);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  color: #555;
  white-space: nowrap;
}

/* Language badge — colour varies by language */
.doc-card__lang-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
}

.doc-card__lang-tag--en {
  background: #E3F2FD;
  color: #1565C0;
}

.doc-card__lang-tag--id {
  background: #E8F5E9;
  color: #2E7D32;
}

.doc-card__lang-tag--both {
  background: #F3E5F5;
  color: #6A1B9A;
}

/* Short description */
.doc-card__desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: #666;
  flex: 1;
}

.doc-card__desc--placeholder {
  color: #aaa;
  font-style: italic;
}

/* Footer: file size left, download button right */
.doc-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.doc-card__size {
  font-family: var(--font-body);
  font-size: 13px;
  color: #888;
}

.doc-card__pending {
  font-family: var(--font-body);
  font-size: 13px;
  color: #bbb;
  font-style: italic;
}

/* Empty state (returned by AJAX when no results) */
.doc-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-8) 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: #888;
}

/* ============================================================
   DOWNLOADS PAGE — PAGINATION
   ============================================================ */

.doc-pagination {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

/* The <ul> generated by paginate_links( type: 'list' ) */
.doc-pagination .page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Every page item: link or span */
.doc-pagination .page-numbers li > a,
.doc-pagination .page-numbers li > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-graphite);
  border: 1px solid #E0E0E0;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.doc-pagination .page-numbers li > a:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

/* Active / current page */
.doc-pagination .page-numbers li > span.current {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-white);
}

/* "…" dots — no border, no hover */
.doc-pagination .page-numbers li > span.dots {
  border: none;
  background: none;
  color: #aaa;
}

/* Prev / next arrows — slightly wider */
.doc-pagination .page-numbers li > a.prev,
.doc-pagination .page-numbers li > a.next {
  font-size: 18px;
}


/* ============================================================
   CONTACT PAGE
   ============================================================ */

.page-contact {
  padding-top: var(--space-7);
  padding-bottom: var(--space-9);
}

.contact-header {
  margin-bottom: var(--space-7);
}

.contact-header__heading {
  margin-bottom: var(--space-3);
}

.contact-body {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.contact-details {
  flex: 1;
  min-width: 280px;
}

.contact-details__item {
  margin-bottom: var(--space-5);
}

.contact-details__label {
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal);
  margin-bottom: var(--space-2);
}

.contact-details__value {
  font-size: 18px;
  color: var(--color-graphite);
}

.contact-illustration {
  flex: 0 0 40%;
  min-width: 280px;
}


/* ============================================================
   FOOTER
   ============================================================ */

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
  margin-top: calc(-8vw - 220px);
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

/* Wave decoration container */
.site-footer__wave {
  position: relative;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  margin-bottom: -60px;
  z-index: 0;
}

/* Decorative shapes — sits behind the dark wave */
.site-footer__wave-shape {
  display: block;
  position: absolute;
  bottom: 220px;   /* how far it pops up above the wave — increase to raise it more */
  left: 0;
  width: 100%;
  height: auto;
  z-index: -1;    /* sits behind the wave (which is z-index: 0) */
}

/* Dark wave curve */
.site-footer__wave-bg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 50px;
}

/* Footer body — dark background lives here, below the wave */
.site-footer__body {
  background: var(--color-graphite);
  padding-top: var(--space-6);
  padding-bottom: var(--space-8);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .site-footer__body {
    padding-top: var(--space-8);
  }
}

/* 4-column grid */
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.2fr 1fr;
  gap: var(--space-7);
  align-items: start;
  padding-top: var(--space-0);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
}

/* Column 1: Quick links */
.site-footer__nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: 0;
  margin: 0;
}

.site-footer__nav-list a {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  line-height: 1.6;
  transition: color var(--transition-fast);
}

.site-footer__nav-list a:hover {
  color: var(--color-teal);
}

/* Column 2: Funding */
.site-footer__funding-logo {
  align-self: flex-start;
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: var(--space-3);
  object-fit: contain;
}

.site-footer__funding-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  max-width: 280px;
}

/* Column 3: Coordinator */
.site-footer__coord-logo {
  display: block;
  align-self: flex-start;
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: var(--space-3);
  object-fit: contain;
}

.site-footer__coord-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* Column 4: Social + Legal */
.site-footer__follow-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-2);
}

.site-footer__social-icons {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-white);
  opacity: 0.75;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.site-footer__social-link:hover {
  opacity: 1;
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__legal a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__legal a:hover {
  color: var(--color-white);
}


/* ============================================================
   RESPONSIVE — TABLET (≤ 990px)
   ============================================================ */

@media (max-width: 990px) {
  .hamburger { display: flex; }
  .header-nav { display: none; }

  .hero-container {
    flex-direction: column;
    padding-top: 120px;
    text-align: center;
  }

  .home-hero__image {
    flex: 0 0 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .home-hero__actions {
    justify-content: center;
  }

  .hiw-slider-wrap {
    padding: 0 var(--space-3);
    gap: var(--space-3);
  }

  .hiw-slider__arrow {
    width: 40px;
    height: 40px;
  }

  .hiw-slide,
  .hiw-slide.is-active {
    flex-direction: column;
  }

  .hiw-slide__animation {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }

  .hiw-slide__title {
    font-size: 1.75rem;
  }

  /* Downloads page */
  .downloads-hero__title {
    font-size: 36px;
  }

  .doc-filters__bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .doc-filters__combo,
  .doc-filters__search-wrap {
    flex: 1 1 calc(50% - 8px);
    min-width: 160px;
  }

  .doc-filters__submit {
    width: 100%;
  }

  .doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}


/* ============================================================
   RESPONSIVE — MOBILE (≤ 578px)
   ============================================================ */

@media (max-width: 578px) {
  .header__container {
    height: 64px;
  }

  .hero-line-deco {
    width: 19%;
  }

  .hero-container {
    padding-top: 100px;
    padding-bottom: var(--space-7);
  }

  .home-hero__image {
    max-width: 300px;
  }

  .home-hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .home-intro__wrapper {
    flex-direction: column;
  }

  .home-intro__columns {
    flex-direction: column;
  }

  .home-intro--left,
  .home-intro--right {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .home-why__item {
    min-width: 100%;
    max-width: 100%;
  }

  /* Downloads page */
  .downloads-hero__title {
    font-size: 30px;
  }

  .doc-filters__bar {
    flex-direction: column;
    gap: 8px;
  }

  .doc-filters__combo,
  .doc-filters__search-wrap {
    width: 100%;
    flex: none;
  }

  .doc-grid {
    grid-template-columns: 1fr;
  }

  .contact-body {
    flex-direction: column;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
}

@media (max-width: 480px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .site-footer__wave-shape {
    bottom: 75px;
  }
}
