/* =========================================================
   LPM UNISSAS — Vanilla CSS (improved)
   ========================================================= */

/* ---------- Google Fonts ---------- */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

/* ---------- CSS Custom Properties ---------- */
:root {
  --radius: .5rem;
  --radius-sm: calc(var(--radius) - 3px);
  --radius-md: calc(var(--radius) - 1px);
  --radius-lg: var(--radius);

  --background: oklch(0.995 0.003 175);
  --foreground: oklch(0.28 0.033 190);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.28 0.033 190);
  --primary: oklch(0.36 0.091 176);
  --primary-foreground: oklch(0.99 0.005 170);
  --secondary: oklch(0.84 0.16 88);
  --secondary-foreground: oklch(0.25 0.05 177);
  --muted: oklch(0.965 0.013 180);
  --muted-foreground: oklch(0.52 0.03 190);
  --border: oklch(0.91 0.017 184);
  --input: oklch(0.91 0.017 184);
  --ring: oklch(0.55 0.12 175);
  --surface: oklch(0.98 0.014 181);
  --success: oklch(0.58 0.15 157);
  --success-foreground: oklch(0.99 0.01 150);
  --success-soft: oklch(0.94 0.045 157);
  --info: oklch(0.62 0.15 242);
  --info-foreground: oklch(0.99 0.005 240);
  --info-soft: oklch(0.94 0.037 238);
  --warning: oklch(0.8 0.17 84);
  --warning-foreground: oklch(0.3 0.06 72);
  --teal: oklch(0.59 0.115 184);
  --teal-foreground: oklch(0.99 0.005 180);
  --violet: oklch(0.57 0.16 305);
  --violet-foreground: oklch(0.99 0.005 300);
  --footer: oklch(0.27 0.069 178);
  --footer-foreground: oklch(0.98 0.008 170);
  --footer-muted: oklch(0.87 0.027 179);
  --footer-border: oklch(0.45 0.065 178);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: none; background: none; padding: 0; font-family: inherit; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, h4, h5, h6 { margin: 0; }

/* ---------- Animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-rise { animation: rise .65s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-rise { animation: none; }
}

/* ---------- Layout ---------- */
.page-shell { width: min(calc(100% - 2rem), 1360px); margin-inline: auto; }
.section-pad { padding-block: clamp(3rem, 5vw, 5rem); }
.bg-surface { background: var(--surface); }

/* ---------- Typography ---------- */
.eyebrow { font-size: .8125rem; line-height: 1.25rem; font-weight: 800; color: var(--primary); letter-spacing: .05em; text-transform: uppercase; }
.section-title { margin-top: .4rem; font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.25; font-weight: 800; color: var(--primary); }
.section-copy { max-width: 42rem; font-size: .9375rem; line-height: 1.7; color: var(--muted-foreground); }
.section-copy-mt { margin-top: .5rem; }

/* ========================================================
   HEADER — FIX: navbar tidak wrap, brand lebih compact
   ======================================================== */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.header-inner {
  display: flex;
  height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 100%;
}
.header-left { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.brand { display: flex; align-items: center; gap: .85rem; }
.brand-icon {
  display: grid; height: 3rem; width: 3rem; flex-shrink: 0;
  place-items: center; border-radius: var(--radius-md);
  border: 2px solid color-mix(in oklab, var(--primary) 25%, transparent);
}
.brand-icon svg { width: 1.5rem; height: 1.5rem; color: var(--secondary); }
.brand-icon img { width: 100%; height: 100%; object-fit: contain; }
/* Standard readable brand font */
.brand-text-name {
  font-size: .875rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  line-height: 1.25;
  letter-spacing: .01em;
  max-width: 250px;
}
.brand-text-sub {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--muted-foreground);
  margin-top: .15rem;
  line-height: 1.2;
}
.brand-text-loc { font-size: .75rem; color: var(--muted-foreground); margin-top: .15rem; }
.brand-inverted .brand-icon { border-color: color-mix(in oklab, var(--footer-foreground) 40%, transparent); }
.brand-inverted .brand-text-name { color: var(--footer-foreground); }
.brand-inverted .brand-text-loc { color: var(--footer-muted); }

