:root {
  --green: #0a4d2e;
  --gold: #c5a059;
  --ink: #1b1f23;
  --muted: #64706a;
  --line: #dfe7e2;
  --surface: #ffffff;
  --soft: #f5f7f4;
  --accent: #24536f;
  --font-heading: "Merriweather", serif;
  --font-body: "Inter", sans-serif;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  min-height: 90px;
  align-items: center;
  gap: 40px;
}

.logo {
  color: var(--green);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  white-space: nowrap;
}

.logo span,
.site-footer h2 span {
  color: var(--gold);
}

.main-nav {
  flex: 1;
  min-width: 0;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: block;
  color: #25342d;
  font-size: 0.95rem;
  font-weight: 650;
  padding: 10px 0;
  white-space: nowrap;
}

.main-nav > ul > li > a {
  position: relative;
}

.main-nav > ul > li > a::before {
  position: absolute;
  right: 50%;
  bottom: 4px;
  left: 50%;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
  transition: left 180ms ease, right 180ms ease;
}

.main-nav > ul > li:hover > a {
  color: var(--green);
}

.main-nav > ul > li:hover > a::before,
.main-nav > ul > li:focus-within > a::before {
  right: 0;
  left: 0;
}

.main-nav li ul {
  position: absolute;
  top: 100%;
  left: -16px;
  display: none;
  width: min(300px, calc(100vw - 32px));
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding: 8px 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(10, 30, 20, 0.12);
}

.main-nav li:hover > ul,
.main-nav li:focus-within > ul {
  display: block;
}

.main-nav li ul a {
  padding: 9px 16px;
  white-space: normal;
}

.main-nav .nav-more {
  color: var(--green);
}

.header-cta,
.button,
.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 750;
  min-height: 42px;
  padding: 10px 18px;
}

.header-cta,
.button.primary,
.search-form button {
  background: var(--green);
  color: #fff;
}

.header-cta {
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(10, 77, 46, 0.2);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.66);
  color: #fff;
}

.button.outline {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  flex: 0 0 auto;
}

.language-switcher a {
  display: inline-flex;
  min-width: 42px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
  padding: 8px 10px;
}

.language-switcher a + a {
  border-left: 1px solid var(--line);
}

.language-switcher a.is-active,
.language-switcher a:hover {
  background: var(--green);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--green);
}

.hero {
  position: relative;
  color: #fff;
  min-height: min(650px, calc(100vh - 110px));
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, #0a4d2e, #052b19);
  padding: 80px 0 100px;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 4vw, 50px);
  align-items: center;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 36px;
  background: rgba(6, 60, 35, 0.96);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
  padding: clamp(24px, 3vw, 40px);
}

.hero-copy {
  max-width: 720px;
}

.hero-visual {
  position: relative;
  height: min(420px, 48vw);
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-header h1,
.section-header h2,
.article h1,
.article h2 {
  font-family: var(--font-heading);
  line-height: 1.12;
}

.hero h1 {
  max-width: 680px;
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 4vw, 3.55rem);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.stats-row {
  display: grid;
  max-width: 520px;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.stats-row div {
  min-width: 0;
}

.stats-row dt {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 850;
}

.stats-row dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.home-section,
.programs,
.latest-news,
.content-band {
  padding: 58px 0;
}

.home-section {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.home-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.home-section-text .home-section-grid {
  grid-template-columns: minmax(0, 820px);
}

.home-section-media_right .home-section-media {
  order: 2;
}

.home-section-media {
  margin: 0;
}

.home-section-media img {
  width: 100%;
  max-height: 390px;
  border-radius: 8px;
  object-fit: cover;
}

.home-section-copy h2 {
  margin: 0 0 12px;
  color: var(--green);
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  line-height: 1.16;
}

.home-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* Leadership / welcome message (e.g. "Sambutan Dekan"). No model field needed:
   admin creates a media_left/right HomepageSection with a portrait image and a
   <blockquote> in the body, and it renders as a framed portrait + pull-quote. */
.home-section-media img {
  box-shadow: var(--shadow-soft);
}

.home-section-copy blockquote {
  margin: 18px 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--gold);
  color: #2c382f;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.12rem, 1.7vw, 1.38rem);
  line-height: 1.5;
}

.home-section-copy blockquote p:last-child {
  margin-bottom: 0;
}

.home-section-copy blockquote cite {
  display: block;
  margin-top: 10px;
  color: var(--green);
  font-weight: 700;
  font-style: normal;
  font-size: 0.95rem;
}

.section-header {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-header.inline {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-header h2 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 2rem;
}

.section-header p,
.meta,
.empty-state {
  color: var(--muted);
}

.program-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.program-grid a,
.post-card,
.sidebar,
.article,
.result-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(12, 34, 24, 0.06);
}

.program-grid a {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.program-grid span {
  color: var(--green);
  font-weight: 800;
}

.program-grid small {
  color: var(--muted);
  font-size: 0.9rem;
}

.post-card {
  overflow: hidden;
}

.post-card > div {
  padding: 18px;
}

.post-card h3 {
  margin: 4px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.post-card p {
  margin: 0 0 12px;
}

.post-image {
  display: block;
  min-height: 190px;
  background: #e7eee9;
}

.post-image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.text-link {
  color: var(--green);
  font-weight: 800;
}

.page-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 42px 0;
}

.page-header h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.breadcrumb {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 42px 0 70px;
}

.article {
  padding: 28px;
}

.featured-image {
  width: 100%;
  margin-bottom: 24px;
  border-radius: 8px;
}

.featured-image.side {
  max-width: 420px;
  float: left;
  margin: 0 24px 16px 0;
}

.entry-content {
  overflow-wrap: anywhere;
}

.entry-content a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: underline;
}

.wp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.wp-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.pdf-download a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--green);
  font-weight: 800;
  padding: 9px 13px;
  text-decoration: none;
}

.wp-counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.wp-counter-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  text-align: center;
}

.wp-counter-grid dt {
  color: var(--green);
  font-size: 1.6rem;
  font-weight: 850;
}