.header-divider { display: none; height: 2.25rem; width: 1px; background: var(--border); flex-shrink: 0; }
.header-lpm { display: none; flex-shrink: 0; }
.header-lpm .lpm-title { font-size: .9375rem; font-weight: 800; color: var(--primary); line-height: 1.3; }
.header-lpm .lpm-sub  { font-size: .8125rem; font-weight: 600; color: var(--primary); }

/* Main Nav Desktop - comfortable, modern & clearly readable */
.main-nav { display: none; align-items: center; gap: .5rem; flex-shrink: 0; }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding-block: .65rem;
  padding-inline: .75rem;
  font-size: .9375rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--foreground);
  border-radius: var(--radius-sm);
  transition: color .2s ease, background-color .2s ease;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--primary);
  background-color: var(--muted);
}
.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}
.nav-link.active::after {
  content: "";
  position: absolute; right: .75rem; bottom: 0; left: .75rem;
  height: 2.5px; background: var(--primary);
  border-radius: 999px;
}
.dropdown-chevron {
  width: .85rem;
  height: .85rem;
  transition: transform .2s ease;
  opacity: .7;
}
.nav-item:hover .dropdown-chevron,
.nav-item:focus-within .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown Menu Container (Desktop) */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(8px);
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: .5rem;
  box-shadow: 0 12px 32px color-mix(in oklab, var(--primary) 12%, transparent), 0 2px 6px color-mix(in oklab, var(--border) 60%, transparent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.nav-item:hover .nav-dropdown-menu,
.nav-item:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  color: var(--foreground);
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.dropdown-link:hover {
  background: var(--muted);
  color: var(--primary);
}

.icon-button { display: inline-grid; height: 2.25rem; width: 2.25rem; place-items: center; border-radius: var(--radius-md); color: var(--primary); transition: background .2s ease; flex-shrink: 0; }
.icon-button:hover { background: var(--muted); }
.icon-button svg { width: 1.15rem; height: 1.15rem; }
.cta-portal {
  flex-shrink: 0;
  border-radius: 999px; background: var(--secondary);
  padding: .5rem 1.15rem;
  font-size: .875rem; font-weight: 700;
  color: var(--secondary-foreground);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  display: inline-flex; white-space: nowrap;
  box-shadow: 0 4px 10px color-mix(in oklab, var(--secondary) 35%, transparent);
}
.cta-portal:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 6px 18px color-mix(in oklab, var(--secondary) 40%, transparent); }

/* Hamburger */
.hamburger-btn { display: inline-grid; height: 2.5rem; width: 2.5rem; place-items: center; border-radius: var(--radius-md); color: var(--primary); transition: background .2s; }
.hamburger-btn:hover { background: var(--muted); }
.hamburger-btn svg { width: 1.5rem; height: 1.5rem; }
.mobile-nav { display: none; flex-direction: column; gap: .35rem; border-top: 1px solid var(--border); padding-block: .85rem; }
.mobile-nav.open { display: flex; }
.mobile-nav-item { display: flex; flex-direction: column; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-md);
  padding: .65rem .85rem;
  font-size: .9375rem;
  font-weight: 600;
  transition: background .2s;
  color: var(--foreground);
}
.mobile-nav-link:hover { background: var(--muted); }
.mobile-dropdown-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: var(--radius-md);
  padding: .65rem .85rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  transition: background .2s;
  text-align: left;
}
.mobile-dropdown-btn:hover { background: var(--muted); }
.mobile-dropdown-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform .2s ease;
  color: var(--muted-foreground);
  flex-shrink: 0;
}
.mobile-nav-item.open .mobile-dropdown-btn svg {
  transform: rotate(180deg);
}
.mobile-sub-menu {
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding-left: .75rem;
  margin-block: .25rem;
  border-left: 2px solid var(--border);
  margin-left: .85rem;
}
.mobile-nav-item.open .mobile-sub-menu {
  display: flex;
}
.mobile-sub-link {
  display: block;
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background .2s, color .2s;
}
.mobile-sub-link:hover {
  background: var(--muted);
  color: var(--primary);
}

/* ========================================================
   HERO
   ======================================================== */
.hero { position: relative; min-height: 560px; overflow: hidden; }
.hero-img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: center; }
.hero-wash {
  position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    var(--background) 0%,
    color-mix(in oklab, var(--background) 94%, transparent) 38%,
    color-mix(in oklab, var(--background) 42%, transparent) 60%,
    transparent 80%
  );
}
.hero-content { position: relative; display: flex; min-height: 560px; align-items: center; padding-block: 4rem; }
.hero-inner { max-width: 44rem; }
/* Standard large hero title */
.hero-inner h1 {
  margin-top: .75rem;
  font-size: clamp(2.15rem, 4.8vw, 3.35rem);
  font-weight: 800; line-height: 1.2;
  color: var(--primary);
}
/* Standard hero desc */
.hero-desc {
  margin-top: 1.25rem;
  font-size: 1rem; line-height: 1.8;
  color: oklch(0.35 0.04 185);
  max-width: 38rem;
}
.hero-ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- CTAs ---------- */
.cta-primary {
  display: inline-flex; min-height: 2.85rem;
  align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; background: var(--primary);
  padding-inline: 1.5rem; font-size: .875rem; font-weight: 700;
  color: var(--primary-foreground);
  box-shadow: 0 8px 20px color-mix(in oklab, var(--primary) 25%, transparent);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.cta-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 28px color-mix(in oklab, var(--primary) 32%, transparent); }
.cta-primary svg { width: 1.05rem; height: 1.05rem; }
.cta-secondary {
  display: inline-flex; min-height: 2.85rem;
  align-items: center; justify-content: center;
  border: 1.5px solid var(--primary); border-radius: 999px;
  background: color-mix(in oklab, var(--background) 75%, transparent);
  padding-inline: 1.5rem; font-size: .875rem; font-weight: 700; color: var(--primary);
  transition: background .2s ease;
}
.cta-secondary:hover { background: var(--background); }

/* ---------- Icon Disc ---------- */
.icon-disc {
  display: inline-grid; height: 3.25rem; width: 3.25rem;
  place-items: center; border-radius: 999px; flex-shrink: 0;
  box-shadow: inset 0 0 0 4px color-mix(in oklab, currentColor 10%, transparent);
}
.icon-disc svg { height: 1.5rem; width: 1.5rem; }
.tone-success { background: var(--success); color: var(--success-foreground); }
.tone-info    { background: var(--info);    color: var(--info-foreground); }
.tone-warning { background: var(--warning); color: var(--warning-foreground); }
.tone-teal    { background: var(--teal);    color: var(--teal-foreground); }
.tone-violet  { background: var(--violet);  color: var(--violet-foreground); }

/* ========================================================
   STATS
   ======================================================== */
.stats-section-grid { display: grid; align-items: center; gap: 2.5rem; }
/* FIX: metric cards sama tinggi, lebih rapi */
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.metric-card {
  min-height: 9.5rem;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--card); padding: 1.25rem 1.15rem;
  box-shadow: 0 4px 16px color-mix(in oklab, var(--primary) 5%, transparent);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px color-mix(in oklab, var(--primary) 10%, transparent); }
.metric-card strong { display: block; margin-top: .75rem; font-size: 1.85rem; line-height: 1; color: var(--primary); font-weight: 800; }
.metric-card p { margin-top: .5rem; font-size: .8125rem; line-height: 1.45; color: var(--muted-foreground); font-weight: 500; }

/* ---------- Section Heading ---------- */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.section-heading-link { display: none; flex-shrink: 0; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 700; color: var(--primary); transition: opacity .2s; }
.section-heading-link:hover { opacity: .75; }
.section-heading-link svg { width: .95rem; height: .95rem; }