.wp-counter-grid dd {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.wp-video {
  display: block;
  width: 100%;
  max-height: 640px;
  margin: 20px 0;
  border-radius: 8px;
  background: #111;
}

.entry-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.entry-content td,
.entry-content th {
  border: 1px solid var(--line);
  padding: 8px 10px;
  vertical-align: top;
}

.entry-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.entry-taxonomy a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 750;
}

.sidebar {
  align-self: start;
  padding: 20px;
}

.sidebar h2 {
  margin-top: 0;
  color: var(--green);
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.sidebar a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.sidebar small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.search-form {
  display: flex;
  max-width: 620px;
  gap: 10px;
  margin-top: 22px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  padding: 10px 12px;
}

.result-list {
  display: grid;
  gap: 14px;
}

.result-list article {
  padding: 20px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  padding: 42px 0 70px;
}

.contact-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(12, 34, 24, 0.06);
  padding: 24px;
}

.contact-panel h2 {
  margin-top: 0;
  color: var(--green);
  font-family: var(--font-heading);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #25342d;
  font-weight: 750;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

.contact-form ul.errorlist,
.contact-form .errorlist {
  margin: 0;
  padding: 0;
  color: #a42222;
  font-size: 0.9rem;
  font-weight: 650;
  list-style: none;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.pagination a,
.pagination span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 8px 12px;
}

.site-footer {
  background: #10251d;
  color: rgba(255, 255, 255, 0.82);
  padding: 42px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 26px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer a {
  display: block;
  margin: 7px 0;
}

.visitor-box {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 16px;
}

.visitor-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.visitor-box li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  padding: 6px 0;
}

.footer-bottom {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  color: rgba(255, 255, 255, 0.62);
}

.narrow {
  max-width: 720px;
}

@media (max-width: 920px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 70px;
    gap: 12px;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .header-cta {
    margin-left: 0;
  }

  .language-switcher {
    margin-left: auto;
  }

  .main-nav {
    display: none;
    order: 4;
    width: 100%;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    display: block;
    padding: 10px 0 18px;
  }

  .main-nav > ul > li > a {
    border-top: 1px solid var(--line);
    padding: 12px 0;
  }

  .main-nav li ul {
    position: static;
    display: block;
    width: auto;
    max-height: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 6px 14px;
  }

  .article-layout,
  .contact-layout,
  .footer-grid,
  .home-section-grid {
    grid-template-columns: 1fr;
  }

  .home-section-media_right .home-section-media {
    order: 0;
  }

  .program-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
    padding: 56px 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-visual {
    height: 320px;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .program-grid,
  .card-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .section-header.inline,
  .search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .featured-image.side {
    float: none;
    max-width: none;
    margin: 0 0 18px;
  }
}

/* WordPress faperta-world-class parity pass */
:root {
  --green: #0a4d2e;
  --gold: #c5a059;
  --ink: #1a1a1a;
  --muted: #6c757d;
  --soft: #f8f9fa;
  --container: 1280px;
}

.site-header {
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header-inner {
  min-height: 90px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
}

.main-nav > ul > li {
  padding: 25px 0;
}

.main-nav li.has-children > a::after {
  content: "\25BE";
  margin-left: 8px;
  color: #a0aaa4;
  font-size: 0.78em;
}

.main-nav li ul {
  visibility: hidden;
  display: block;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  min-width: 260px;
  border-radius: 8px;
}

.main-nav li:hover > ul,
.main-nav li:focus-within > ul {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.main-nav li ul a {
  border-left: 3px solid transparent;
  color: #555;
  font-weight: 550;
  transition: background 160ms ease, color 160ms ease, padding 160ms ease, border-color 160ms ease;
}

.main-nav li ul a:hover {
  border-left-color: var(--gold);
  background: #f8fcf9;
  color: var(--green);
  padding-left: 24px;
}

.language-switcher {
  border-color: rgba(10, 77, 46, 0.2);
  box-shadow: 0 8px 20px rgba(10, 77, 46, 0.08);
}

.language-switcher a.is-active {
  background: var(--gold);
  color: #0b160f;
}

.hero {
  min-height: 650px;
  background: radial-gradient(circle at 10% 20%, #0a4d2e, #052b19);
  padding: 80px 0 100px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 50px;
  border-radius: 36px;
  padding: 40px;
}

.hero h1 {
  font-size: clamp(2.6rem, 4.4vw, 3.4rem);
}

.hero h1 span {
  color: var(--gold);
}

.hero .eyebrow {
  margin-bottom: 15px;
  font-weight: 800;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.hero .button.primary {
  background: var(--gold);
  color: #0b160f;
}

.hero .button.primary:hover,
.header-cta:hover {
  background: var(--gold);
  color: #0b160f;
  transform: translateY(-2px);
}

.hero-visual {
  height: 420px;
  border-radius: 26px;
}

.stats-row dt {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
}

.stats-row dd {
  text-transform: uppercase;
  letter-spacing: 0;
}

.programs {
  background: #fff;
  padding: 100px 0;
}

.section-header.centered {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.program-grid {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 30px;
}

.program-grid a.program-card {
  position: relative;
  min-height: 250px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  padding: 34px 30px;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.program-grid a.program-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--green);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.program-grid a.program-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-7px);
}

.program-grid a.program-card:hover::before {
  transform: scaleX(1);
}

.program-icon {
  display: inline-flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f4f9f6;
  color: var(--green);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
}

.program-grid a.program-card > span:nth-of-type(2) {
  color: var(--green);
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.25;
}

.program-card strong {
  align-self: start;
  color: var(--green);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stats-showcase {
  background: #fff;
  padding: 70px 0 90px;
}

.badge-label {
  display: inline-block;
  margin: 0 0 18px;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 8px 18px;
}

.statistik-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px;
}

.stat-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  border-radius: 22px;
  background: #faebd7;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 30px 24px;
  text-align: center;
}

.stat-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #0f7a3a;
  color: #fff;
  font-weight: 900;
}

.stat-card strong {
  color: #000;
  font-size: 1.9rem;
  font-weight: 850;
  line-height: 1.1;
}

.stat-card span:last-child {
  color: #000;
  font-size: 0.88rem;
  font-weight: 750;
}

.news-slider-section {
  background: #f8f9fa;
  overflow: hidden;
  padding: 80px 0;
}

.news-slider-section.announcements {
  padding-top: 40px;
}

.visual-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.visual-card {
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 180ms ease;
}

.visual-card:hover {
  transform: translateY(-5px);
}

.visual-card a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
}

.visual-card img,
.visual-fallback {
  width: 100%;
  height: 100%;
}

.visual-card img {
  object-fit: cover;
  transition: transform 240ms ease;
}

.visual-card:hover img {
  transform: scale(1.05);
}

.visual-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0a4d2e, #052b19);
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-heading);
  font-weight: 900;
}

.visual-overlay {
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.visual-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 10px;
  padding: 30px;
}

.visual-date {
  justify-self: start;
  border-radius: 4px;
  background: var(--gold);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  text-transform: uppercase;
}

.visual-content strong {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.3;
}

.post-card,
.article,
.sidebar,
.contact-panel,
.contact-form,
.result-list article {
  border-color: rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.post-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.post-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.post-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.post-card .text-link {
  margin-top: auto;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.post-image {
  display: grid;
  height: 210px;
  min-height: 210px;
  place-items: center;
  background: #eef2f0;
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 900;
}

.post-image img {
  height: 210px;
}

.page-header {
  background: var(--soft);
  padding: 70px 0 35px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.85rem, 3vw, 2.4rem);
}

.content-band,
.article-layout,
.contact-layout {
  padding-top: 40px;
}

.article {
  border-radius: 24px;
  padding: 26px 24px 32px;
}

.article-layout {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.featured-image {
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.page-article.has-featured {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: start;
}

.page-featured-image {
  margin: 0;
}

.page-featured-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.entry-taxonomy {
  justify-content: space-between;
}

.entry-taxonomy div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.entry-taxonomy strong {
  color: #25342d;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.post-neighbor-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.post-neighbor-nav div:last-child {
  text-align: right;
}

.post-neighbor-nav a {
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 750;
}

.post-neighbor-nav strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.kip-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.kip-card {
  border-radius: 14px;
  background: #fff;
}

.kip-main-title {
  margin-bottom: 25px;
  color: #14532d;
  font-size: 1.75rem;
  font-weight: 850;
}

.kip-subtitle {
  margin-bottom: 5px;
  color: #25342d;
  font-weight: 800;
}

.kip-subdesc {
  margin-bottom: 20px;
  color: #555;
  font-size: 0.95rem;
}

.kip-section-title {
  margin-top: 30px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, #0b3d2e, #14532d);
  color: #fff;
  font-weight: 750;
  padding: 12px 18px;
}

.kip-table-container {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.kip-table {
  display: table;
  width: 100%;
  border-collapse: collapse;
}

.kip-table thead {
  background: #14532d;
  color: #fff;
}

.kip-table th,
.kip-table td {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.kip-table th:last-child,
.kip-table td:last-child {
  width: 120px;
  text-align: center;
}

.kip-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.kip-btn {
  display: inline-block;
  border-radius: 6px;
  background: #16a34a;
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 68px;
  padding: 6px 16px;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
}

.kip-btn:hover {
  background: #15803d;
}

.pagination {
  display: inline-flex;
  margin-right: auto;
  margin-left: auto;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  padding: 4px 8px;
}

.pagination a,
.pagination span {
  border-color: transparent;
  border-radius: 999px;
  color: var(--green);
  font-weight: 750;
}

.pagination a:hover {
  background: var(--green);
  color: #fff;
}

.site-footer {
  position: relative;
  overflow: visible;
  border-top: 5px solid var(--gold);
  background: #052b19;
  font-size: 0.9rem;
  margin-top: 50px;
  padding: 80px 0 0;
}

.footer-grid {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 50px;
  padding-right: min(300px, 24vw);
}

.footer-logo {
  font-size: 1.5rem;
}

.site-footer h3 {
  position: relative;
  padding-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.site-footer h3::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
  content: "";
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.map-link {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 10px 20px;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
}

.visitor-box {
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  max-height: 320px;
  overflow: hidden;
  border: 0;
  background: #0b3d2e;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.visitor-box h3 {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: center;
}

.visitor-box h3::after {
  display: none;
}

.visitor-box ul {
  max-height: 230px;
  overflow-y: auto;
  padding-right: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding: 30px 0;
  text-align: left;
}

@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-right: 0;
  }

  .visitor-box {
    position: static;
    width: auto;
  }
}

@media (max-width: 920px) {
  .header-inner {
    min-height: 70px;
  }

  .site-header {
    height: auto;
  }

  .main-nav li ul {
    visibility: visible;
    display: none;
    opacity: 1;
    transform: none;
  }

  .main-nav li.submenu-open > ul {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .hero-content,
  .page-article.has-featured {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy > p:not(.eyebrow),
  .stats-row {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .visual-card-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .hero-content {
    border-radius: 24px;
    padding: 24px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .visual-card-row,
  .footer-grid,
  .post-neighbor-nav {
    grid-template-columns: 1fr;
  }

  .post-neighbor-nav div:last-child {
    text-align: left;
  }

  .footer-bottom {
    display: block;
  }
}

/* =========================================================
   WORLD-CLASS ENHANCEMENT LAYER
   Benchmarked against ugm.ac.id and ui.ac.id.
   Theme/template domain only (no engine changes).
   ========================================================= */

/* Accessibility: skip link + focus visibility */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.program-card:focus-visible,
.quicklink-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

#main-content:focus {
  outline: none;
}

/* Utility top bar */
.topbar {
  background: var(--green);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.topbar-links,
.topbar-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-links a,
.topbar-social a,
.topbar .language-switcher a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  transition: color 140ms ease;
}

.topbar-links a:hover,
.topbar-social a:hover {
  color: var(--gold);
}

.topbar-social {
  display: flex;
  gap: 8px;
}

.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.topbar .language-switcher {
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: transparent;
}

.topbar .language-switcher a {
  min-width: 32px;
  min-height: 24px;
  padding: 2px 9px;
  font-size: 0.76rem;
}

.topbar .language-switcher a + a {
  border-left-color: rgba(255, 255, 255, 0.28);
}

.topbar .language-switcher a.is-active,
.topbar .language-switcher a:hover {
  background: var(--gold);
  color: #20160a;
}

/* Header actions + search */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.search-toggle:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.header-search {
  border-top: 1px solid var(--line);
  background: #fff;
}

.header-search-form {
  display: flex;
  gap: 10px;
  padding: 14px 0;
}

.header-search-form input {
  flex: 1;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.header-search-form input:focus {
  border-color: var(--green);
  outline: none;
}

.header-search-form button {
  min-height: 46px;
  padding: 0 26px;
  border: none;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Program icons (SVG) */
.program-icon svg {
  width: 30px;
  height: 30px;
}

/* Stat cards refined to premium white/emerald */
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(10, 40, 25, 0.07);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(10, 40, 25, 0.12);
}

.stat-icon {
  background: linear-gradient(150deg, #0f7a3a, var(--green));
}

.stat-icon svg {
  width: 28px;
  height: 28px;
}

.stat-card strong,
.stat-number {
  color: var(--green);
}

.stat-card span:last-child {
  color: var(--muted);
}

/* Quick links / services */
.quicklinks {
  background: var(--soft);
  padding: 72px 0;
}

.quicklink-grid {
  display: grid;
  /* Fixed 4 columns on desktop so rows stay balanced (e.g. 8 cards = 4+4)
     instead of auto-fit producing an orphan card on the second row. */
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .quicklink-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quicklink-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-align: center;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(10, 40, 25, 0.05);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.quicklink-card:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 122, 58, 0.4);
  box-shadow: 0 20px 40px rgba(10, 40, 25, 0.12);
}

.quicklink-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #f0f7f2;
  color: var(--green);
  transition: background 200ms ease, color 200ms ease;
}

.quicklink-card:hover .quicklink-icon {
  background: var(--green);
  color: #fff;
}

.quicklink-icon svg {
  width: 28px;
  height: 28px;
}

/* Carousel */
.carousel {
  position: relative;
}

.carousel .visual-card-row {
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  grid-template-columns: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 22px;
  padding-bottom: 6px;
  -ms-overflow-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 122, 58, 0.4) transparent;
}

.carousel .visual-card-row::-webkit-scrollbar {
  height: 6px;
}

.carousel .visual-card-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 122, 58, 0.35);
}

.carousel .visual-card {
  scroll-snap-align: start;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(10, 40, 25, 0.16);
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.carousel-btn:hover {
  background: var(--green);
  color: #fff;
  transform: scale(1.05);
}

.carousel-btn.prev {
  left: -10px;
}

.carousel-btn.next {
  right: -10px;
}

.carousel-btn[hidden] {
  display: none;
}

/* Numbered pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 44px;
}

.page-num,
.page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.page-num:hover,
.page-arrow:hover {
  border-color: var(--green);
  color: var(--green);
}

.page-num.is-current {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.page-arrow.is-disabled {
  opacity: 0.4;
  cursor: default;
}

.page-gap {
  padding: 0 4px;
  color: var(--muted);
}

/* Page header meta line */
.page-header-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(10, 40, 25, 0.28);
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.back-to-top:hover {
  background: #0f7a3a;
  transform: translateY(-3px);
}

.back-to-top[hidden] {
  display: none;
}

@media (max-width: 920px) {
  .topbar-links a:nth-child(n + 3) {
    display: none;
  }

  .header-search-form {
    flex-wrap: wrap;
  }

  .carousel-btn {
    display: none;
  }

  .carousel .visual-card-row {
    grid-auto-columns: minmax(78%, 1fr);
  }
}

@media (max-width: 640px) {
  .topbar-links {
    gap: 12px;
  }

  .topbar-links a:nth-child(n + 2) {
    display: none;
  }

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

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

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

/* =========================================================
   SVG SAFETY NET + MEGA MENU + MOBILE DRAWER
   ========================================================= */

/* Never let an inline icon blow up if a sizing rule is missing */
svg {
  max-width: 100%;
}

.program-icon svg,
.stat-icon svg,
.quicklink-icon svg {
  width: 26px;
  height: 26px;
}

/* Submenu chevron button: hidden on desktop (hover opens dropdown) */
.submenu-toggle {
  display: none;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
}

.nav-drawer-head {
  display: none;
}

/* ---- Desktop multi-column mega menu (items with many children) ---- */
@media (min-width: 921px) {
  .main-nav > ul > li.mega > ul.submenu {
    width: min(540px, calc(100vw - 40px));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 12px;
    padding: 14px;
  }

  .main-nav > ul > li.mega > ul.submenu .submenu-more {
    grid-column: 1 / -1;
    margin-top: 4px;
    border-top: 1px solid var(--line);
    padding-top: 6px;
  }

  /* Keep wide panels on-screen for right-side nav items */
  .main-nav > ul > li.mega:nth-last-child(-n + 3) > ul.submenu {
    left: auto;
    right: -16px;
  }
}

/* ---- Mobile right-side drawer + nested accordion ---- */
@media (max-width: 920px) {
  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(8, 20, 14, 0.5);
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1100;
    display: block;
    width: min(360px, 86vw);
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    background: #fff;
    box-shadow: -18px 0 50px rgba(0, 0, 0, 0.22);
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 280ms ease;
  }

  .main-nav.is-open {
    display: block;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .nav-drawer-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--green);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
  }

  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
  }

  .main-nav > ul {
    display: block;
    padding: 8px 0 28px;
  }

  .main-nav > ul > li {
    position: relative;
    padding: 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav > ul > li > a {
    border-top: 0;
    padding: 15px 56px 15px 20px;
    font-size: 1rem;
    font-weight: 700;
  }

  .main-nav li.has-children > a::after {
    display: none;
  }

  .submenu-toggle {
    display: inline-flex;
    position: absolute;
    top: 4px;
    right: 6px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    transition: transform 220ms ease, background 160ms ease;
  }

  .submenu-toggle:hover {
    background: #f0f7f2;
  }

  .main-nav li.submenu-open > .submenu-toggle {
    transform: rotate(180deg);
  }

  .main-nav li ul.submenu {
    position: static;
    display: none;
    width: auto;
    max-height: none;
    margin: 0;
    padding: 4px 0 10px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #f7faf8;
  }

  .main-nav li.submenu-open > ul.submenu {
    display: block;
  }

  .main-nav li ul.submenu a {
    padding: 11px 20px 11px 28px;
    font-size: 0.94rem;
    color: #2c3a33;
  }

  .main-nav li ul.submenu .submenu-more a {
    color: var(--green);
    font-weight: 700;
  }
}

/* =========================================================
   SOFTENING PASS - round corners, soft shadows, less "boxy"
   ========================================================= */

:root {
  --radius-card: 22px;
  --radius-media: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 16px 40px -16px rgba(12, 42, 28, 0.22);
  --shadow-hover: 0 30px 60px -22px rgba(12, 42, 28, 0.3);
  --hairline: rgba(16, 60, 40, 0.08);
}

/* Pill buttons */
.button,
.header-cta,
.search-form button,
.header-search-form button,
.contact-form button,
.button.primary,
.button.secondary,
.button.outline {
  border-radius: var(--radius-pill);
  padding: 12px 26px;
}

.button.primary,
.header-cta {
  box-shadow: 0 12px 26px -10px rgba(10, 77, 46, 0.5);
}

.button:hover {
  transform: translateY(-2px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

/* Cards: rounder, hairline border, soft diffuse shadow */
.program-grid a,
.post-card,
.sidebar,
.article,
.result-list article,
.program-grid a.program-card,
.stat-card,
.quicklink-card,
.visual-card,
.contact-panel,
.contact-form,
.home-section-media,
.home-section-media img {
  border-radius: var(--radius-card);
}

.program-grid a,
.post-card,
.sidebar,
.result-list article,
.program-grid a.program-card,
.stat-card,
.quicklink-card {
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.program-grid a:hover,
.post-card:hover,
.program-grid a.program-card:hover,
.stat-card:hover,
.quicklink-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(16, 60, 40, 0.16);
}

/* Media corners follow the card radius */
.post-card {
  overflow: hidden;
}

.post-image img,
.post-image {
  border-radius: 0;
}

.visual-card,
.visual-card a,
.visual-card img,
.visual-fallback {
  border-radius: var(--radius-card);
}

.featured-image,
.page-featured-image img,
.hero-visual img,
.article img {
  border-radius: var(--radius-media);
}

/* Inputs softer */
.search-form input,
.header-search-form input,
.contact-form input,
.contact-form textarea {
  border-radius: 14px;
  border-color: var(--hairline);
}

.header-search-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 90, 56, 0.12);
}

/* Round the small icon controls */
.search-toggle {
  border-radius: var(--radius-pill);
  border-color: var(--hairline);
}

.language-switcher {
  border-radius: var(--radius-pill);
}

.topbar-social a {
  border-radius: var(--radius-pill);
}

/* Pagination: pill numbers, circular arrows */
.page-num {
  border-radius: 14px;
  border-color: var(--hairline);
}

.page-arrow {
  border-radius: var(--radius-pill);
  border-color: var(--hairline);
}

/* Section headers: a touch more air and a softer page header */
.page-header {
  border-bottom: 0;
  background: linear-gradient(180deg, #ffffff, #f4f8f5);
}

.section-header {
  margin-bottom: 30px;
}

/* Slightly more generous grid rhythm */
.program-grid,
.card-grid {
  gap: 26px;
}

.statistik-grid,
.quicklink-grid {
  gap: 24px;
}

/* Dropdown menus less boxy */
.main-nav li ul {
  border-radius: 16px;
  border-top-width: 1px;
  box-shadow: var(--shadow-soft);
}

/* Sidebar latest-news links: soften the hard list look */
.sidebar a {
  border-radius: 12px;
}

@media (max-width: 920px) {
  .program-grid a:hover,
  .post-card:hover,
  .stat-card:hover,
  .quicklink-card:hover {
    transform: none;
  }
}

/* News card chips + refined meta */
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 0.82rem;
}

.card-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(16, 90, 56, 0.1);
  color: var(--green);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.card-chip:hover {
  background: var(--green);
  color: #fff;
}

.card-date {
  color: var(--muted);
  font-weight: 600;
}

/* Animated "read more" arrow */
.text-link span {
  display: inline-block;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

/* Sidebar latest-news as a clean hover list */
.sidebar a {
  display: block;
  padding: 12px 14px;
  transition: background 160ms ease, transform 160ms ease;
}

.sidebar a:hover {
  background: #f2f8f4;
  transform: translateX(2px);
}

.sidebar a small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

/* Footer: soften the social pills and map link */
.social-icons a {
  transition: background 160ms ease, transform 160ms ease;
}

.social-icons a:hover {
  background: var(--gold);
  color: #20160a;
  transform: translateY(-2px);
}

.map-link {
  border-radius: var(--radius-pill);
}

/* =========================================================
   ACTIVE NAV + ACCESSIBILITY TOOLBAR + LIGHTBOX + PDF LINKS
   ========================================================= */

/* Active section in nav */
.main-nav > ul > li.is-active > a {
  color: var(--green);
}

.main-nav > ul > li.is-active > a::before {
  right: 0;
  left: 0;
}

/* PDF / document links as a clear button */
.pdf-download {
  margin: 18px 0;
}

.pdf-download a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid rgba(179, 38, 30, 0.25);
  border-radius: 14px;
  background: #fdf1f0;
  color: #a3231c;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.pdf-download a::before {
  content: "PDF";
  padding: 3px 7px;
  border-radius: 6px;
  background: #b3261e;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pdf-download a:hover {
  background: #fce3e1;
  transform: translateY(-2px);
}

/* Zoomable content images */
.entry-content img.zoomable,
.wp-gallery img.zoomable,
.page-featured-image img.zoomable {
  cursor: zoom-in;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  background: rgba(6, 16, 11, 0.93);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(1100px, 92vw);
  margin: 0;
}

.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  margin-top: 12px;
  max-width: 760px;
  color: #e7eee9;
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.lightbox-close,
.lightbox-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.05);
}

.lightbox-nav[hidden] {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

/* Accessibility floating toolbar */
.a11y {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 45;
}

.a11y-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(12, 40, 28, 0.3);
  transition: transform 160ms ease;
}

.a11y-fab:hover {
  transform: translateY(-3px);
}

.a11y-panel {
  position: absolute;
  left: 0;
  bottom: 60px;
  width: 232px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-hover);
}

.a11y-panel[hidden] {
  display: none;
}

.a11y-title {
  margin: 0 0 2px;
  color: var(--green);
  font-weight: 800;
  font-size: 0.95rem;
}

.a11y-group {
  display: flex;
  gap: 8px;
}

.a11y-group button {
  flex: 1;
  min-height: 42px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.a11y-group button:hover {
  background: var(--green);
  color: #fff;
}

.a11y-opt {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.a11y-opt:hover {
  border-color: var(--green);
}

.a11y-opt.is-on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.a11y-reset {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Accessibility states */
body {
  font-size: 1rem;
}

html.a11y-lg {
  font-size: 109%;
}

html.a11y-xl {
  font-size: 118%;
}

html.a11y-xxl {
  font-size: 128%;
}

body.a11y-contrast {
  --muted: #14241c;
  --line: #11332a;
  --hairline: rgba(17, 51, 42, 0.45);
}

body.a11y-contrast .card-date,
body.a11y-contrast .section-header p,
body.a11y-contrast .breadcrumb,
body.a11y-contrast .meta {
  color: #14241c;
}

body.a11y-readable,
body.a11y-readable .entry-content,
body.a11y-readable h1,
body.a11y-readable h2,
body.a11y-readable h3,
body.a11y-readable .hero h1,
body.a11y-readable .section-header h2 {
  font-family: Verdana, "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0.01em;
}

body.a11y-readable {
  line-height: 1.85;
}

body.a11y-links .entry-content a,
body.a11y-links .main-nav a,
body.a11y-links .sidebar a,
body.a11y-links .text-link {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .a11y {
    left: 14px;
    bottom: 14px;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }
}

/* =========================================================
   BILINGUAL - language buttons + Google Translate widget tidy
   ========================================================= */

.language-switcher .lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 26px;
  padding: 3px 11px;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.language-switcher .lang-btn + .lang-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.topbar .language-switcher .lang-btn {
  color: rgba(255, 255, 255, 0.9);
}

.language-switcher .lang-btn.is-active {
  background: var(--gold);
  color: #20160a;
}

/* Keep Google's injected widget machinery out of sight; we drive it ourselves */
#google_translate_element {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.goog-te-banner-frame,
.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

.goog-te-gadget {
  font-size: 0 !important;
}

font.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* =========================================================
   PUBLIC PAGE PARITY - visitor widget, PDF viewer, Gutenberg,
   content tables, search highlight, hero tuning
   ========================================================= */

/* Visitor widget: flags + top 5 + "Lainnya" expandable */
.visitor-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.visitor-flag {
  font-size: 1.02rem;
  line-height: 1;
}

.visitor-empty {
  opacity: 0.8;
}

.visitor-others-toggle {
  padding: 0 !important;
}

.visitor-others-toggle button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--gold);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.visitor-others-toggle button strong {
  color: #fff;
}

.visitor-others-toggle.is-open button span::after {
  content: " \25B4";
}

.visitor-others-toggle:not(.is-open) button span::after {
  content: " \25BE";
}

.visitor-others[hidden] {
  display: none;
}

.visitor-others ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Inline PDF viewer (parity with pdf-embedder) */
.pdf-embed {
  margin: 22px 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.pdf-embed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #f4f8f5;
  border-bottom: 1px solid var(--hairline);
}

.pdf-embed-title {
  overflow: hidden;
  font-weight: 700;
  color: var(--green);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-embed-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.pdf-embed-download {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.pdf-embed-full {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--green);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.pdf-embed-full:hover {
  background: #eef3f0;
}

/* Fullscreen overlay (same-origin iframe, no extra deps) */
.pdf-embed.is-full {
  position: fixed;
  inset: 0;
  z-index: 1200;
  margin: 0;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

.pdf-embed.is-full .pdf-embed-frame {
  flex: 1 1 auto;
  height: auto;
}

body.pdf-embed-lock {
  overflow: hidden;
}

.pdf-embed-frame {
  width: 100%;
  height: 600px;
  background: #eef3f0;
}

.pdf-embed-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .pdf-embed-frame {
    height: 70vh;
  }
}

/* Gutenberg block subset for imported content */
.entry-content figure {
  margin: 22px 0;
}

.entry-content figure img,
.wp-block-image img {
  border-radius: var(--radius-media);
}

.entry-content figcaption,
.wp-element-caption,
.wp-block-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.entry-content blockquote,
.wp-block-quote {
  margin: 22px 0;
  padding: 6px 22px;
  border-left: 4px solid var(--gold);
  color: #33403a;
  font-style: italic;
}

.wp-block-pullquote {
  margin: 26px 0;
  padding: 18px 0;
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
  text-align: center;
  font-style: italic;
}

.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 22px 0;
}

.wp-block-column {
  flex: 1 1 240px;
}

.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green) !important;
}

.wp-block-separator,
.entry-content hr {
  margin: 28px auto;
  max-width: 140px;
  border: 0;
  border-top: 1px solid var(--line);
}

.wp-block-media-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin: 22px 0;
}

.wp-block-group,
.wp-block-cover {
  border-radius: var(--radius-card);
}

.wp-block-cover {
  position: relative;
  padding: 44px;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.wp-block-embed iframe,
.entry-content iframe {
  max-width: 100%;
}

@media (max-width: 640px) {
  .wp-block-media-text {
    grid-template-columns: 1fr;
  }
}

/* Content tables (doc/PPID pages): scrollable + striped */
.table-scroll {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
}

.table-scroll table,
.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.table-scroll table {
  margin: 0;
}

.entry-content th {
  background: var(--green);
  color: #fff;
  text-align: left;
}

.entry-content th,
.entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--line);
}