/* ---------- Panel ---------- */
.panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: 0 6px 20px color-mix(in oklab, var(--primary) 5%, transparent); }

/* ---------- Status ---------- */
.status { display: inline-flex; border-radius: .3rem; padding: .35rem .65rem; font-size: .75rem; line-height: 1; font-weight: 700; }
.status-success { background: var(--success-soft); color: var(--primary); }
.status-info    { background: var(--info-soft);    color: var(--info); }
.status-warning { background: color-mix(in oklab, var(--warning) 20%, transparent); color: oklch(0.45 0.14 84); }
.status-primary { background: color-mix(in oklab, var(--primary) 12%, transparent); color: var(--primary); }

/* ---------- Table ---------- */
table { width: 100%; }
table th, table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); white-space: nowrap; font-size: .875rem; }
table th { font-weight: 800; font-size: .8125rem; letter-spacing: .02em; }
table tr.bg-muted th { background: var(--muted); color: var(--muted-foreground); }
.icon-button-sm { display: inline-grid; height: 2rem; width: 2rem; place-items: center; border-radius: var(--radius-sm); color: var(--primary); transition: background .2s; }
.icon-button-sm:hover { background: var(--muted); }
.icon-button-sm svg { width: 1.1rem; height: 1.1rem; }
.overflow-x-auto {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}

/* ========================================================
   AKREDITASI — FIX: card kiri lebih tinggi & aligned
   ======================================================== */
.accred-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.accred-grid > * {
  min-width: 0;
  max-width: 100%;
}
.accred-institution {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px color-mix(in oklab, var(--primary) 5%, transparent);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.accred-prodi-panel {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px color-mix(in oklab, var(--primary) 5%, transparent);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.accred-prodi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.accred-prodi-search {
  position: relative;
  width: 100%;
  max-width: 300px;
}
.accred-table-container {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  scrollbar-width: thin;
}
.mobile-table-hint {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: color-mix(in oklab, var(--primary) 6%, transparent);
  border: 1px dashed color-mix(in oklab, var(--primary) 20%, transparent);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  margin-bottom: 0.75rem;
}
.accred-inst-details summary::-webkit-details-marker { display: none; }
.accred-inst-details summary { list-style: none; }
.accred-inst-details[open] summary svg.chevron-icon { transform: rotate(180deg); }

/* ========================================================
   LAYANAN — FIX: card lebih tinggi dengan equal height
   ======================================================== */
.services-grid { display: grid; gap: 1rem; margin-top: 1.5rem; grid-template-columns: 1fr 1fr; }
.service-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--card); padding: 1.5rem;
  box-shadow: 0 4px 16px color-mix(in oklab, var(--primary) 4%, transparent);
  transition: transform .25s ease, box-shadow .25s ease;
  min-height: 15rem;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px color-mix(in oklab, var(--primary) 10%, transparent); }
.service-card h3 { margin-top: 1rem; font-size: 1rem; line-height: 1.45; font-weight: 800; color: var(--primary); }
.service-card p { margin-top: .55rem; font-size: .875rem; line-height: 1.65; color: var(--muted-foreground); flex-grow: 1; }
.service-card a {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: 1.25rem; padding-top: .85rem;
  border-top: 1px solid var(--border);
  font-size: .8125rem; font-weight: 700; color: var(--primary);
  transition: gap .2s ease;
}
.service-card a:hover { gap: .55rem; }
.service-card a svg { height: .85rem; width: .85rem; }

/* ========================================================
   FILTER CHIPS
   ======================================================== */
.filter-chips { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .5rem; margin-top: 1.5rem; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0; border-radius: 999px;
  padding: .55rem 1.15rem; font-size: .8125rem; font-weight: 700;
  color: var(--muted-foreground);
  transition: background .2s ease, color .2s ease;
  cursor: pointer; border: 1px solid transparent;
}
.filter-chip:hover { background: var(--muted); color: var(--primary); border-color: var(--border); }
.filter-chip.active { background: var(--primary); color: var(--primary-foreground); }
.filter-chip.active:hover { background: var(--primary); color: var(--primary-foreground); }