.entry-content tbody tr:nth-child(even) {
  background: #f6faf7;
}

/* Search result highlight + tidy results */
.result-list article {
  padding: 20px 22px;
}

.result-list h2 {
  margin: 0 0 6px;
  font-size: 1.18rem;
}

.result-list h2 a {
  color: var(--green);
}

.result-list mark,
.entry-content mark {
  padding: 0 2px;
  border-radius: 3px;
  background: #fff3bf;
  color: inherit;
}

/* Hero tuning desktop/mobile */
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 921px) {
  .hero-visual {
    min-height: 360px;
  }
}

/* Contact page polish */
.contact-form-title,
.contact-panel h2 {
  margin: 0 0 16px;
  color: var(--green);
}

.contact-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f0f7f2;
  color: var(--green);
}

.contact-list a {
  color: var(--green);
  font-weight: 600;
}

.contact-map {
  width: 100%;
}

/* =========================================================
   WORDPRESS CONTENT COMPATIBILITY
   Migrated from legacy theme "Additional CSS" (custom_css) +
   standard WP alignment/caption/TablePress classes so imported
   content (alignleft images, captions, dosen tables, Google Forms)
   renders 1:1. Header-only WP selectors are intentionally omitted
   because the Django markup differs.
   ========================================================= */

.entry-content img.alignleft,
.entry-content .alignleft {
  float: left;
  margin: 6px 22px 12px 0;
  max-width: 800px;
  height: auto;
}