/* ========================================================
   NEWS CARDS — FIX: equal height dengan flex
   ======================================================== */
.news-grid { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.news-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: 0 4px 16px color-mix(in oklab, var(--primary) 4%, transparent); display: none; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px color-mix(in oklab, var(--primary) 8%, transparent); }
.news-card.visible { display: flex; }
.news-card-img { aspect-ratio: 16 / 9; overflow: hidden; flex-shrink: 0; }
.news-card-img img { height: 100%; width: 100%; object-fit: cover; transition: transform .5s; }
.news-card-img img:hover { transform: scale(1.06); }
.news-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex-grow: 1; }
.news-card-meta { display: flex; align-items: center; gap: .65rem; }
.news-date { display: flex; align-items: center; gap: .3rem; font-size: .75rem; color: var(--muted-foreground); font-weight: 500; }
.news-date svg { width: .85rem; height: .85rem; }
.news-card h3 { margin-top: .75rem; font-size: 1rem; font-weight: 700; line-height: 1.45; color: var(--primary); }
.news-card-desc { margin-top: .55rem; font-size: .875rem; line-height: 1.65; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex-grow: 1; }
.news-read-more {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: 1rem; padding-top: .75rem;
  border-top: 1px solid var(--border);
  font-size: .8125rem; font-weight: 700; color: var(--primary);
  transition: gap .2s ease;
}
.news-read-more:hover { gap: .55rem; }
.news-read-more svg { width: .85rem; height: .85rem; }

/* ========================================================
   SPMI CYCLE — FIX: lebih tegas & connected
   ======================================================== */
.cycle-bg { background: linear-gradient(135deg, var(--surface) 0%, var(--background) 45%, oklch(0.97 0.025 220) 100%); }
.cycle-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.cycle-item { position: relative; text-align: center; padding: 1.25rem .5rem; }
.cycle-item h3 { margin-top: 1rem; font-size: 1rem; font-weight: 800; color: var(--primary); }
.cycle-item p { margin: .55rem auto 0; max-width: 12rem; font-size: .8125rem; line-height: 1.55; color: var(--muted-foreground); }
.cycle-icon-wrap { position: relative; display: inline-block; }
.cycle-icon {
  display: inline-grid; height: 4.75rem; width: 4.75rem;
  place-items: center; border-radius: 999px;
  box-shadow: 0 10px 28px color-mix(in oklab, currentColor 22%, transparent),
              inset 0 0 0 6px color-mix(in oklab, currentColor 10%, transparent);
}
.cycle-icon svg { height: 2rem; width: 2rem; }
.cycle-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  left: calc(100% + .5rem);
  height: 1.5rem; width: 1.5rem;
  color: var(--secondary); display: none;
  filter: drop-shadow(0 2px 4px color-mix(in oklab, var(--secondary) 30%, transparent));
}

/* ========================================================
   FOOTER — FIX: kontras lebih baik, sosmed styled
   ======================================================== */