.entry-content img.alignright,
.entry-content .alignright {
  float: right;
  margin: 6px 0 12px 22px;
  max-width: 800px;
  height: auto;
}

.entry-content img.aligncenter,
.entry-content .aligncenter,
.entry-content .center-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.entry-content img.alignnone {
  height: auto;
}

.entry-content p {
  text-align: justify;
  line-height: 1.7;
}

.entry-content .wp-caption {
  max-width: 100%;
  margin-bottom: 16px;
}

.entry-content .wp-caption img {
  display: block;
}

.entry-content .wp-caption-text,
.entry-content .wp-element-caption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

/* Responsive Google Form embed wrapper (from legacy custom_css) */
.entry-content .gform-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 0;
  margin: 18px auto;
  padding-bottom: 150%;
}

.entry-content .gform-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* TablePress tables (data already inline HTML in content) */
.entry-content .tablepress {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
}

.entry-content .tablepress td,
.entry-content .tablepress th {
  padding: 10px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.entry-content .tablepress thead th,
.entry-content .tablepress .row-1 th {
  background: var(--green);
  color: #fff;
}

.entry-content .tablepress tbody tr.even,
.entry-content .tablepress tbody tr:nth-child(even) {
  background: #f6faf7;
}

.entry-content .tablepress .row-hover tr:hover {
  background: #eef5f0;
}

.entry-content .tablepress img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .entry-content img.alignleft,
  .entry-content img.alignright,
  .entry-content .alignleft,
  .entry-content .alignright {
    float: none;
    display: block;
    margin: 0 auto 24px;
  }
}