footer { background: var(--footer); color: var(--footer-foreground); }
.footer-grid { display: grid; gap: 2.25rem; padding-block: 3.5rem; }
.footer-tagline { margin-top: .85rem; font-size: .875rem; font-weight: 600; color: var(--footer-muted); font-style: italic; }
.footer-block { font-size: .875rem; line-height: 1.65; color: var(--footer-muted); }
.footer-block h3 { margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9375rem; color: var(--footer-foreground); }
.footer-block h3 svg { height: 1.05rem; width: 1.05rem; color: var(--secondary); }
.footer-block-links { display: grid; gap: .45rem; }
.footer-block a { transition: color .2s; }
.footer-block a:hover { color: var(--footer-foreground); }
.footer-mail-row { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; }
.footer-mail-row svg { width: .95rem; height: .95rem; color: var(--secondary); }
.footer-social { display: flex; gap: .6rem; margin-top: .35rem; }
.footer-social a, .footer-social span {
  display: inline-grid; height: 2.25rem; width: 2.25rem;
  place-items: center; border-radius: .4rem;
  background: color-mix(in oklab, var(--footer-foreground) 8%, transparent);
  border: 1px solid color-mix(in oklab, var(--footer-border) 60%, transparent);
  transition: background .2s, transform .2s;
  cursor: pointer;
}
.footer-social a:hover, .footer-social span:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}
.footer-social svg { width: 1rem; height: 1rem; }
.footer-bottom { border-top: 1px solid var(--footer-border); }
.footer-bottom-inner {
  display: flex; flex-direction: column;
  justify-content: space-between; gap: .5rem;
  padding-block: 1.25rem;
  font-size: .8125rem;
  color: oklch(0.9 0.02 178);
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (min-width: 640px) {
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .section-heading-link { display: inline-flex; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .cycle-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: row; }
}
@media (min-width: 768px) {
  .accred-grid { grid-template-columns: 1fr 2.7fr; }
}
@media (min-width: 1024px) {
  .metrics-grid { grid-template-columns: repeat(5, 1fr); }
  .stats-section-grid { grid-template-columns: 1.1fr 3fr; }
  .news-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(5, 1fr); }
  .cycle-grid { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: 1.35fr 1fr .8fr .7fr .55fr; }
  .cycle-arrow { display: block; }
}
@media (max-width: 1149px) {
  .main-nav { display: none !important; }
  .hamburger-btn { display: inline-grid !important; }
}
@media (min-width: 1150px) {
  .main-nav { display: flex !important; }
  .hamburger-btn { display: none !important; }
}
@media (min-width: 1150px) and (max-width: 1399px) {
  .header-inner { gap: 0.5rem; }
  .main-nav { gap: 0.2rem; }
  .nav-link { padding-inline: 0.45rem; padding-block: 0.45rem; font-size: 0.8125rem; gap: 0.2rem; }
  .brand-text-name { font-size: 0.875rem; }
  .brand-text-sub { font-size: 0.75rem; }
}
@media (max-width: 639px) {
  .page-shell { width: min(calc(100% - 1.25rem), 1360px); }
  .header-inner {
    height: 64px;
    gap: 0.5rem;
  }
  .header-left {
    min-width: 0;
    flex: 1;
  }
  .brand {
    gap: 0.5rem;
    min-width: 0;
  }
  .brand-icon {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
  }
  .brand-text-name {
    font-size: 0.72rem !important;
    line-height: 1.15;
    max-width: 180px !important;
    white-space: normal;
  }
  .brand-text-sub {
    font-size: 0.65rem !important;
    line-height: 1.15;
  }
  .hamburger-btn {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
  }
  .hero { min-height: 620px; }
  .hero-content { min-height: 620px; }
  .hero-img { object-position: 66% center; }
  .hero-wash { background: linear-gradient(90deg, color-mix(in oklab, var(--background) 98%, transparent), color-mix(in oklab, var(--background) 72%, transparent)); }

  /* Akreditasi Section Mobile */
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .section-heading-link {
    display: inline-flex !important;
    margin-top: 0.25rem;
  }
  .accred-institution {
    padding: 1.15rem 1rem !important;
  }
  .accred-prodi-panel {
    padding: 1.15rem 0.875rem !important;
  }
  .accred-prodi-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .accred-prodi-search {
    max-width: 100% !important;
  }
  .mobile-table-hint {
    display: inline-flex;
  }
  #table-prodi-accred th,
  #table-prodi-accred td {
    padding: 0.65rem 0.65rem;
    font-size: 0.8125rem;
  }
  .accred-rating-val {
    font-size: clamp(1.15rem, 4.5vw, 1.35rem) !important;
  }
}
@media (max-width: 1023px) {
  .hero-wash { background: linear-gradient(90deg, var(--background) 0%, color-mix(in oklab, var(--background) 90%, transparent) 55%, color-mix(in oklab, var(--background) 30%, transparent)); }
  .cycle-arrow { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
}

/* ========================================================
   DETAIL BERITA & ARTIKEL
   ======================================================== */
.berita-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  padding: .65rem 1.15rem;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.berita-breadcrumb a {
  color: var(--muted-foreground);
  transition: color .2s;
}
.berita-breadcrumb a:hover {
  color: var(--primary);
}
.berita-breadcrumb .bc-sep {
  opacity: .5;
}
.berita-breadcrumb .bc-curr {
  color: var(--primary);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}
@media (min-width: 1024px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

.article-header {
  position: static !important;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
.article-meta-tags {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.article-date {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8125rem;
  color: var(--muted-foreground);
  font-weight: 600;
}
.article-date svg {
  width: .95rem;
  height: .95rem;
}
.article-title {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.25;
  font-weight: 800;
  color: var(--primary);
}
.article-author-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: .25rem;
}
.author-avatar {
  display: grid;
  height: 2.75rem;
  width: 2.75rem;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--muted);
  color: var(--primary);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.author-avatar svg {
  width: 1.4rem;
  height: 1.4rem;
}
.author-name {
  font-size: .875rem;
  font-weight: 700;
  color: var(--foreground);
}
.author-inst {
  font-size: .75rem;
  color: var(--muted-foreground);
  margin-top: .1rem;
}

/* Article Prose Typography */
.article-prose {
  font-size: 1.05rem;
  line-height: 1.85;
  color: oklch(0.28 0.033 190);
  overflow-wrap: break-word;
  word-break: break-word;
}
.article-prose table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
}
.article-prose p {
  margin-bottom: 1.35rem;
}
.article-prose h1, .article-prose h2, .article-prose h3, .article-prose h4 {
  color: var(--primary);
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: .75rem;
  line-height: 1.35;
}
.article-prose h2 { font-size: 1.5rem; }
.article-prose h3 { font-size: 1.25rem; }
.article-prose h4 { font-size: 1.1rem; }
.article-prose ul, .article-prose ol {
  margin-bottom: 1.35rem;
  padding-left: 1.75rem;
  line-height: 1.8;
}
.article-prose li {
  margin-bottom: .4rem;
}
.article-prose blockquote {
  margin-block: 1.5rem;
  padding: .75rem 1.25rem;
  border-left: 4px solid var(--primary);
  background: var(--muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--muted-foreground);
}
.article-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* Share Bar */
.article-share-bar {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  cursor: pointer;
  border: none;
}
.share-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}
.share-wa {
  background: #25d366;
  color: #ffffff;
}
.share-fb {
  background: #1877f2;
  color: #ffffff;
}
.share-x {
  background: #0f172a;
  color: #ffffff;
}
.share-copy {
  background: #ffffff;
  color: var(--foreground);
  border: 1px solid var(--border);
}

/* Detail Page Card & Sidebar enhancements */
.article-main {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.article-sidebar .panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.article-sidebar h3 svg,
.sidebar-title svg,
.sidebar-heading-icon {
  width: 1.25rem !important;
  height: 1.25rem !important;
  min-width: 1.25rem !important;
  max-width: 1.25rem !important;
  max-height: 1.25rem !important;
  flex-shrink: 0 !important;
  display: inline-block;
  vertical-align: middle;
}
.article-sidebar a svg {
  width: .95rem !important;
  height: .95rem !important;
  flex-shrink: 0;
}
.berita-foto-utama img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* Badges Utility */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-success {
  background-color: #dcfce7;
  color: #15803d;
}
.badge-info {
  background-color: #e0f2fe;
  color: #0369a1;
}
.badge-warning {
  background-color: #fef3c7;
  color: #b45309;
}
.badge-muted {
  background-color: #f1f5f9;
  color: #64748b;
}
.badge-primary {
  background-color: #ede9fe;
  color: #6d28d9;
}
.badge-teal {
  background-color: #ccfbf1;
  color: #0f766e;
}
.badge-indigo {
  background-color: #e0e7ff;
  color: #4338ca;
}