/* Single post: reading time + share */
.reading-time {
  color: var(--muted);
}

.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 26px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.post-share-label {
  font-weight: 700;
  color: var(--ink);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

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

.share-btn.wa:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.share-btn.fb:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.share-btn.x:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

.share-btn.copy.is-copied {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* Self-hosted math captcha (contact form) */
.captcha-field {
  margin: 4px 0 8px;
}

.captcha-field .field-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.captcha-image {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: #fff;
}

.captcha-refresh {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.captcha-refresh:hover {
  background: var(--green);
  color: #fff;
}

/* Larger, friendlier answer target */
.captcha-field input[name="captcha_answer"] {
  min-height: 46px;
  max-width: 160px;
  font-size: 1.05rem;
}

.captcha-hint {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--muted, #5b6b62);
}

/* =========================================================
   Gutenberg blocks - extended/rare classes (block-class parity)
   ========================================================= */
.entry-content .wp-block-heading { margin: 28px 0 12px; }

.entry-content .wp-block-list { margin: 16px 0; padding-left: 22px; }

.entry-content .wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
  list-style: none;
  padding: 0;
}
.entry-content .wp-block-gallery .wp-block-image,
.entry-content .wp-block-gallery figure { flex: 1 1 220px; margin: 0; }
.entry-content .wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

.entry-content .wp-block-spacer { display: block; }

.entry-content .wp-block-code,
.entry-content .wp-block-preformatted {
  margin: 22px 0;
  padding: 14px 16px;
  background: #0f1a14;
  color: #eaf2ec;
  border-radius: 8px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}
.entry-content .wp-block-code code { background: none; color: inherit; padding: 0; }

.entry-content .wp-block-verse {
  margin: 22px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  white-space: pre-wrap;
}

.entry-content .wp-block-table { margin: 22px 0; overflow-x: auto; }
.entry-content .wp-block-table table { width: 100%; border-collapse: collapse; }
.entry-content .wp-block-table th,
.entry-content .wp-block-table td { border: 1px solid var(--hairline); padding: 8px 10px; }
.entry-content .wp-block-table thead th { background: var(--green); color: #fff; }
.entry-content .wp-block-table figcaption { margin-top: 6px; font-size: 0.85rem; color: var(--muted); }

.entry-content .wp-block-file {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 12px 14px;
  background: #f4f8f5;
  border: 1px solid var(--hairline);
  border-radius: 10px;
}

.entry-content .wp-block-video video,
.entry-content .wp-block-audio audio { width: 100%; }
.entry-content .wp-block-video figure { margin: 22px 0; }

.entry-content .wp-block-details {
  margin: 18px 0;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: #fff;
}
.entry-content .wp-block-details > summary { cursor: pointer; font-weight: 700; color: var(--green); }

.entry-content .wp-block-archives,
.entry-content .wp-block-categories,
.entry-content .wp-block-latest-posts,
.entry-content .wp-block-page-list { list-style: none; margin: 16px 0; padding: 0; }
.entry-content .wp-block-latest-posts li,
.entry-content .wp-block-categories li { margin: 4px 0; }

/* Alignment + text-align utilities used across blocks */
.entry-content .alignwide { margin-left: -40px; margin-right: -40px; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.entry-content .has-text-align-center { text-align: center; }
.entry-content .has-text-align-right { text-align: right; }
.entry-content .has-text-align-left { text-align: left; }

@media (max-width: 760px) {
  .entry-content .alignwide { margin-left: 0; margin-right: 0; }
}

/* Composer preview: clickable block affordance (B7) */
.cms-pv-block {
  position: relative;
  cursor: pointer;
}

.cms-pv-block:hover,
.cms-pv-block:focus {
  outline: 2px dashed var(--gold, #b8860b);
  outline-offset: -2px;
}

/* Password strength meter + checklist (reset/set password) */
.pw-strength {
  margin: 8px 0 4px;
}

.pw-bar {
  height: 8px;
  border-radius: 999px;
  background: #e6ece8;
  overflow: hidden;
}

.pw-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 160ms ease, background 160ms ease;
}

.pw-bar span.weak { background: #d64545; }
.pw-bar span.fair { background: #d99100; }
.pw-bar span.good { background: #2f8f4e; }
.pw-bar span.strong { background: var(--green); }

.pw-check {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 14px;
  font-size: 0.82rem;
  color: #8a978f;
}

.pw-check li::before {
  content: "\2022 ";
  color: #c2ccc6;
}

.pw-check li.ok {
  color: var(--green);
}

.pw-check li.ok::before {
  content: "\2713 ";
  color: var(--green);
}

/* =========================================================
   PRINT STYLES - clean article/document output
   ========================================================= */
@media print {
  .topbar,
  .site-header,
  .site-footer,
  .back-to-top,
  .a11y,
  .carousel-btn,
  .post-share,
  .skip-link,
  .header-search,
  .menu-toggle,
  .lightbox,
  .news-slider-section,
  .quicklinks,
  .stats-showcase,
  .programs,
  .sidebar,
  .post-neighbor-nav,
  .pagination,
  .reading-time,
  .captcha-field {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .container,
  .page-shell,
  .article-layout,
  .content-band {
    display: block;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .article,
  .article.page-article {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .page-header {
    padding: 0 0 12pt;
    background: none;
  }

  h1,
  h2,
  h3 {
    color: #000;
  }

  .entry-content a {
    color: #000;
    text-decoration: underline;
  }

  .entry-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    color: #333;
    font-size: 9pt;
    word-break: break-all;
  }

  .entry-content img,
  .featured-image {
    max-width: 100% !important;
  }

  .pdf-embed-frame {
    display: none;
  }

  .pdf-embed,
  .pdf-embed-bar {
    border: 1px solid #000;
  }
}

/* Archive RSS subscribe link */
.archive-feed-link {
  margin-top: 10px;
}

.archive-feed-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--green);
  font-weight: 700;
  font-size: 0.84rem;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.archive-feed-link a::before {
  content: "RSS";
  padding: 2px 6px;
  border-radius: 5px;
  background: #e9711c;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
}

.archive-feed-link a:hover {
  border-color: var(--green);
  background: #f2f8f4;
}

/* Branded error / 404 page */
.error-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 0 80px;
  text-align: center;
}

.error-code {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 900;
  line-height: 1;
  color: var(--green);
  opacity: 0.16;
}

.error-page h1 {
  margin: -10px 0 12px;
}

.error-lead {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--muted);
}

.error-search {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 22px;
}

.error-search input {
  flex: 1;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  font-size: 1rem;
  font-family: inherit;
}

.error-search input:focus {
  border-color: var(--green);
  outline: none;
}

.error-search button {
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

@media (max-width: 640px) {
  .error-search {
    flex-direction: column;
  }
}

/* Mobile bugfix pass: keep header controls tidy, make the drawer easier to tap,
   and remove the distracting article sidebar from narrow screens. */
@media (max-width: 920px) {
  .header-inner {
    flex-wrap: nowrap;
    min-height: 78px;
    gap: 10px;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(1.12rem, 6.4vw, 1.5rem);
  }

  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    position: relative;
    z-index: 1110;
  }

  body.menu-open .menu-toggle {
    opacity: 0;
    pointer-events: none;
  }

  .main-nav {
    width: min(380px, 100vw);
  }

  .main-nav li ul.submenu > li {
    position: relative;
    border-top: 1px solid rgba(16, 60, 40, 0.08);
  }

  .main-nav li ul.submenu > li:first-child {
    border-top: 0;
  }

  .main-nav li ul.submenu li ul.submenu {
    padding-top: 0;
    background: #eef5f0;
  }

  .main-nav li ul.submenu li ul.submenu a {
    padding-left: 40px;
  }

  .main-nav li ul.submenu li ul.submenu li ul.submenu a {
    padding-left: 52px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .article-layout > .sidebar {
    display: none;
  }

  .page-header {
    padding: 36px 0 18px;
  }

  .page-header h1 {
    font-size: clamp(1.9rem, 10vw, 2.9rem);
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .topbar-meta {
    gap: 8px;
  }

  .logo {
    font-size: clamp(1rem, 6.2vw, 1.28rem);
  }
}

/* Empty legacy-page fallback */
.empty-entry-state {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(10, 77, 46, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 244, 0.96)),
    radial-gradient(circle at top right, rgba(201, 165, 92, 0.16), transparent 48%);
  box-shadow: 0 18px 40px rgba(15, 43, 31, 0.08);
}

.empty-entry-note {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.empty-entry-links {
  display: grid;
  gap: 1rem;
}

.empty-entry-links h2 {
  margin: 0;
  color: var(--green);
  font-size: 1.15rem;
}

.related-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.related-link-card {
  display: flex;
  align-items: center;
  min-height: 100%;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(10, 77, 46, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.related-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 77, 46, 0.24);
  box-shadow: 0 14px 28px rgba(15, 43, 31, 0.1);
}

@media (max-width: 640px) {
  .empty-entry-state {
    padding: 1.15rem;
    border-radius: 20px;
  }

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