
:root {
  --navy-950: #0f2b48;
  --navy-900: #1e3a8a;
  --navy-800: #1e40af;
  --blue-50: #eff6ff;
  --gold-700: #b45309;
  --gold-600: #d97706;
  --paper: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --focus: #1e40af;
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 80rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}

a:focus-visible,
summary:focus-visible {
  border-radius: 0.25rem;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: #d7e8f6;
  color: var(--navy-950);
}

.container {
  width: 100%;
  max-width: var(--container, 80rem);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 1001;
  padding: 0.75rem 1rem;
  transform: translateY(-150%);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--navy-950);
  font-weight: 700;
  box-shadow: 0 8px 30px rgb(16 42 67 / 18%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.header-main,
.brand,
.desktop-nav,
.section-heading,
.footer-links {
  display: flex;
  align-items: center;
}

.header-main {
  width: min(calc(100% - clamp(2.5rem, 5vw, 4.5rem)), var(--container));
  min-height: 4.6rem;
  padding-block: 0.5rem;
  margin-inline: auto;
  justify-content: space-between;
  gap: clamp(0.5rem, 1vw, 1.25rem);
}

.brand {
  min-width: 0;
  flex: 0 0 auto;
  gap: 0.65rem;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.brand:hover {
  opacity: 0.92;
}

.brand-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 0.1rem;
}

.brand-kicker {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(0.72rem, 0.78vw, 0.86rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #d97706;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-title {
  display: block;
  font-size: clamp(0.6rem, 0.64vw, 0.68rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy-950, #0f172a);
  line-height: 1.25;
  white-space: nowrap;
}

.desktop-nav {
  min-height: 2.5rem;
  margin-inline-start: auto;
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  gap: clamp(0.1rem, 0.2vw, 0.3rem);
}

.desktop-nav > a:not(.apply-link),
.nav-dropdown > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.42rem clamp(0.38rem, 0.52vw, 0.62rem);
  border-radius: 0.5rem;
  color: #334155;
  cursor: pointer;
  font-size: clamp(0.76rem, 0.8vw, 0.83rem);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  user-select: none;
  border: none;
  outline: none;
  box-shadow: none !important;
}

.desktop-nav > a:not(.apply-link):hover,
.nav-dropdown > summary:hover,
.nav-dropdown[open] > summary {
  color: #1e40af;
  background: #f1f5f9;
  box-shadow: none !important;
}

.desktop-nav > a:not(.apply-link).is-active,
.nav-dropdown > summary.is-active,
.desktop-nav a[aria-current='page']:not(.apply-link) {
  color: #1e40af;
  font-weight: 700;
  background: #eff6ff;
  border-radius: 0.55rem;
  box-shadow: none !important;
}

/* Desktop dropdowns open from pointer hover; keep the summary from competing with links below. */
@media (hover: hover) and (min-width: 72.01rem) {
  .desktop-nav .nav-dropdown > summary {
    pointer-events: none;
    cursor: default;
  }
}

.nav-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  margin-inline-start: 0.2rem;
  flex-shrink: 0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-search-btn:hover {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.15);
}

.nav-search-btn:active {
  transform: scale(0.95);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker,
.mobile-nav > summary::-webkit-details-marker,
.mobile-menu-panel summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary::marker {
  display: none;
}

.nav-dropdown > summary::after {
  display: none !important;
}

.nav-chevron {
  display: inline-block;
  color: #64748b;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease;
  flex-shrink: 0;
}

.nav-dropdown > summary:hover .nav-chevron,
.nav-dropdown[open] > summary .nav-chevron {
  color: #1e40af;
}

.nav-dropdown[open] > summary .nav-chevron {
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 14.5rem;
  padding: 0.55rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  z-index: 60;
  animation: navDropdownPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top left;
}

/* Caret indicator pointing to parent button */
.dropdown-panel::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 1.25rem;
  width: 9px;
  height: 9px;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  transform: rotate(45deg);
  z-index: 2;
}

/* Invisible hover bridge between summary trigger and dropdown panel */
.dropdown-panel::after {
  content: '';
  position: absolute;
  top: -0.65rem;
  left: 0;
  right: 0;
  height: 0.65rem;
  background: transparent;
  z-index: 1;
}

/* Keep larger menus in two compact columns. */
.dropdown-panel.dropdown-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  width: 25rem;
  padding: 0.65rem;
}

.desktop-nav > .nav-dropdown.has-grid:nth-last-of-type(2) .dropdown-panel {
  width: 23rem;
}

@keyframes navDropdownPop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.52rem 0.72rem;
  border-radius: 0.5rem;
  color: #334155;
  font-size: 0.815rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-item-title {
  flex: 1;
}

.dropdown-item-arrow {
  opacity: 0;
  transform: translateX(-4px);
  color: #1e40af;
  flex-shrink: 0;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-item:hover {
  background: #f8fafc;
  color: #1e40af;
  border-color: #e2e8f0;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
}

.dropdown-item:hover .dropdown-item-arrow {
  opacity: 1;
  transform: translateX(0);
}

.dropdown-item.is-active,
.dropdown-item[aria-current='page'] {
  background: rgba(30, 64, 175, 0.08);
  color: #1e40af;
  border-color: rgba(30, 64, 175, 0.15);
  font-weight: 700;
}

.dropdown-item.is-active .dropdown-item-arrow,
.dropdown-item[aria-current='page'] .dropdown-item-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Call to Action Button */
.apply-link,
.desktop-nav a.apply-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  margin-inline-start: 0.25rem !important;
  padding: 0.42rem 0.85rem !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
  color: #ffffff !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 12px -1px rgba(30, 64, 175, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0 !important;
  border: none !important;
  cursor: pointer;
}

.apply-link:hover,
.desktop-nav a.apply-link:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.5) !important;
  filter: brightness(1.08);
}

.apply-link:active,
.desktop-nav a.apply-link:active,
.button-secondary:active {
  transform: scale(0.97);
}

.apply-link svg {
  stroke: #ffffff !important;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.apply-link:hover svg {
  transform: translateX(2.5px);
}

.mobile-nav { display: none; }

/* ==========================================================================
   Hero Carousel Slider (Standar Portal UNISM)
   ========================================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 62vh, 540px);
  background-color: #0f172a;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slides-wrapper {
  position: relative;
  width: 100%;
  min-height: inherit;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 7s ease-out;
  transform: scale(1.05);
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.58) 50%, rgba(15, 23, 42, 0.78) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: clamp(3rem, 5vw, 4.5rem);
}

.hero-content {
  max-width: 56rem;
  text-align: center;
  margin-inline: auto;
  color: #ffffff;
  padding-inline: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.hero-subtitle {
  font-size: clamp(0.92rem, 1.18vw, 1.15rem);
  line-height: 1.55;
  color: #f1f5f9;
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 1.65rem;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.22s, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.22s;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.95rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.34s, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.34s;
}

.hero-slide.is-active .hero-title,
.hero-slide.is-active .hero-subtitle,
.hero-slide.is-active .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.65rem;
  border-radius: 0.5rem;
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.hero-btn-primary:hover {
  background: #d97706;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.hero-btn-primary:active {
  transform: scale(0.97);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.65rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.hero-btn-secondary:active {
  transform: scale(0.97);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
  padding: 0;
}

.hero-arrow:hover {
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-prev {
  left: clamp(0.75rem, 2vw, 2.25rem);
}

.hero-next {
  right: clamp(0.75rem, 2vw, 2.25rem);
}

.hero-dots {
  position: absolute;
  bottom: clamp(1rem, 2vw, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  z-index: 25;
}

@media (max-width: 40rem) {
  .hero-dots {
    bottom: 0.85rem;
  }
}

.hero-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.hero-dot.is-active {
  width: 1.85rem;
  background: #f59e0b;
}

/* ==========================================================================
   Search Modal & Mobile Search
   ========================================================================== */
.search-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overscroll-behavior: contain;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(4rem, 12vh, 8rem);
  padding-inline: 1rem;
}

.search-modal[hidden] {
  display: none !important;
}

.search-modal::backdrop {
  background: transparent;
}

.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.search-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 38rem;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  animation: searchModalEnter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes searchModalEnter {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.search-modal-form {
  flex: 1;
  display: flex;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  color: #64748b;
}

.search-input-wrapper input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: #0f172a;
  background: transparent;
  font-family: inherit;
}

.search-input-wrapper input::placeholder {
  color: #94a3b8;
}

.search-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.search-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.search-modal-suggestions {
  padding: 1.15rem 1.25rem;
  background: #f8fafc;
}

.suggestion-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 0 0 0.65rem 0;
}

.suggestion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.suggestion-tags a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e40af;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.suggestion-tags a:hover {
  background: #1e40af;
  color: #ffffff;
  border-color: #1e40af;
}

.mobile-search-box {
  margin: 0.75rem 0 1rem;
}

.mobile-search-box form {
  position: relative;
  display: flex;
  align-items: center;
}

.mobile-search-box input {
  width: 100%;
  padding: 0.6rem 2.4rem 0.6rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 0.875rem;
  color: #0f172a;
  outline: none;
}

.mobile-search-box input:focus {
  border-color: #1e40af;
  background: #ffffff;
}

.mobile-search-box button {
  position: absolute;
  right: 0.6rem;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
}

@media (max-width: 48rem) {
  .hero-slider {
    min-height: clamp(380px, 78vh, 480px);
  }
  .hero-inner {
    padding-block: 2.25rem 3.5rem;
  }
  .hero-content {
    padding-inline: 0.5rem;
    max-width: 100%;
  }
  .hero-title {
    font-size: clamp(1.35rem, 5.2vw, 1.85rem);
    line-height: 1.25;
    margin-bottom: 0.65rem;
    letter-spacing: -0.02em;
  }
  .hero-subtitle {
    font-size: clamp(0.82rem, 3.2vw, 0.95rem);
    line-height: 1.45;
    margin-bottom: 1.25rem;
    max-width: 95%;
  }
  /* Hide navigation arrows that overlap text on mobile */
  .hero-arrow {
    display: none !important;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 18.5rem;
    margin-inline: auto;
    gap: 0.65rem;
  }
  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
    padding: 0.7rem 1.25rem;
    font-size: 0.88rem;
    justify-content: center;
    text-align: center;
  }
  .hero-dots {
    bottom: 0.75rem;
    gap: 0.45rem;
  }
  .hero-dot {
    width: 0.55rem;
    height: 0.55rem;
  }
  .hero-dot.is-active {
    width: 1.5rem;
  }
}

/* ==========================================================================
   Hero Highlight Stats Section (Sesuai Referensi Portal UNISM)
   ========================================================================== */
.hero-stats-section {
  position: relative;
  z-index: 10;
  margin-top: 0;
  padding-block: clamp(1.35rem, 2.2vw, 1.85rem);
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.25vw, 1.25rem);
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ffffff;
  border-radius: 0.75rem;
  padding: clamp(0.9rem, 1.3vw, 1.15rem) 1rem clamp(0.8rem, 1.15vw, 1rem);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px -3px rgba(15, 23, 42, 0.05), 0 2px 6px -2px rgba(15, 23, 42, 0.02);
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.hero-stat-card:hover {
  transform: translateY(-3px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 20px -5px rgba(30, 64, 175, 0.1), 0 4px 8px -2px rgba(30, 64, 175, 0.04);
}

.hero-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #1e40af;
  color: #ffffff;
  margin-bottom: 0.55rem;
  box-shadow: 0 3px 8px rgba(30, 64, 175, 0.2);
  transition: transform 0.25s ease;
}

.hero-stat-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.hero-stat-card:hover .hero-stat-icon {
  transform: scale(1.06);
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 0 0 0.2rem 0;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  color: #64748b;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.25;
}

@media (max-width: 64rem) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
}

@media (max-width: 36rem) {
  .hero-stats-section {
    margin-top: 0;
    padding-block: 1rem;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }
  .hero-stat-card {
    padding: 0.85rem 0.5rem 0.75rem;
    border-radius: 0.65rem;
  }
  .hero-stat-icon {
    width: 2.15rem;
    height: 2.15rem;
    margin-bottom: 0.35rem;
  }
  .hero-stat-icon svg {
    width: 1.05rem;
    height: 1.05rem;
  }
  .hero-stat-value {
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
  }
  .hero-stat-label {
    font-size: 0.62rem;
    letter-spacing: 0.03em;
  }
}

/* ==========================================================================
   Tentang Program Studi Section (2 Kolom Modern & Elegan)
   ========================================================================== */
.prodi-about-section {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  padding-block: clamp(3.5rem, 5.5vw, 4.75rem);
  border-top: 1px solid #f1f5f9;
  overflow: hidden;
}

.prodi-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 4.5vw, 4rem);
  align-items: center;
}

.prodi-about-content,
.prodi-about-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.prodi-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #b45309;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 1.1rem;
}

.prodi-about-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 2.75vw, 2.45rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 1rem 0;
}

.prodi-about-title .text-accent {
  color: #1e40af;
}

.prodi-about-lead {
  font-size: clamp(0.94rem, 1.1vw, 1.02rem);
  line-height: 1.7;
  color: #475569;
  margin: 0 0 1.5rem 0;
}

.prodi-check-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.prodi-check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prodi-check-icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.12);
}

.prodi-check-item span {
  font-size: 0.88rem;
  font-weight: 650;
  color: #1e293b;
  line-height: 1.4;
}

.prodi-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.prodi-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  background: #1e40af;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.25);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.prodi-btn-primary:hover {
  background: #1e3a8a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.35);
  text-decoration: none;
}

.prodi-btn-primary svg {
  transition: transform 0.2s ease;
}

.prodi-btn-primary:hover svg {
  transform: translateX(3px);
}

.prodi-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.45rem;
  border-radius: 9999px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  transition: all 0.2s ease;
}

.prodi-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateY(-1px);
  text-decoration: none;
}

.prodi-about-visual,
.prodi-about-right {
  position: relative;
  min-width: 0;
}

.prodi-visual-wrapper {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15), 0 4px 12px rgba(15, 23, 42, 0.05);
  aspect-ratio: 4 / 3.2;
  background: #f1f5f9;
}

.prodi-visual-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prodi-floating-stat {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.prodi-stat-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prodi-stat-info {
  display: flex;
  flex-direction: column;
}

.prodi-stat-info strong {
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.3;
}

.prodi-stat-info span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 60rem) {
  .prodi-about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 32rem) {
  .prodi-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
  .prodi-btn-primary,
  .prodi-btn-secondary {
    justify-content: center;
  }
}

/* ==========================================================================
   Program Unggulan Akademik & Karir (2 Baris: Kiri Gambar, Kanan Teks - Tanpa Kontainer)
   ========================================================================== */
.flagship-media-section {
  position: relative;
  width: 100%;
  background-color: #f8fafc;
  padding-block: clamp(3.75rem, 6vw, 4.75rem);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.flagship-media-header {
  max-width: 58rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.flagship-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d97706;
  margin-bottom: 0.4rem;
}

.flagship-media-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 2.8vw, 2.45rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin: 0 0 0.65rem 0;
}

.flagship-lead {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

/* 2 Baris x 2 Kolom (4 Item) */
.flagship-media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 3.5vw, 3rem) clamp(2rem, 3.5vw, 3.5rem);
}

/* Item Program Unggulan: Kiri Gambar, Kanan Teks (Tanpa Kotak Kontainer) */
.flagship-media-item {
  display: grid;
  grid-template-columns: clamp(120px, 14vw, 155px) 1fr;
  gap: clamp(1rem, 2vw, 1.35rem);
  align-items: start;
}

.flagship-media-thumb {
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  background: #f1f5f9;
  box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.12);
}

.flagship-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.flagship-media-item:hover .flagship-media-thumb img {
  transform: scale(1.06);
}

.flagship-media-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.flagship-mini-badge {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  width: fit-content;
  margin-bottom: 0.45rem;
}

.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-emerald { background: #d1fae5; color: #065f46; }
.badge-cyan { background: #e0f2fe; color: #0369a1; }
.badge-amber { background: #fef3c7; color: #92400e; }

.flagship-media-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 0.45rem 0;
}

.flagship-media-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 0.85rem 0;
}

.flagship-media-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.flagship-media-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.835rem;
  font-weight: 750;
  text-decoration: none;
  margin-top: auto;
  transition: all 0.2s ease;
}

.flagship-media-link svg {
  transition: transform 0.2s ease;
}

.flagship-media-item:hover .flagship-media-link svg {
  transform: translateX(4px);
}

@media (max-width: 54rem) {
  .flagship-media-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 32rem) {
  .flagship-media-item {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .flagship-media-thumb {
    aspect-ratio: 16 / 9;
    max-height: 180px;
  }
}

/* ==========================================================================
   Showcase CTA PMB Clean Minimalist (Sesuai Referensi)
   ========================================================================== */
.pmb-showcase-card {
  margin: 0;
  background-color: #ffffff;
  background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.02);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 3.5vw, 3.5rem);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.flagship-programs + .pmb-showcase-card {
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

.pmb-orbit-decoration {
  position: absolute;
  right: -5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  border: 2px dashed rgba(59, 130, 246, 0.22);
  pointer-events: none;
  z-index: 0;
}

.pmb-showcase-left {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pmb-pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  width: fit-content;
  margin-bottom: 1.15rem;
}

.pmb-showcase-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 2.75vw, 2.45rem);
  font-weight: 800;
  color: #1e293b;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin: 0 0 1.75rem;
}

.pmb-title-blue {
  color: #2563eb;
}

.pmb-title-highlight {
  color: #1e293b;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.pmb-brush-stroke {
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 12px;
  pointer-events: none;
}

.pmb-showcase-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.pmb-btn-pill-gray {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pmb-btn-pill-gray:hover {
  background: #e2e8f0;
  color: #0f172a;
  text-decoration: none;
  transform: translateY(-1px);
}

.pmb-btn-pill-yellow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.45rem;
  border-radius: 9999px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  transition: all 0.2s ease;
}

.pmb-btn-pill-yellow:hover {
  background: #d97706;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.pmb-btn-pill-gray svg,
.pmb-btn-pill-yellow svg {
  transition: transform 0.2s ease;
}

.pmb-btn-pill-gray:hover svg,
.pmb-btn-pill-yellow:hover svg {
  transform: translateX(2px);
}

.pmb-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.5rem;
}

.pmb-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pmb-feature-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.6rem;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.pmb-feature-icon svg {
  stroke-width: 2.2;
}

.pmb-feature-label {
  font-size: 0.86rem;
  font-weight: 750;
  color: #1e293b;
  line-height: 1.3;
}

.pmb-showcase-right {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.pmb-image-container {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
  background: #f1f5f9;
}

.pmb-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 60rem) {
  .pmb-showcase-card {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 2rem 1.75rem;
  }
  .pmb-orbit-decoration {
    display: none;
  }
}

@media (max-width: 32rem) {
  .pmb-features-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .pmb-showcase-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .pmb-btn-pill-gray,
  .pmb-btn-pill-yellow {
    justify-content: center;
  }
}

.news-section {
  padding-block-start: clamp(1.5rem, 2.5vw, 2.25rem);
  padding-block-end: clamp(3.5rem, 7vw, 6.5rem);
}

.section-heading {
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--gold-700);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
p { overflow-wrap: break-word; }

h1,
h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  max-width: 20ch;
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  line-height: 1.08;
}

.text-link {
  flex: 0 0 auto;
  color: var(--navy-900);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.badge-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(30, 64, 175, 0.08);
  color: #1e40af;
  font-weight: 700;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(30, 64, 175, 0.15);
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.news-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 0.2rem 0.6rem;
  border-radius: 0.375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-meta-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ==========================================================================
   UNISM News Portal Section (Sesuai Referensi Portal UNISM)
   ========================================================================== */
.news-portal-section {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  padding-block: clamp(3.75rem, 6vw, 4.75rem);
  border-bottom: 1px solid #e2e8f0;
}

.news-portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.news-portal-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.news-portal-header-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
  flex-shrink: 0;
}

.news-portal-header-title {
  font-size: clamp(1.5rem, 2.75vw, 2rem);
  font-weight: 800;
  color: var(--navy-950, #0f172a);
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.news-portal-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.news-portal-nav-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 0;
}

.news-portal-nav-btn:hover {
  border-color: #1e40af;
  color: #1e40af;
  background: #eff6ff;
  transform: scale(1.06);
}

.news-portal-nav-btn:active {
  transform: scale(0.96);
}

.news-portal-slider-wrapper {
  position: relative;
  margin-inline: -0.5rem;
  padding-inline: 0.5rem;
  padding-block: 0.5rem;
  overflow: hidden;
}

.news-portal-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 1.5rem) / 3);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.75rem;
}

.news-portal-track::-webkit-scrollbar {
  display: none;
}

@media (max-width: 64rem) {
  .news-portal-track {
    grid-auto-columns: calc((100% - 1.25rem) / 2);
    gap: 1.25rem;
  }
}

@media (max-width: 42rem) {
  .news-portal-track {
    grid-auto-columns: calc(100% - 1.5rem);
    gap: 1rem;
  }
}

.news-portal-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
  height: 100%;
}

.news-portal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.09);
  border-color: #cbd5e1;
}

.news-portal-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
  text-decoration: none;
}

.news-portal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.news-portal-card:hover .news-portal-thumb img {
  transform: scale(1.06);
}

.news-portal-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.4rem 1.35rem;
}

.news-portal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.news-portal-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 750;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-portal-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 550;
}

.news-portal-card-title {
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.4;
  margin: 0 0 0.55rem;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.news-portal-card-title a {
  color: #0f172a;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.news-portal-card-title a:hover {
  color: #1e40af;
}

.news-portal-excerpt {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-portal-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.news-portal-footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.news-portal-author {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.news-portal-avatar {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.news-portal-author-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9rem;
}

.news-portal-btn-baca {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1.05rem;
  border-radius: 9999px;
  border: 1.5px solid #2563eb;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.news-portal-btn-baca:hover {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
  text-decoration: none;
}

.news-portal-bottom-action {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.news-portal-btn-all {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  background: #1e40af;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-portal-btn-all:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(30, 64, 175, 0.35);
  color: #ffffff;
  text-decoration: none;
}

.news-portal-btn-all svg {
  transition: transform 0.2s ease;
}

.news-portal-btn-all:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Testimoni Alumni Section (Sesuai Referensi Portal UNISM - Compact Height)
   ========================================================================== */
.testimonials-section {
  position: relative;
  width: 100%;
  background-color: #f8fafc;
  padding-block: clamp(2rem, 3.5vw, 2.75rem);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.testimonials-header {
  text-align: center;
  margin-bottom: clamp(1rem, 2vw, 1.35rem);
}

.testimonials-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.testimonials-lead {
  font-size: clamp(0.82rem, 1vw, 0.92rem);
  line-height: 1.5;
  color: #64748b;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 0;
}

.testimonials-slider-container {
  max-width: 48rem;
  margin-inline: auto;
  position: relative;
}

.testimonials-track {
  position: relative;
  min-height: auto;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: translateY(6px);
}

.testimonial-slide.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.15rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.04), 0 2px 6px -2px rgba(15, 23, 42, 0.02);
  text-align: center;
  position: relative;
}

.testimonial-quote-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #93c5fd;
  margin-bottom: 0.65rem;
}

.testimonial-quote-icon svg {
  width: 1.65rem;
  height: 1.65rem;
  opacity: 0.85;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  font-style: italic;
  line-height: 1.65;
  color: #1e293b;
  margin: 0 0 1rem 0;
  padding: 0;
}

.testimonial-author {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: start;
}

.testimonial-avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #f59e0b;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
  flex-shrink: 0;
  background: #f1f5f9;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-name {
  display: block;
  font-size: 0.86rem;
  font-weight: 750;
  color: #0f172a;
  line-height: 1.25;
}

.testimonial-role {
  margin: 0.1rem 0 0 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
}

.testimonials-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.testimonial-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-dot:hover {
  background: #94a3b8;
}

.testimonial-dot.is-active {
  background: #1e40af;
  width: 1.2rem;
  border-radius: 9999px;
}

/* ==========================================================================
   Kemitraan & Kerja Sama Section (Sesuai Referensi Portal UNISM)
   ========================================================================== */
.partnerships-section {
  position: relative;
  width: 100%;
  padding-block: clamp(4rem, 7vw, 5.5rem);
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.partnerships-header {
  text-align: center;
  margin-bottom: clamp(2.75rem, 4.5vw, 4rem);
}

.partnerships-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 2.8vw, 2.45rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
}

.partnerships-lead {
  font-size: clamp(0.95rem, 1.2vw, 1.12rem);
  line-height: 1.65;
  color: #64748b;
  max-width: 48rem;
  margin-inline: auto;
  margin-bottom: 0;
}

.partnerships-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding-block: 1.5rem;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.partnerships-marquee-track {
  display: flex;
  width: max-content;
  gap: 1.75rem;
  animation: partnerships-scroll 22s linear infinite;
  will-change: transform;
}

.partnerships-marquee-wrapper:hover .partnerships-marquee-track,
.partnerships-marquee-track:hover {
  animation-play-state: paused;
}

.partnerships-marquee-group {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-shrink: 0;
}

.partner-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 4.75rem;
  padding: 0.25rem 0.65rem;
  filter: grayscale(100%);
  opacity: 0.82;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.partner-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-3px) scale(1.04);
}

.partner-item img {
  height: clamp(3rem, 4.2vw, 4rem);
  width: auto;
  max-width: 14.5rem;
  object-fit: contain;
  display: block;
}

@keyframes partnerships-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 0.875rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .partnerships-marquee-track {
    animation: none !important;
  }
}

/* ==========================================================================
   LANDING PAGE RICH ANIMATION & SCROLL REVEAL SYSTEM
   ========================================================================== */

/* 1. Header Scrolled Dynamic State */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  border-bottom-color: rgba(226, 232, 240, 1);
}

/* 2. Scroll Reveal Utility Classes */
[data-reveal] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.75s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal="fade-up"] {
  transform: translateY(28px);
}

[data-reveal="fade-down"] {
  transform: translateY(-28px);
}

[data-reveal="fade-left"] {
  transform: translateX(32px);
}

[data-reveal="fade-right"] {
  transform: translateX(-32px);
}

[data-reveal="zoom-in"] {
  transform: scale(0.94);
}

[data-reveal="pop-spring"],
[data-reveal="pop-spring-alt"] {
  transform: translateY(26px) scale(0.96);
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="fade-in"] {
  transform: none;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger Delays */
[data-reveal-delay="100"] { transition-delay: 0.1s; animation-delay: 0.1s; }
[data-reveal-delay="150"] { transition-delay: 0.15s; animation-delay: 0.15s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; animation-delay: 0.2s; }
[data-reveal-delay="250"] { transition-delay: 0.25s; animation-delay: 0.25s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; animation-delay: 0.3s; }
[data-reveal-delay="350"] { transition-delay: 0.35s; animation-delay: 0.35s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; animation-delay: 0.4s; }
[data-reveal-delay="500"] { transition-delay: 0.5s; animation-delay: 0.5s; }

/* 3. Button Interactive Shine / Shimmer Effect */
.pmb-btn-pill-yellow,
.hero-btn-primary,
.prodi-btn-primary {
  position: relative;
  overflow: hidden;
}

.pmb-btn-pill-yellow::after,
.hero-btn-primary::after,
.prodi-btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  transition: none;
  pointer-events: none;
}

.pmb-btn-pill-yellow:hover::after,
.hero-btn-primary:hover::after,
.prodi-btn-primary:hover::after {
  left: 150%;
  transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 4. Ambient Floating & Subtle Glow Keyframes */
@keyframes float-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes pulse-ring {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translateY(-50%) scale(1.05);
    opacity: 1;
  }
}

@keyframes quote-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(-2.5deg);
  }
}

.testimonial-quote-icon {
  animation: quote-float 5s ease-in-out infinite;
}

.pmb-orbit-decoration {
  animation: pulse-ring 6.5s ease-in-out infinite;
}

/* 5. Micro-interactions for Cards and Components */
.hero-stat-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.hero-stat-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: #bfdbfe;
  box-shadow: 0 12px 24px -6px rgba(30, 64, 175, 0.12), 0 4px 8px -2px rgba(30, 64, 175, 0.04);
}

.hero-stat-card:hover .hero-stat-icon {
  transform: scale(1.1) rotate(4deg);
}

.prodi-visual-wrapper {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.prodi-visual-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
}

.prodi-visual-wrapper img {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.prodi-visual-wrapper:hover img {
  transform: scale(1.035);
}

.prodi-check-item {
  transition: transform 0.2s ease;
}

.prodi-check-item:hover {
  transform: translateX(4px);
}

.pmb-showcase-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pmb-showcase-card:hover {
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 6px 16px -2px rgba(15, 23, 42, 0.03);
}

.pmb-image-container img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pmb-showcase-card:hover .pmb-image-container img {
  transform: scale(1.03);
}

.pmb-feature-item {
  transition: transform 0.22s ease;
}

.pmb-feature-item:hover {
  transform: translateX(3px);
}

.pmb-feature-item:hover .pmb-feature-icon {
  transform: scale(1.08) rotate(3deg);
  background: #1d4ed8;
}

.pmb-feature-icon {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.news-portal-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.news-portal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  border-color: #cbd5e1;
}

.news-portal-thumb img {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-portal-card:hover .news-portal-thumb img {
  transform: scale(1.05);
}

.testimonial-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.1);
}

/* 6. Accessibility: Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-slide .hero-title,
  .hero-slide .hero-subtitle,
  .hero-slide .hero-actions,
  .testimonial-quote-icon,
  .pmb-orbit-decoration {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .partnerships-marquee-track {
    animation: none !important;
  }
}

.stats-section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--navy-950);
  color: #d9e6f0;
}

.stats-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 0.75fr) minmax(0, 1.25fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 7rem);
}

.eyebrow.light { color: #e7b76b; }

.stats-copy h2 {
  max-width: 18ch;
  color: white;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.12;
}

.stats-copy > p:last-child {
  max-width: 50ch;
  margin: 1.25rem 0 0;
  color: #b9cad7;
  text-wrap: pretty;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.stats-grid.best-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stats-grid div {
  min-width: 0;
  padding-inline: clamp(1rem, 3vw, 2.25rem);
  border-inline-start: 1px solid rgb(255 255 255 / 18%);
}

.stats-grid dt {
  color: #b9cad7;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stats-grid dd {
  margin: 0.5rem 0 0;
  color: white;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.profile-section {
  position: relative;
  width: 100%;
  padding-block: clamp(3.75rem, 6vw, 5rem);
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(9rem, 0.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 8rem);
}

.profile-grid h2 {
  max-width: 24ch;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.08;
}

.profile-grid > div > p {
  max-width: 65ch;
  margin: 1.5rem 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  text-wrap: pretty;
}

.profile-actions,
.community-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.button-secondary {
  display: inline-flex;
  min-height: 2.875rem;
  align-items: center;
  padding-inline: 1.1rem;
  border: 1px solid var(--navy-900);
  border-radius: 0.45rem;
  color: var(--navy-900);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.button-secondary:hover {
  background: var(--navy-900);
  color: white;
}

.community-section {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--paper);
}

.community-card {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 1.2rem;
  background: var(--surface);
  box-shadow: 0 18px 60px rgb(16 42 67 / 10%);
}

.community-image {
  position: relative;
  min-height: 30rem;
  background: var(--blue-50);
}

.community-image img {
  object-fit: cover;
  object-position: center top;
  outline: 1px solid rgb(0 0 0 / 10%);
  outline-offset: -1px;
}

.community-copy {
  align-self: center;
  padding: clamp(2rem, 6vw, 5rem);
}

.community-copy h2 {
  max-width: 20ch;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.community-copy > p:not(.eyebrow) {
  max-width: 58ch;
  margin: 1.25rem 0 1.75rem;
  color: var(--muted);
  text-wrap: pretty;
}

/* ==========================================================================
   Modern University Site Footer
   ========================================================================== */
.site-footer {
  position: relative;
  width: 100%;
  background: #091724;
  color: #94a3b8;
  padding-block-start: clamp(3.5rem, 5vw, 4.5rem);
  padding-block-end: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.9fr 1.15fr;
  gap: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.footer-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.footer-logo {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-unit-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.footer-parent-title {
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 650;
  margin-top: 0.2rem;
}

.footer-motto {
  font-size: 0.84rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 0 1.35rem 0;
  max-width: 24rem;
}

.footer-motto strong {
  color: #f59e0b;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.22s ease;
}

.footer-social-btn:hover {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  text-decoration: none;
}

.footer-col-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 750;
  margin: 0 0 1.15rem 0;
  position: relative;
  padding-bottom: 0.55rem;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1.75rem;
  height: 2px;
  background: #f59e0b;
  border-radius: 9999px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.footer-nav-list a {
  color: #94a3b8;
  font-size: 0.84rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
  display: inline-block;
}

.footer-nav-list a:hover {
  color: #ffffff;
  transform: translateX(3px);
  text-decoration: none;
}

.footer-contact-items {
  display: grid;
  gap: 0.85rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #94a3b8;
}

.footer-contact-item svg {
  color: #38bdf8;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-contact-item a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-contact-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
}

@media (max-width: 64rem) {
  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem;
  }
}

@media (max-width: 38rem) {
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.desktop-nav a[aria-current='page'],
.dropdown-panel a[aria-current='page'],
.mobile-menu-panel a[aria-current='page'] {
  color: var(--navy-900);
  font-weight: 800;
}

.dropdown-panel a[aria-current='page'],
.mobile-menu-panel a[aria-current='page'] { background: var(--blue-50); }

.inner-page { min-height: 65vh; }

.page-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 0.28fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block-start: clamp(2rem, 4vw, 3.5rem);
  padding-block-end: clamp(2rem, 3vw, 2.5rem);
}

.page-layout.without-sidebar { grid-template-columns: minmax(0, 1fr); }

.section-nav {
  position: sticky;
  top: 5.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

.section-nav > p {
  margin: 0 0 0.75rem;
  padding: 0 0.5rem 0.6rem;
  color: #0f172a;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  border-bottom: 2px solid #f1f5f9;
  letter-spacing: -0.01em;
}

.section-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.section-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-radius: 0.6rem;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-nav a:hover {
  background: #f8fafc;
  color: #1e40af;
  transform: translateX(2px);
}

.section-nav a[aria-current='page'] {
  background: rgba(30, 64, 175, 0.08);
  color: #1e40af;
  border-color: rgba(30, 64, 175, 0.15);
  font-weight: 750;
  transform: translateX(0);
}

.page-content { min-width: 0; }
.content-stack { display: grid; gap: 1.5rem; }

.content-section {
  max-width: 48rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.content-section:last-child { padding-bottom: 0; border-bottom: 0; }

.content-section h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.content-section p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  line-height: 1.5;
  text-wrap: pretty;
}

.content-list {
  display: grid;
  gap: 0.4rem;
  margin: 0.65rem 0 0;
  padding-inline-start: 1.4rem;
  line-height: 1.5;
}

.content-list li { padding-inline-start: 0.5rem; }
.content-list li::marker { color: var(--gold-700); font-weight: 800; }

.numbered-content .content-list {
  gap: 0.65rem;
  padding-inline-start: 2rem;
  list-style: decimal;
}

.content-list a {
  color: var(--navy-900);
  font-weight: 650;
  text-decoration-line: underline;
  text-underline-offset: 0.15em;
}

.content-list a:hover { color: var(--navy-800); }

.page-feature-image {
  position: relative;
  min-height: clamp(22rem, 50vw, 38rem);
  overflow: hidden;
  border-radius: 1rem;
  background: var(--blue-50);
  box-shadow: 0 18px 50px rgb(16 42 67 / 10%);
}

.page-feature-image img { object-fit: cover; object-position: center top; }

/* ==========================================================================
   FACULTY BUSINESS CARD & ID PASS (KARTU NAMA EKSEKUTIF & DOSEN)
   ========================================================================== */

.business-card-wrapper {
  width: 100%;
}

.faculty-business-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px -2px rgb(16 42 67 / 7%);
}

.faculty-business-card.executive-card {
  background: #ffffff;
}

.biz-card-top-stripe {
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, var(--navy-900) 0%, var(--navy-900) 65%, var(--gold-600) 100%);
}

.biz-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.75rem 1rem;
  border-bottom: 1px solid var(--line);
  gap: 1rem;
  background: var(--surface);
}

.biz-card-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.biz-inst-name {
  font-size: 0.78rem;
  font-weight: 850;
  color: var(--navy-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.biz-inst-dept {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
}

.biz-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 0.35rem;
  background: var(--blue-50);
  border: 1px solid var(--line);
  color: var(--navy-900);
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
  white-space: nowrap;
}

.biz-card-body {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 2rem;
  padding: 1.75rem 1.75rem 2rem;
  align-items: center;
}

.biz-card-photo-pane {
  display: flex;
  flex-direction: column;
}

.biz-photo-frame {
  width: 210px;
  aspect-ratio: 4 / 5.2;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgb(16 42 67 / 8%);
  background: var(--blue-50);
}

.biz-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.biz-card-info-pane {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.biz-role-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 0.35rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.biz-person-name {
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  font-weight: 850;
  color: var(--navy-900);
  line-height: 1.18;
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}

.biz-person-degree {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-700);
  margin-bottom: 1.15rem;
}

.biz-credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.biz-cred-item {
  min-inline-size: 0;
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.6rem 0.85rem;
}

.biz-cred-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.biz-cred-value {
  display: block;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--navy-900);
  overflow-wrap: anywhere;
}

.biz-desc-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  padding-left: 0.85rem;
  border-left: 3px solid var(--gold-600);
}

.biz-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--line);
  background: var(--blue-50);
  flex-wrap: wrap;
  gap: 1rem;
}

.biz-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 1rem;
}

.biz-btn-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.biz-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: 0.45rem;
  font-size: 0.825rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1;
}

.biz-action-btn.primary {
  background: var(--navy-900);
  color: #ffffff;
  border: 1px solid transparent;
}

.biz-action-btn.primary:hover {
  background: var(--gold-600);
  color: var(--navy-950);
}

.biz-action-btn.scholar {
  background: #ffffff;
  color: var(--navy-900);
  border: 1.5px solid #cbd5e1;
}

.biz-action-btn.scholar:hover {
  border-color: #0284c7;
  background: #0284c7;
  color: #ffffff;
}

.biz-inst-location {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

/* ==========================================================================
   FACULTY MEMBERS GRID (KARTU NAMA DOSEN)
   ========================================================================== */

.faculty-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.faculty-business-card.member-card {
  background: var(--surface);
  border: 1px solid rgba(16, 42, 67, 0.1);
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgb(16 42 67 / 5%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.faculty-business-card.member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgb(16 42 67 / 10%);
  border-color: rgba(197, 160, 89, 0.5);
}

.member-card-body {
  padding: 1.35rem;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
  flex: 1;
}

.member-photo-frame {
  width: 88px;
  height: 110px;
  border-radius: 0.65rem;
  overflow: hidden;
  background: #e2e8f0;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
}

.member-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.member-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-900);
  background: var(--blue-50);
}

.member-role-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 750;
  color: #627d98;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.member-name {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.25;
  margin: 0 0 0.25rem;
}

.member-degree {
  font-size: 0.8rem;
  font-weight: 650;
  color: #b7791f;
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.member-meta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.member-meta-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.78rem;
}

.member-meta-tag {
  font-size: 0.62rem;
  font-weight: 800;
  color: #829ab1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-width: 52px;
}

.member-meta-val {
  color: #243b53;
  font-weight: 650;
}

.member-card-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem 1rem;
  border-top: 1px solid rgba(16, 42, 67, 0.06);
  background: #f8fafc;
}

.member-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--navy-900);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.member-action-btn:hover {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: #ffffff;
}

/* Fallback for legacy class references */
.chair-card, .lecturer-grid, .lecturer-card { display: none; }

.organization-content {
  display: grid;
  gap: 1.5rem;
}

.organization-content > header {
  max-width: 48rem;
}

.organization-content > header h2 {
  margin-top: 0.25rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.organization-content > header > p:last-child {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.organization-level {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.organization-root-level {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  align-items: start;
  gap: 1.25rem;
}

.organization-branch {
  min-width: 0;
}

.organization-card {
  display: grid;
  min-height: 7.25rem;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--gold-600);
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(16 42 67 / 6%);
}

.organization-photo {
  position: relative;
  display: grid;
  width: 5.25rem;
  aspect-ratio: 1;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--navy-900);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 750;
}

.organization-photo img {
  object-fit: cover;
  object-position: center top;
}

.organization-card h3 {
  color: var(--navy-950);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.3;
}

.organization-card p {
  margin: 0.35rem 0 0;
  color: var(--gold-700);
  font-size: 0.83rem;
  font-weight: 750;
}

.organization-card > div:last-child > span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.organization-branch > .organization-level {
  margin-top: 0.85rem;
  padding-inline-start: 1.1rem;
  border-inline-start: 1px solid var(--line);
}

.organization-empty {
  padding: 1.5rem;
  border: 1px dashed var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}

.organization-empty p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.curriculum-stack { display: grid; gap: 1rem; }
.curriculum-stack > h2 { margin-bottom: 0.25rem; font-size: clamp(1.5rem, 2.5vw, 2rem); }

.curriculum-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border-radius: 0.8rem;
  background: rgb(255 255 255 / 16%);
  box-shadow: 0 0 0 1px var(--navy-950);
}

.curriculum-summary div { padding: 1.25rem; background: var(--navy-950); color: white; }
.curriculum-summary strong { display: block; font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.curriculum-summary span { color: #b9cad7; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }

.content-note { margin: 0 0 1rem; color: var(--muted); font-size: 0.875rem; }

.semester-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface);
}

.semester-panel > summary {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: var(--navy-950);
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.semester-panel > summary::-webkit-details-marker { display: none; }
.semester-panel > summary::before { content: '+'; color: var(--gold-700); font-size: 1.25rem; }
.semester-panel[open] > summary::before { content: '\2212'; }
.semester-panel > summary strong { margin-inline-start: auto; color: var(--muted); font-size: 0.8rem; }

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  outline-offset: -3px;
}

table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th, td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); text-align: start; }
th { background: var(--blue-50); color: var(--navy-950); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
th:first-child, td:first-child { width: 10rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
th:last-child, td:last-child { width: 4rem; text-align: end; }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.resource-card {
  display: block;
  min-height: 12rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface);
  text-decoration: none;
}

.resource-card:hover { border-color: var(--navy-800); box-shadow: 0 12px 32px rgb(16 42 67 / 9%); }
.resource-card h2 { font-size: 1.35rem; }
.resource-card p { margin: 0.75rem 0 1.5rem; color: var(--muted); font-size: 0.9rem; }
.resource-card > span { color: var(--navy-900); font-size: 0.82rem; font-weight: 750; }

.document-list { display: grid; border-top: 1px solid var(--line); }

.document-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 5rem;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.document-row:hover strong { color: var(--navy-800); text-decoration: underline; }

.document-meta-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.document-type {
  display: inline-grid;
  min-width: 3.25rem;
  min-height: 2rem;
  place-items: center;
  border-radius: 0.35rem;
  background: var(--navy-950);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.document-size {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.document-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.document-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.document-category-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  background: var(--blue-50);
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 700;
}

.document-description {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.document-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  background: var(--navy-950);
  color: white;
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.document-row:hover .document-download-btn {
  background: var(--navy-800);
  transform: translateY(-1px);
}

/* ==========================================================================
   Modern UI: Visi & Misi Redesign
   ========================================================================== */
.vision-mission-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.vision-hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1e40af 100%);
  border-radius: 1.1rem;
  color: #ffffff;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.vision-hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.vision-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.vision-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #fde047;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vision-target-tag {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 600;
}

.vision-quote {
  margin: 0 0 1.5rem;
  padding: 0;
  border: none;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.55;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.vision-pillars-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vision-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
}

.mission-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mission-section-header {
  margin-bottom: 0.25rem;
}

.mission-eyebrow {
  display: inline-block;
  color: var(--gold-600, #a16207);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.mission-heading {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: #0f172a;
  margin: 0 0 0.35rem;
  font-weight: 800;
}

.mission-subheading {
  color: #64748b;
  font-size: 0.92rem;
  margin: 0;
  max-width: 42rem;
}

.mission-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .mission-cards-grid {
    grid-template-columns: 1fr;
  }
}

.mission-item-card {
  display: flex;
  gap: 1rem;
  padding: 1.35rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.mission-item-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px -4px rgba(30, 64, 175, 0.1);
}

.mission-card-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: #eff6ff;
  color: #1e40af;
  font-size: 1.05rem;
  font-weight: 800;
  flex-shrink: 0;
}

.mission-card-content {
  flex: 1;
}

.mission-item-title {
  font-size: 1rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0 0 0.45rem;
  line-height: 1.3;
}

.mission-item-desc {
  font-size: 0.865rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.values-brand-banner {
  padding: 1.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
}

.values-brand-header {
  margin-bottom: 1.25rem;
}

.values-badge {
  display: inline-block;
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.values-title {
  font-size: 1.25rem;
  color: #0f172a;
  margin: 0 0 0.35rem;
  font-weight: 800;
}

.values-desc {
  color: #64748b;
  font-size: 0.865rem;
  margin: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.val-box {
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.val-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: #1e40af;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
}

.val-box strong {
  color: #0f172a;
  font-size: 0.88rem;
}

.val-box p {
  color: #64748b;
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   Modern UI: Strategi Pencapaian Redesign
   ========================================================================== */
.strategy-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.strategy-hero-card {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1e40af 100%);
  border-radius: 1.1rem;
  color: #ffffff;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.strategy-badge {
  display: inline-block;
  padding: 0.32rem 0.8rem;
  border-radius: 9999px;
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #fde047;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.strategy-hero-title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.65rem;
}

.strategy-hero-lead {
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
  max-width: 48rem;
}

.strategy-pillars-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.strategy-section-header {
  margin-bottom: 0.25rem;
}

.strategy-eyebrow {
  display: inline-block;
  color: var(--gold-600, #a16207);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.strategy-subheading {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: #0f172a;
  margin: 0 0 0.25rem;
  font-weight: 800;
}

.strategy-subdesc {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0;
}

.strategy-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 860px) {
  .strategy-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.strategy-pillar-card {
  padding: 1.35rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.strategy-pillar-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px -4px rgba(30, 64, 175, 0.1);
}

.strategy-pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: #eff6ff;
  color: #1e40af;
  flex-shrink: 0;
}

.strategy-pillar-card h4 {
  font-size: 1rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0;
}

.strategy-pillar-card p {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.indicators-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.indicators-header {
  margin-bottom: 0.25rem;
}

.indicators-eyebrow {
  display: inline-block;
  color: var(--gold-600, #a16207);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.indicators-title {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: #0f172a;
  margin: 0 0 0.25rem;
  font-weight: 800;
}

.indicators-desc {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0;
}

.indicators-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .indicators-grid {
    grid-template-columns: 1fr;
  }
}

.indicator-card {
  display: flex;
  gap: 1rem;
  padding: 1.35rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.indicator-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px -4px rgba(30, 64, 175, 0.1);
}

.indicator-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: #eff6ff;
  color: #1e40af;
  font-size: 1.05rem;
  font-weight: 800;
  flex-shrink: 0;
}

.indicator-body {
  flex: 1;
}

.indicator-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  margin-bottom: 0.45rem;
}

.badge-blue { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-emerald { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-amber { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-purple { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }

.indicator-body h4 {
  font-size: 0.98rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.indicator-body p {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Modern UI: Spesifikasi & Profil Lulusan
   ========================================================================== */
.spec-wrapper,
.grad-profile-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.spec-hero-card,
.grad-hero-card {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1e40af 100%);
  border-radius: 1.1rem;
  color: #ffffff;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.spec-badge,
.grad-badge {
  display: inline-block;
  padding: 0.32rem 0.8rem;
  border-radius: 9999px;
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #fde047;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.spec-hero-title,
.grad-hero-title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.65rem;
}

.spec-hero-lead,
.grad-hero-lead {
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
  max-width: 48rem;
}

.spec-concentrations-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.spec-section-header {
  margin-bottom: 0.25rem;
}

.spec-eyebrow {
  display: inline-block;
  color: var(--gold-600, #a16207);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.spec-section-heading {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: #0f172a;
  margin: 0 0 0.25rem;
  font-weight: 800;
}

.spec-section-desc {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0;
}

.spec-concentrations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 860px) {
  .spec-concentrations-grid {
    grid-template-columns: 1fr;
  }
}

.spec-conc-card {
  padding: 1.35rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.spec-conc-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px -4px rgba(30, 64, 175, 0.1);
}

.spec-conc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: #eff6ff;
  color: #1e40af;
  flex-shrink: 0;
}

.spec-conc-card h4 {
  font-size: 1rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0;
}

.spec-conc-card p {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.spec-facts-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spec-facts-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.spec-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 768px) {
  .spec-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.spec-fact-tile {
  padding: 1.1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.spec-fact-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-fact-value {
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 750;
}

.grad-roles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 860px) {
  .grad-roles-grid {
    grid-template-columns: 1fr;
  }
}

.grad-role-card {
  padding: 1.4rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.grad-role-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px -4px rgba(30, 64, 175, 0.1);
}

.grad-role-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grad-role-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e40af;
}

.grad-role-tag {
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
}

.tag-blue { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.tag-emerald { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.tag-purple { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }

.grad-role-title {
  font-size: 1.1rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0;
}

.grad-role-desc {
  font-size: 0.865rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Modern UI: Akreditasi Showcase Redesign
   ========================================================================== */
.accred-page-intro {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding-inline: 0.15rem;
}

.accred-intro-eyebrow {
  color: #a16207;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accred-intro-title {
  margin: 0;
  color: #0f172a;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.accred-intro-copy {
  max-width: 48rem;
  margin: 0;
  color: #64748b;
  font-size: 0.96rem;
  line-height: 1.65;
}

.accred-showcase-card {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.1rem;
  box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.accred-showcase-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.accred-seal-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  border-radius: 0.95rem;
  color: #ffffff;
  box-shadow: 0 10px 20px -4px rgba(30, 64, 175, 0.3);
}

.accred-seal-icon {
  color: #fde047;
  flex-shrink: 0;
}

.accred-seal-text {
  display: flex;
  flex-direction: column;
}

.accred-seal-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #cbd5e1;
  text-transform: uppercase;
}

.accred-seal-rank {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.accred-header-copy {
  flex: 1;
  min-width: 15rem;
}

.accred-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  white-space: normal;
  line-height: 1.4;
  padding: 0.28rem 0.7rem;
  border-radius: 9999px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.accred-verified-pill.is-review {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.accred-pro-title {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.25rem;
}

.accred-pro-desc {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

.accred-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 640px) {
  .accred-meta-grid {
    grid-template-columns: 1fr;
  }
}

.accred-meta-item {
  padding: 1.1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.accred-meta-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.accred-meta-value {
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.4;
}

.accred-certificate-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
}

.accred-certificate-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.accred-certificate-heading h3 {
  margin: 0.35rem 0 0;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 800;
}

.accred-certificate-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.accred-certificate-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 48rem);
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  background: #ffffff;
  box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.2);
}

.accred-certificate-image {
  display: block;
  width: min(100%, 42rem);
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.accred-certificate-frame.is-sideways {
  position: relative;
  aspect-ratio: 1755 / 1240;
  overflow: hidden;
}

.accred-certificate-image.is-sideways {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 141.532258%;
  max-width: none;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.accred-certificate-figure figcaption {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.accred-action-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.5rem;
}

.accred-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: #ffffff !important;
  border-radius: 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.accred-cta-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.35);
}

@media (max-width: 640px) {
  .accred-action-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .accred-cta-btn {
    justify-content: center;
    text-align: center;
  }
}

html[data-theme="dark"] .accred-intro-title {
  color: #f8fafc;
}

html[data-theme="dark"] .accred-intro-copy {
  color: #94a3b8;
}

html[data-theme="dark"] .accred-showcase-card {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 18px 42px -10px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .accred-showcase-header {
  border-bottom-color: #1e293b;
}

html[data-theme="dark"] .accred-pro-title,
html[data-theme="dark"] .accred-meta-value {
  color: #f8fafc;
}

html[data-theme="dark"] .accred-pro-desc,
html[data-theme="dark"] .accred-meta-label {
  color: #94a3b8;
}

html[data-theme="dark"] .accred-meta-item {
  background: #111c32;
  border-color: #263653;
}

html[data-theme="dark"] .accred-certificate-panel {
  background: #111c32;
  border-color: #263653;
}

html[data-theme="dark"] .accred-certificate-frame {
  border-color: #334155;
  background: #ffffff;
}

html[data-theme="dark"] .accred-certificate-heading h3 {
  color: #f8fafc;
}

html[data-theme="dark"] .accred-certificate-figure figcaption {
  color: #94a3b8;
}

/* ==========================================================================
   Modern UI: Shared Inner Page Wrappers & Hero Cards
   ========================================================================== */
.page-kind-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  width: 100%;
}

.page-hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1e40af 100%);
  border-radius: 1.1rem;
  color: #ffffff;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-hero-badge {
  display: inline-block;
  padding: 0.32rem 0.8rem;
  border-radius: 9999px;
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #fde047;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.page-hero-title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.65rem;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.page-hero-lead {
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
  max-width: 48rem;
}

/* Common Tags */
.tag-gold { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* ==========================================================================
   Modern UI: Info Beasiswa (Scholarship)
   ========================================================================== */
.scholarship-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .scholarship-grid {
    grid-template-columns: 1fr;
  }
}

.inner-feature-card {
  padding: 1.4rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.inner-feature-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px -4px rgba(30, 64, 175, 0.1);
}

.feature-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feature-card-tag {
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
}

.feature-card-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.5rem;
  background: #f1f5f9;
  color: #1e40af;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  font-family: var(--font-heading);
}

.feature-card-desc {
  font-size: 0.865rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.feature-card-footer {
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.feature-meta-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feature-meta-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e40af;
}

/* Procedure Section */
.procedure-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.procedure-header {
  margin-bottom: 0.25rem;
}

.procedure-eyebrow {
  display: inline-block;
  color: var(--gold-600, #a16207);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.procedure-title {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: #0f172a;
  margin: 0 0 0.25rem;
  font-weight: 800;
}

.procedure-desc {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0;
}

.procedure-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 860px) {
  .procedure-steps-grid {
    grid-template-columns: 1fr;
  }
}

.procedure-step-card {
  padding: 1.4rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  background: #1e40af;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
}

.procedure-step-card h4 {
  font-size: 1.02rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0;
}

.procedure-step-card p {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Modern UI: HMM (Student Org)
   ========================================================================== */
.pillars-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pillars-header {
  margin-bottom: 0.25rem;
}

.pillars-eyebrow {
  display: inline-block;
  color: var(--gold-600, #a16207);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.pillars-title {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: #0f172a;
  margin: 0 0 0.25rem;
  font-weight: 800;
}

.pillars-desc {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0;
}

.pillars-four-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .pillars-four-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-box {
  padding: 1.4rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-box:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px -4px rgba(30, 64, 175, 0.1);
}

.pillar-box-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  background: #eff6ff;
  color: #1e40af;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-box h4 {
  font-size: 1.05rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0;
}

.pillar-box p {
  font-size: 0.865rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.documents-download-card {
  padding: 1.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
}

.doc-download-header {
  margin-bottom: 1.25rem;
}

.doc-download-tag {
  display: inline-block;
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.doc-download-header h3 {
  font-size: 1.25rem;
  color: #0f172a;
  margin: 0 0 0.35rem;
  font-weight: 800;
}

.doc-download-header p {
  color: #64748b;
  font-size: 0.865rem;
  margin: 0;
}

.doc-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 768px) {
  .doc-download-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.doc-download-item {
  display: flex;
  min-inline-size: 0;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.doc-download-item:hover {
  border-color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.1);
}

.doc-item-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.55rem;
  background: #eff6ff;
  color: #1e40af;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.doc-item-info strong {
  font-size: 0.88rem;
  color: #0f172a;
}

.doc-item-info span {
  font-size: 0.74rem;
  color: #64748b;
}

.doc-item-action {
  font-size: 0.8rem;
  font-weight: 750;
  color: #1e40af;
  flex-shrink: 0;
}

/* ==========================================================================
   Modern UI: Sistem Pembelajaran (Learning System)
   ========================================================================== */
.methods-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.methods-header {
  margin-bottom: 0.25rem;
}

.methods-eyebrow {
  display: inline-block;
  color: var(--gold-600, #a16207);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.methods-title {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: #0f172a;
  margin: 0 0 0.25rem;
  font-weight: 800;
}

.methods-desc {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 992px) {
  .methods-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .methods-grid {
    grid-template-columns: 1fr;
  }
}

.method-card {
  padding: 1.15rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.method-card:hover {
  border-color: #bfdbfe;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(30, 64, 175, 0.08);
}

.method-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.74rem;
  font-weight: 800;
  width: fit-content;
}

.method-card h4 {
  font-size: 0.95rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0.15rem 0 0;
}

.method-card p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

.learning-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .learning-details-grid {
    grid-template-columns: 1fr;
  }
}

.learning-detail-panel {
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-panel-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-panel-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.detail-panel-lead {
  font-size: 0.865rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

.detail-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.detail-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.45;
}

.detail-check-list li svg {
  color: #1e40af;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.assignments-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.assignment-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
}

.assignment-abbr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.45rem;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.assignment-item strong {
  display: block;
  font-size: 0.86rem;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.assignment-item p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.grading-standard-banner {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.65rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  border-radius: 1rem;
  color: #ffffff;
  align-items: center;
}

@media (max-width: 768px) {
  .grading-standard-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.grading-seal {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .grading-seal {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 1.25rem;
  }
}

.grading-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.grading-grade {
  font-size: 1.6rem;
  font-weight: 850;
  color: #ffffff;
}

.grading-seal p {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.35;
}

.grading-attitude-copy h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fde047;
  margin: 0 0 0.35rem;
}

.grading-attitude-copy p {
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin: 0 0 0.85rem;
}

.grade-scale-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.grade-scale-pills code {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 0.4rem;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ==========================================================================
   Modern UI: Sarana & Prasarana (Facilities)
   ========================================================================== */
.facility-categories-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.facility-category-card {
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.category-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #f1f5f9;
}

.cat-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.75rem;
  background: #1e40af;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  flex-shrink: 0;
}

.cat-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.cat-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.facility-items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 768px) {
  .facility-items-grid {
    grid-template-columns: 1fr;
  }
}

.fac-item-box {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.fac-item-link:hover {
  border-color: #1e40af;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.1);
}

.fac-item-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.55rem;
  background: #ffffff;
  color: #1e40af;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.fac-item-box strong {
  display: block;
  font-size: 0.88rem;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.fac-item-box p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

/* ==========================================================================
   Modern UI: Kerjasama (Partnerships)
   ========================================================================== */
.partners-grid-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .partners-grid-stack {
    grid-template-columns: 1fr;
  }
}

.partner-org-card {
  padding: 1.4rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-org-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px -4px rgba(30, 64, 175, 0.1);
}

.partner-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.partner-sector-tag {
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
}

.partner-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 750;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.partner-badge-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.partner-org-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  font-family: var(--font-heading);
}

.partner-org-scope {
  font-size: 0.865rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.partner-action-row {
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.partner-web-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 750;
  color: #1e40af;
  text-decoration: none;
  transition: all 0.15s ease;
}

.partner-web-btn:hover {
  color: #1d4ed8;
  transform: translateX(2px);
  text-decoration: underline;
}

.accreditation-card {
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-600);
  border-radius: 0.9rem;
  background: var(--surface);
  box-shadow: 0 16px 48px rgb(16 42 67 / 9%);
}

.accreditation-card h2 { color: var(--navy-900); font-size: clamp(3.25rem, 8vw, 6rem); line-height: 1; }
.accreditation-card > div > p:last-child { margin: 0.5rem 0 0; color: var(--muted); }

.accreditation-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 2.5rem 0;
  background: var(--line);
}

.accreditation-facts div { padding: 1rem; background: var(--paper); }
.accreditation-facts dt { color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.accreditation-facts dd { margin: 0.4rem 0 0; font-weight: 700; overflow-wrap: anywhere; }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.contact-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--surface); }
.contact-card h2 { font-size: 1.4rem; }
.contact-card p, .contact-card address { margin: 0.8rem 0 1.5rem; color: var(--muted); font-style: normal; }

.news-archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.archive-card { overflow: hidden; border: 1px solid var(--line); border-radius: 0.9rem; background: var(--surface); }
.archive-image { display: block; min-height: 14rem; }
.archive-image img { object-fit: cover; }
.archive-card > div { padding: 1.4rem; }
.archive-card h2 { font-family: var(--font-body); font-size: 1.2rem; line-height: 1.35; }
.archive-card h2 a { text-decoration: none; }
.archive-card h2 a:hover { color: var(--navy-800); text-decoration: underline; }
.archive-card > div > p:last-child { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.875rem; }

.public-news-taxonomy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-block: 0.8rem;
}

.public-news-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.2;
}

.public-news-tag {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  color: var(--navy-800);
  background: var(--blue-50);
}

.public-news-detail-container {
  max-width: 64rem;
  padding-block: clamp(1.75rem, 4vw, 3rem);
}

.public-news-back { display: inline-flex; gap: 0.4rem; margin-bottom: 1.5rem; }
.public-news-header { max-width: 56rem; }

.public-news-header h1 {
  max-width: 22ch;
  margin-block: 0.35rem 0.8rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  text-wrap: balance;
}

.public-news-cover {
  position: relative;
  min-height: clamp(18rem, 54vw, 34rem);
  margin-block: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--blue-50);
}

.public-news-cover img { object-fit: cover; }

.public-news-lead,
.public-news-body {
  max-width: 48rem;
}

.public-news-lead {
  margin-block: 1.25rem;
  color: var(--navy-800);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.public-news-body p {
  margin-block: 0 1rem;
  color: var(--ink);
  line-height: 1.75;
}

@media (hover: hover) {
  .featured-visual,
  .apply-link,
  .button-secondary {
    transition-property: transform, box-shadow, background-color, color;
    transition-duration: 180ms;
    transition-timing-function: ease-out;
  }

  .featured-visual:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 28px 70px rgb(16 42 67 / 22%);
  }

  .resource-card,
  .academic-links a {
    transition: border-color 180ms ease-out, background-color 180ms ease-out, box-shadow 180ms ease-out;
  }
}

@media (max-width: 72rem) {
  .desktop-nav { display: none; }

  .page-layout { grid-template-columns: 1fr; gap: 2rem; }

  .section-nav {
    position: static;
    overflow: hidden;
  }

  .section-nav nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
  }

  .section-nav a {
    min-width: max-content;
    padding-inline: 0.75rem;
    border: 1px solid var(--line);
  }

  .section-nav a[aria-current='page'] {
    padding-inline-start: 0.75rem;
    border: 1px solid var(--navy-900);
    background: var(--blue-50);
  }

  .mobile-nav {
    position: relative;
    display: block;
    flex-shrink: 0;
  }

  .mobile-nav > summary {
    display: inline-flex;
    min-height: 2.5rem;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 0.55rem;
    background: #f8fafc;
    color: var(--navy-950, #0f172a);
    cursor: pointer;
    list-style: none;
    transition: all 0.15s ease;
  }

  .mobile-nav > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav > summary:hover,
  .mobile-nav[open] > summary {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
  }

  .mobile-nav > summary .menu-text {
    display: none;
  }

  .menu-icon {
    display: flex;
    flex-direction: column;
    gap: 3.5px;
    align-items: center;
    justify-content: center;
  }

  .menu-icon i {
    display: block;
    width: 1.15rem;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
  }

  .mobile-menu-panel {
    position: absolute;
    inset-block-start: calc(100% + 0.65rem);
    inset-inline-end: 0;
    display: grid;
    width: min(22rem, calc(100vw - 2rem));
    max-height: min(75vh, 38rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.85rem;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #1e40af;
    border-radius: 0.85rem;
    background: #ffffff;
    box-shadow: 0 20px 45px -5px rgba(15, 23, 42, 0.16);
    z-index: 100;
  }

  .mobile-menu-panel > a,
  .mobile-menu-panel > details > summary,
  .mobile-submenu a {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    padding-inline: 0.75rem;
    border-radius: 0.5rem;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
  }

  .mobile-menu-panel > a:hover,
  .mobile-menu-panel > details > summary:hover,
  .mobile-submenu a:hover {
    background: #f8fafc;
    color: #1e40af;
  }

  .mobile-menu-panel > details > summary {
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu-panel > details > summary::after {
    content: '+';
    color: #1e40af;
    font-size: 1.15rem;
    font-weight: 700;
  }

  .mobile-menu-panel > details[open] > summary::after {
    content: '−';
  }

  .mobile-submenu {
    display: grid;
    margin-inline-start: 0.75rem;
    padding-inline-start: 0.75rem;
    border-inline-start: 2px solid #e2e8f0;
    gap: 0.2rem;
    margin-block: 0.35rem;
  }

  .mobile-submenu a {
    min-height: 2.35rem;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 500;
  }

  .mobile-cta {
    margin-top: 0.75rem;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 9999px !important;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.35);
  }

  .mobile-language {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
  }

  .mobile-language a {
    display: grid;
    min-height: 2.5rem;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #1e40af;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
  }
}

@media (max-width: 50rem) {
  .news-grid,
  .stats-layout,
  .profile-grid,
  .community-card,
  .chair-card { grid-template-columns: 1fr; }

  .news-grid { gap: 3rem; }

  .stats-grid div:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .stats-grid.best-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-grid.best-grid div:nth-child(3) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .community-image { min-height: 24rem; }
  .chair-image { min-height: 28rem; }

  .lecturer-grid,
  .resource-grid,
  .contact-grid,
  .news-archive-grid { grid-template-columns: 1fr; }

  .organization-root-level { grid-template-columns: 1fr; }

  .accreditation-facts { grid-template-columns: 1fr; }

  .profile-grid { gap: 1rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .faculty-cards-grid { grid-template-columns: 1fr; }
  .biz-card-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
    text-align: center;
  }
  .biz-photo-frame {
    margin: 0 auto;
    width: min(100%, 150px);
  }
  .biz-role-tag {
    align-self: center;
  }
  .biz-credentials-grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }
  .biz-desc-text {
    text-align: left;
  }
  .biz-footer-actions {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.85rem;
  }
  .biz-btn-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .biz-action-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .biz-inst-location {
    justify-content: center;
    text-align: center;
  }
  .member-card-body {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 1rem;
    gap: 0.9rem;
  }
  .member-photo-frame {
    width: 76px;
    height: 96px;
  }
}

@media (max-width: 37.5rem) {
  .biz-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem 0.85rem;
  }
  .container,
  .header-main { width: min(calc(100% - 1.25rem), var(--container)); }

  .header-main {
    min-height: 3.85rem;
    padding-block: 0.35rem;
    gap: 0.5rem;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 3.2rem);
    gap: 0.5rem;
    overflow: hidden;
  }

  .brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    max-width: 2.25rem;
    flex-shrink: 0;
  }

  .brand-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    gap: 0.05rem;
  }

  .brand strong,
  .brand-kicker {
    font-size: clamp(0.66rem, 2.7vw, 0.78rem) !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.25 !important;
    display: block !important;
  }

  .brand small,
  .brand-title {
    font-size: clamp(0.56rem, 2.3vw, 0.66rem) !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.25 !important;
    display: block !important;
  }

  .brand small span { display: none; }

  .mobile-nav > summary {
    width: 2.45rem;
    height: 2.45rem;
    min-height: 2.45rem;
    justify-content: center;
    padding: 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-visual { min-height: 16rem; }
  .news-card {
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 1rem;
  }

  .news-thumb {
    min-height: 5.5rem;
    font-size: 1.4rem;
  }

  .news-card > div > p:last-child { display: none; }

  .page-layout { padding-block: 2rem; }
  .chair-image { min-height: 23rem; }

  .profile-facts { grid-template-columns: 1fr; }

  .curriculum-summary div { padding: 1rem 0.75rem; }
  .curriculum-summary strong { font-size: 1.85rem; }
  .curriculum-summary span { font-size: 0.65rem; }

  .document-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .document-row > span:last-child {
    grid-column: 2;
  }
  .stats-grid,
  .stats-grid.best-grid { grid-template-columns: 1fr; }

  .stats-grid div,
  .stats-grid div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 1.25rem 0;
    border-inline-start: 0;
    border-bottom: 1px solid rgb(255 255 255 / 15%);
  }

  .stats-grid dd { font-size: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; }

  .footer-links {
    grid-column: auto;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .brand-mark,
  .apply-link,
  .mobile-cta { border: 1px solid ButtonText; }
}

/* CMS prototype */
.admin-login-page,
.admin-page,
.admin-session-check {
  min-height: 100dvh;
  background: #f3f6f8;
}

.admin-login-page {
  display: grid;
  grid-template-columns: minmax(22rem, 0.9fr) minmax(30rem, 1.1fr);
}

.admin-login-brand {
  display: flex;
  min-height: 100dvh;
  padding: clamp(2rem, 5vw, 5rem);
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  background: var(--navy-950);
  color: white;
}

.admin-login-logo,
.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.admin-login-logo img,
.admin-sidebar-brand img {
  flex: none;
  border-radius: 50%;
  background: white;
  object-fit: contain;
}

.admin-login-logo span,
.admin-sidebar-brand span {
  display: grid;
  min-width: 0;
}

.admin-login-logo strong { font-size: 1.05rem; }

.admin-login-logo small,
.admin-sidebar-brand small { color: rgb(255 255 255 / 68%); }

.admin-login-brand h1 {
  max-width: 12ch;
  margin: 0.5rem 0 1rem;
  color: white;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.admin-login-brand > div > p:last-child {
  max-width: 35rem;
  margin: 0;
  color: rgb(255 255 255 / 75%);
  font-size: 1rem;
}

.admin-login-brand-note {
  margin: 0;
  color: rgb(255 255 255 / 62%);
  font-size: 0.82rem;
}

.admin-kicker {
  margin: 0;
  color: var(--gold-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.admin-login-brand .admin-kicker { color: #e7bd75; }

.admin-login-panel {
  display: grid;
  min-height: 100dvh;
  padding: clamp(1.5rem, 5vw, 5rem);
  place-items: center;
}

.admin-login-card {
  width: min(100%, 29rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 20px 55px rgb(16 42 67 / 10%);
}

.admin-login-heading h2,
.admin-welcome h1,
.admin-section-heading h2,
.admin-panel-heading h2 {
  color: var(--navy-950);
  font-family: var(--font-heading);
}

.admin-login-heading h2 {
  margin: 0.35rem 0 0.4rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.12;
}

.admin-login-heading > p:last-child,
.admin-welcome p,
.admin-section-heading p,
.admin-panel-heading p {
  margin: 0;
  color: var(--muted);
}

.admin-demo-notice {
  display: grid;
  gap: 0.15rem;
  margin-block: 1.5rem;
  padding: 0.85rem 1rem;
  border-inline-start: 3px solid var(--gold-600);
  background: #fff8ea;
  color: var(--ink);
  font-size: 0.82rem;
}

.admin-demo-notice span { color: var(--muted); }

.admin-dev-credentials dl,
.admin-dev-credentials dl div {
  display: grid;
  gap: 0.25rem;
  margin: 0;
}

.admin-dev-credentials dl {
  gap: 0.65rem;
  margin-block: 0.65rem 0.35rem;
}

.admin-dev-credentials dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.admin-dev-credentials dd { margin: 0; }

.admin-dev-credentials code {
  display: block;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e5d7b8;
  border-radius: 0.35rem;
  background: white;
  color: var(--navy-950);
  overflow-wrap: anywhere;
  user-select: all;
}

.admin-dev-credential-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-dev-credential-row code {
  flex: 1;
}

.admin-dev-copy-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border: 1px solid #d8c39d;
  border-radius: 0.35rem;
  background: #fdfaf3;
  color: #78350f;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-dev-copy-pill:hover {
  background: #f5eedc;
  border-color: #b45309;
}

.admin-dev-credential-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.admin-dev-fill-button {
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.admin-dev-credentials .admin-secondary-button {
  justify-self: start;
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  margin-top: 0;
}

.admin-dev-credential-status {
  min-height: 1.2em;
  color: #78350f;
  font-size: 0.8rem;
  font-weight: 600;
}

.admin-login-form,
.admin-field { display: grid; }

.admin-login-form { gap: 1.15rem; }
.admin-field { gap: 0.4rem; }

.admin-field label {
  color: var(--navy-950);
  font-size: 0.88rem;
  font-weight: 750;
}

.admin-field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #b8c4ce;
  border-radius: 0.5rem;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.admin-field input[aria-invalid='true'] { border-color: #b42318; }

.admin-field-help,
.admin-field-error {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.admin-field-help { color: var(--muted); }
.admin-field-error { color: #9f1d16; font-weight: 650; }

.admin-login-error {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-inline-start: 3px solid #b42318;
  background: #fff1f0;
  color: #8f1b13;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.admin-password-toggle {
  display: flex;
  width: fit-content;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
}

.admin-password-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--navy-900);
}

.admin-primary-button,
.admin-topbar button {
  border: 0;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.admin-primary-button {
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--navy-900);
  color: white;
  font-weight: 750;
  transition: background-color 180ms ease;
}

.admin-primary-button:active { background: var(--navy-950); }
.admin-topbar button:active { background: var(--blue-50); }

.admin-back-link {
  display: inline-flex;
  min-height: 2.75rem;
  margin-top: 1.1rem;
  align-items: center;
  color: var(--navy-900);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

@media (hover: hover) {
  .admin-primary-button:hover { background: var(--navy-800); }
  .admin-back-link:hover,
  .admin-topbar a:hover { text-decoration: underline; }
}

.admin-login-page :is(a, button, input):focus-visible,
.admin-page :is(a, button, summary):focus-visible {
  border-radius: 0.25rem;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ==========================================================================
   ADMIN CMS MODERN DESIGN SYSTEM (Tailwind / Filament / Shadcn aesthetic)
   ========================================================================== */

body.admin-body,
.admin-page {
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--font-body);
  background-color: #f8fafc;
  color: #0f172a;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.admin-page h1,
.admin-page h2,
.admin-page h3,
.admin-page h4,
.admin-page h5,
.admin-page h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.02em;
}

.admin-shell {
  display: grid;
  height: 100dvh;
  max-height: 100dvh;
  grid-template-columns: 17.5rem minmax(0, 1fr);
  background: #f8fafc;
  overflow: hidden;
  transition: grid-template-columns 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-shell.sidebar-collapsed {
  grid-template-columns: 0px minmax(0, 1fr);
}

/* Sidebar */
.admin-sidebar {
  position: relative;
  display: flex;
  height: 100dvh;
  max-height: 100dvh;
  width: 17.5rem;
  padding: 1.25rem 0.9rem;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  background: #0b1329;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  z-index: 40;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), width 0.25s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s ease, opacity 0.2s ease;
}

.admin-shell.sidebar-collapsed .admin-sidebar {
  transform: translateX(-100%);
  width: 0;
  min-width: 0;
  padding-inline: 0;
  border-right: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.admin-sidebar::-webkit-scrollbar {
  width: 5px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
.admin-sidebar-backdrop {
  display: none;
}

.admin-sidebar-close-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 0.35rem;
  border-radius: 0.45rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.admin-sidebar-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-sidebar-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-sidebar-toggle-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: #ffffff;
  transition: all 0.15s ease;
}

.admin-sidebar-brand:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.admin-brand-logo-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-brand-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.admin-brand-name {
  font-size: 0.94rem;
  font-weight: 750;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.admin-brand-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.admin-version-tag {
  font-size: 0.62rem;
  font-weight: 750;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 6px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.admin-navigation {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-block: 1.25rem 1rem;
}

.admin-nav-group-single {
  display: flex;
  flex-direction: column;
}

.admin-nav-dropdown {
  display: flex;
  flex-direction: column;
}

.admin-nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.83rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.admin-nav-dropdown-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.admin-nav-dropdown-btn.has-active {
  color: #ffffff;
}

.admin-nav-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  color: #94a3b8;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease;
}

.admin-nav-dropdown.is-open .admin-nav-chevron {
  transform: rotate(180deg);
  color: #ffffff;
}

/* Distinct CMS Dropdown Accent & Badge */
.admin-nav-dropdown.is-cms .admin-nav-dropdown-btn {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: #f1f5f9;
}

.admin-nav-dropdown.is-cms .admin-nav-dropdown-btn:hover {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(59, 130, 246, 0.4);
  color: #ffffff;
}

.admin-nav-dropdown.is-cms .admin-nav-dropdown-btn .admin-nav-icon {
  color: #60a5fa;
}

.admin-nav-cms-badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: #2563eb;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-left: auto;
  margin-right: 0.35rem;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.4);
}

.admin-nav-dropdown.is-cms .admin-nav-dropdown-menu {
  border-left-color: rgba(59, 130, 246, 0.4);
}

.admin-nav-dropdown-menu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 0.65rem;
  margin-left: 0.85rem;
  border-left: 1.5px solid rgba(255, 255, 255, 0.12);
  transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, margin 0.2s ease, visibility 0.2s;
}

.admin-nav-dropdown.is-open .admin-nav-dropdown-menu {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
  margin-top: 0.25rem;
  margin-bottom: 0.4rem;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.admin-nav-sub-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 0.65rem;
  border-radius: 0.4rem;
  color: #94a3b8;
  font-size: 0.79rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
}

.admin-nav-sub-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.admin-nav-sub-item.is-active {
  color: #ffffff;
  background: #2563eb;
  font-weight: 650;
  box-shadow: 0 1px 6px rgba(37, 99, 235, 0.35);
}

.admin-nav-sub-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: #64748b;
  transition: color 0.15s ease;
}

.admin-nav-sub-item:hover .admin-nav-sub-icon,
.admin-nav-sub-item.is-active .admin-nav-sub-icon {
  color: #ffffff;
}

.admin-nav-sub-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-nav-sub-item.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-nav-group-label {
  margin: 0 0 0.35rem;
  padding-inline: 0.75rem;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-nav-items {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  color: #cbd5e1;
  font-size: 0.83rem;
  font-weight: 550;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
}

.admin-nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.admin-nav-item.is-active {
  color: #ffffff;
  background: #2563eb;
  font-weight: 650;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.admin-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.admin-nav-item:hover .admin-nav-icon,
.admin-nav-item.is-active .admin-nav-icon {
  color: #ffffff;
}

.admin-nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #93c5fd;
  flex-shrink: 0;
}

.admin-nav-badge {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  margin-left: auto;
}

.admin-nav-item.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding: 1rem 0.75rem 0.25rem;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #64748b;
}

.admin-system-pulse {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: #94a3b8;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.admin-sidebar-copy {
  color: #475569;
  font-size: 0.68rem;
}

/* Main Area & Topbar */
.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  background: inherit;
}

.admin-topbar {
  display: flex;
  min-height: 4.25rem;
  padding: 0.75rem clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 0;
  z-index: 30;
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-topbar-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

.admin-topbar-unit-info {
  display: flex;
  align-items: center;
}

.admin-topbar-unit-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.admin-topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 0.85rem;
  border-radius: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.admin-view-site-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-view-site-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
}

.admin-user-profile-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  height: 38px;
  padding: 0 0.75rem 0 0.35rem;
  border-radius: 0.55rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.admin-avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.admin-user-info-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.admin-user-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
}

.admin-role-badge {
  font-size: 0.625rem;
  font-weight: 650;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.2;
  width: fit-content;
  letter-spacing: 0.01em;
}

.admin-role-badge.is-super {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.admin-role-badge.is-editor {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.admin-logout-btn {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  font-weight: 650;
  box-shadow: 0 1px 2px rgba(225, 29, 72, 0.04);
}

.admin-logout-btn:hover {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.28);
}

/* Theme Toggle Button */
.admin-theme-toggle-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-theme-toggle-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
}

.admin-theme-toggle-btn .theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
}

.admin-theme-toggle-btn .theme-icon.is-light {
  display: none;
}

.admin-theme-toggle-btn .theme-icon.is-dark {
  display: inline-flex;
}

html[data-theme="dark"] .admin-theme-toggle-btn .theme-icon.is-light {
  display: inline-flex;
  color: #facc15;
}

html[data-theme="dark"] .admin-theme-toggle-btn .theme-icon.is-dark {
  display: none;
}

/* Admin Content Canvas */
.admin-content {
  width: 100%;
  max-width: 100%;
  padding: 1.25rem clamp(1rem, 2vw, 1.75rem);
  flex: 1;
  min-width: 0;
}

/* Modern Flash Messages */
.admin-flash-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: all 0.35s ease;
  position: relative;
}

.admin-flash-modern svg {
  flex-shrink: 0;
}

.admin-flash-text {
  flex: 1 1 auto;
  line-height: 1.4;
}

.admin-flash-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 0.375rem;
  border: none;
  background: transparent;
  color: currentColor;
  opacity: 0.65;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.admin-flash-close-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.08);
}

.admin-flash-modern.is-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.admin-flash-modern.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Headings */
.admin-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.admin-kicker {
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
  margin: 0 0 0.35rem;
}

.admin-page-heading h1 {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 750;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.35rem;
}

.admin-page-heading p {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0;
  max-width: 48rem;
}

.admin-heading-action {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

/* Buttons & Links */
.admin-primary-link,
.admin-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #2563eb;
  color: #ffffff !important;
  padding: 0.58rem 1.15rem;
  border-radius: 0.55rem;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
  transition: all 0.15s ease;
}

.admin-primary-link:hover,
.admin-primary-button:hover {
  background: #1d4ed8;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.admin-secondary-link,
.admin-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #ffffff;
  color: #334155 !important;
  border: 1px solid #d1d5db;
  padding: 0.55rem 1rem;
  border-radius: 0.55rem;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-secondary-link:hover,
.admin-secondary-button:hover {
  background: #f8fafc;
  border-color: #9ca3af;
  color: #0f172a !important;
}

.admin-danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  padding: 0.42rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-danger-button:hover {
  background: #fecaca;
  color: #991b1b;
}

.admin-text-link {
  color: #2563eb;
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.admin-text-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Modern Card & Table System */
.admin-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.01);
  overflow: hidden;
  margin-top: 1rem;
}

.admin-table-card-header {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-table-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.admin-table-card-subtitle {
  font-size: 0.75rem;
  color: #64748b;
  display: block;
  margin-top: 0.15rem;
}

.admin-table-card-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.admin-table-search-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.admin-table-search-box svg {
  position: absolute;
  left: 0.7rem;
  color: #64748b;
  pointer-events: none;
}

.admin-table-search-input {
  height: 2.15rem;
  padding: 0.35rem 0.65rem 0.35rem 2.05rem;
  font-size: 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #0f172a;
  min-width: 200px;
  max-width: 280px;
  transition: all 0.15s ease;
}

.admin-table-search-input:focus {
  outline: none;
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.admin-table-search-input::placeholder {
  color: #94a3b8;
  font-size: 0.78rem;
}

.admin-table-no-results {
  background: transparent !important;
}

.admin-table-no-results td {
  border-bottom: none !important;
}

.admin-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.admin-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.82rem;
}

.admin-table thead {
  background: #f8fafc;
}

.admin-table th {
  padding: 0.8rem 1rem;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.admin-table td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.4;
}

.admin-table th:first-child,
.admin-table td:first-child {
  padding-left: 1.25rem;
}

.admin-table th:last-child,
.admin-table td:last-child {
  padding-right: 1.25rem;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr {
  transition: background-color 0.12s ease;
}

.admin-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Semantic Badge System */
.badge-success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-weight: 650;
  font-size: 0.7rem;
  padding: 0.16rem 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.2;
}

.badge-info {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-weight: 650;
  font-size: 0.7rem;
  padding: 0.16rem 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.2;
}

.badge-warning {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-weight: 650;
  font-size: 0.7rem;
  padding: 0.16rem 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.2;
}

.badge-danger {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-weight: 650;
  font-size: 0.7rem;
  padding: 0.16rem 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.2;
}

.badge-neutral {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-weight: 650;
  font-size: 0.7rem;
  padding: 0.16rem 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.2;
}

.badge-purple {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
  font-weight: 650;
  font-size: 0.7rem;
  padding: 0.16rem 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.2;
}

.admin-tag-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  line-height: 1.2;
}

.admin-code-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 650;
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  letter-spacing: 0.03em;
  display: inline-block;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 650;
  padding: 0.16rem 0.45rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.admin-status-published {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.admin-status-draft {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.admin-status-scheduled {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* Admin Table System & Column Allocation */
.admin-table-card-subtitle {
  font-size: 0.74rem;
  color: #64748b;
  margin: 0;
  display: block;
}

.admin-total-badge {
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.admin-table-news {
  width: 100%;
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table-news .th-cover,
.admin-table-news .td-cover {
  width: 130px;
  min-width: 130px;
  max-width: 130px;
  text-align: center !important;
  padding: 0.6rem 0.45rem;
  vertical-align: middle;
}

.admin-table-news .th-main,
.admin-table-news .td-main {
  min-width: 240px;
  vertical-align: middle;
  padding: 0.6rem 0.85rem;
}

.admin-table-news .th-status,
.admin-table-news .td-status {
  width: 1%;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  padding: 0.6rem 0.65rem;
}

.admin-table-news .th-tax,
.admin-table-news .td-tax {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
  padding: 0.6rem 0.65rem;
}

.admin-table-news .th-date,
.admin-table-news .td-date {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
  padding: 0.6rem 0.65rem;
}

.admin-table-news .th-actions,
.admin-table-news .td-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  vertical-align: middle;
  padding: 0.6rem 0.75rem;
}

.admin-news-cover-wrap {
  width: 118px;
  height: 78px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: inline-block;
  vertical-align: middle;
  margin-inline: auto;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-news-cover {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.admin-news-cover-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background: #f8fafc;
}

.admin-news-title-link {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  line-height: 1.35;
  display: block;
  word-break: break-word;
  transition: color 0.15s ease;
}

.admin-news-title-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

.admin-news-slug-wrap {
  margin-top: 0.15rem;
  display: block;
}

.admin-news-slug {
  font-size: 0.68rem;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #f1f5f9;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid #e2e8f0;
  display: inline-block;
  word-break: break-all;
  white-space: normal;
  line-height: 1.3;
  vertical-align: middle;
}

.admin-news-tax-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-news-taxonomy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
}

.admin-news-date {
  font-size: 0.74rem;
  font-weight: 550;
  color: #475569;
  white-space: nowrap;
}

.admin-actions-group {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.admin-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  padding: 0.22rem 0.42rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
}

.admin-btn-action svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.admin-btn-action.btn-view {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

.admin-btn-action.btn-view:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.admin-btn-action.btn-edit {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.admin-btn-action.btn-edit:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}

.admin-btn-action.btn-delete {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.admin-btn-action.btn-delete:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.admin-table-empty {
  text-align: center;
  padding: 3.5rem 1.5rem !important;
  color: #64748b;
}

.admin-table-empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.admin-table-empty-content strong {
  font-size: 1rem;
  color: #0f172a;
}

.admin-table-empty-content p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 0.5rem;
}

.admin-tax-empty {
  color: #94a3b8;
  font-size: 0.8rem;
}

/* Dashboard Widgets & Panels */
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.admin-stat-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.15s ease;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.admin-stat-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-stat-card strong {
  color: #0f172a;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.15;
  margin-block: 0.35rem 0.25rem;
  letter-spacing: -0.03em;
}

.admin-stat-card span {
  color: #94a3b8;
  font-size: 0.74rem;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.85fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.admin-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  padding: 1.35rem;
}

.admin-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-panel-heading h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  color: #0f172a;
  letter-spacing: -0.015em;
}

.admin-panel-heading p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.admin-recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-recent-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.5rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: background 0.12s ease;
}

.admin-recent-list article:hover {
  background: #f1f5f9;
}

.admin-recent-list strong {
  font-size: 0.88rem;
  color: #0f172a;
  display: block;
}

.admin-recent-list span {
  font-size: 0.75rem;
  color: #64748b;
}

.admin-publishing-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}

.admin-publishing-list div {
  padding: 0.85rem;
  border-radius: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.admin-publishing-list dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-publishing-list dd {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1rem;
}

.admin-notice,
.admin-inline-notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.65rem;
  padding: 0.75rem 1rem;
  font-size: 0.84rem;
  color: #1e40af;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Forms */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-field label {
  font-size: 0.82rem;
  font-weight: 650;
  color: #334155;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #0f172a;
  background: #ffffff;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.admin-form-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

@media (max-width: 64rem) {
  body.admin-body,
  .admin-page {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .admin-login-page {
    grid-template-columns: minmax(18rem, 0.75fr) minmax(26rem, 1.25fr);
  }

  .admin-login-brand { padding: 2rem; }
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .admin-dashboard-grid { grid-template-columns: 1fr !important; }

  /* Off-canvas mobile/tablet drawer */
  .admin-shell {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .admin-main {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .admin-sidebar-toggle-btn {
    display: inline-flex !important;
  }

  .admin-sidebar-close-btn {
    display: inline-flex !important;
  }

  .admin-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 17.5rem !important;
    max-width: 85vw !important;
    z-index: 100 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
  }

  .admin-sidebar.is-open {
    transform: translateX(0) !important;
  }

  .admin-sidebar-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(3px) !important;
    z-index: 95 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease !important;
  }

  .admin-sidebar-backdrop.is-open {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .admin-content {
    padding: 1.25rem 1rem !important;
  }
}

@media (max-width: 48rem) {
  .admin-login-page { grid-template-columns: 1fr; }

  .admin-login-brand {
    min-height: auto;
    padding: 1.25rem;
    gap: 1.5rem;
  }

  .admin-login-brand > div,
  .admin-login-brand-note { display: none; }

  .admin-login-panel {
    min-height: calc(100dvh - 6.5rem);
    padding: 1rem;
  }

  .admin-login-card { box-shadow: none; }
  .admin-topbar { min-height: 4.2rem; }

  .admin-stat-card-pro {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .admin-stat-card-pro:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.08);
  }

  .admin-stat-grid { grid-template-columns: 1fr !important; }
  .admin-publishing-list { grid-template-columns: 1fr !important; }
}

@media (max-width: 32rem) {
  .admin-topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-inline: 0.85rem !important;
  }
  .admin-topbar-left {
    display: flex !important;
    align-items: center !important;
  }
  .admin-sidebar-toggle-btn {
    display: inline-flex !important;
  }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-stat-card { padding: 0.85rem; }
  .admin-stat-card strong { font-size: 1.65rem; }

  .admin-readiness-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
  }
}

@media (forced-colors: active) {
  .admin-primary-button,
  .admin-topbar button,
  .admin-stat-card,
  .admin-panel { border: 1px solid ButtonText; }
}

.admin-page :is(a, button, summary, input, select, textarea):focus-visible,
.admin-preview-dialog button:focus-visible,
.admin-form-alert:focus-visible {
  border-radius: 0.25rem;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.admin-topbar-user {
  display: block;
  max-width: 14rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-page-heading {
  display: flex;
  margin-bottom: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.admin-page-heading h1 {
  margin: 0.25rem 0 0.35rem;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  line-height: 1.1;
}

.admin-page-heading > div > p:last-child {
  max-width: 45rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-heading-action {
  width: auto;
  min-width: 10.5rem;
}

.admin-inline-notice {
  margin-block: 0 1rem;
}

.admin-success-notice {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #bad8c4;
  border-radius: 0.5rem;
  background: #edf8f0;
  color: #1b5a32;
  font-size: 0.82rem;
  font-weight: 650;
}

.admin-text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--navy-900);
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: none;
}

.admin-recent-list {
  display: grid;
  margin-top: 0.65rem;
}

.admin-recent-list article {
  display: grid;
  min-height: 3.7rem;
  padding-block: 0.7rem;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  border-top: 1px solid #edf0f2;
}

.admin-recent-list article > div {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.admin-recent-list strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-recent-list article > div > span {
  color: var(--muted);
  font-size: 0.68rem;
}

.admin-status {
  display: inline-flex;
  width: fit-content;
  min-height: 1.65rem;
  padding: 0.25rem 0.55rem;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-status-published {
  border-color: #b7d8c3;
  background: #edf8f0;
  color: #1b5a32;
}

.admin-status-draft {
  border-color: #d6dee5;
  background: #f3f6f8;
  color: #455867;
}

.admin-status-scheduled {
  border-color: #e7cea3;
  background: #fff8ea;
  color: #74430c;
}

.admin-status-active {
  border-color: #b7d8c3;
  background: #edf8f0;
  color: #1b5a32;
}

.admin-status-pending {
  border-color: #e7cea3;
  background: #fff8ea;
  color: #74430c;
}

.admin-status-disabled {
  border-color: #d6dee5;
  background: #f3f6f8;
  color: #455867;
}

.admin-quick-actions {
  display: grid;
  gap: 0.5rem;
}

.admin-primary-link,
.admin-secondary-link,
.admin-secondary-button,
.admin-quiet-button {
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.admin-primary-link {
  border: 1px solid var(--navy-900);
  background: var(--navy-900);
  color: white;
}

.admin-secondary-link,
.admin-secondary-button,
.admin-quiet-button {
  border: 1px solid #cbd5dc;
  background: white;
  color: var(--navy-900);
}

.admin-quiet-button {
  flex: none;
  min-height: 2.5rem;
  padding-block: 0.5rem;
}

.admin-field :is(textarea, select) {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #b8c4ce;
  border-radius: 0.5rem;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.admin-field textarea {
  min-height: 6rem;
  resize: vertical;
  line-height: 1.55;
}

.admin-field select {
  min-height: 3rem;
}

.admin-field :is(input, textarea, select)[aria-invalid='true'] {
  border-color: #b42318;
}

.admin-field :is(input, textarea, select):disabled {
  background: #edf1f4;
  color: #667784;
  cursor: not-allowed;
  opacity: 0.72;
}

.admin-slug-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0;
}

.admin-slug-control > span {
  display: flex;
  min-height: 3rem;
  padding: 0.7rem 0.75rem;
  align-items: center;
  border: 1px solid #b8c4ce;
  border-inline-end: 0;
  border-radius: 0.5rem 0 0 0.5rem;
  background: #f2f5f7;
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-slug-control > input {
  border-radius: 0;
}

.admin-slug-control button,
.admin-tag-add button,
.admin-cover-actions button,
.admin-row-actions button,
.admin-row-action-link,
.admin-preview-heading button {
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cbd5dc;
  border-radius: 0.4rem;
  background: white;
  color: var(--navy-900);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.admin-slug-control button {
  border-inline-start: 0;
  border-radius: 0 0.5rem 0.5rem 0;
}

.admin-notice-slot:empty {
  display: none;
}

.admin-news-editor-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.8fr) minmax(18rem, 0.72fr);
  gap: 1rem;
}

.admin-form-alert {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #efb7b3;
  border-inline-start: 3px solid #b42318;
  border-radius: 0.5rem;
  background: #fff1f0;
  color: #7a1d17;
  font-size: 0.78rem;
  line-height: 1.45;
}

.admin-form-alert span {
  color: #8f2c24;
}

.admin-form-alert ul {
  display: grid;
  margin: 0.35rem 0 0;
  padding-inline-start: 1.25rem;
  gap: 0.2rem;
}

.admin-form-alert a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.admin-editor-column,
.admin-editor-aside,
.admin-editor-fields {
  display: grid;
  gap: 1rem;
}

.admin-editor-aside {
  position: sticky;
  inset-block-start: 1rem;
}

.admin-editor-card {
  padding: 1.25rem;
}

.admin-editor-card-heading {
  display: flex;
  margin-bottom: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-editor-card-heading h2 {
  margin: 0.2rem 0 0;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.25;
}

.admin-editor-card-heading > span {
  color: var(--muted);
  font-size: 0.68rem;
}

.admin-content-textarea {
  min-height: 18rem !important;
}

.admin-character-help {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.admin-character-help span:last-child {
  flex: none;
  font-variant-numeric: tabular-nums;
}

.admin-editor-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.admin-editor-actions .admin-primary-button,
.admin-editor-actions .admin-secondary-button {
  width: 100%;
}

.admin-editor-updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.admin-taxonomy-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-taxonomy-fieldset + .admin-taxonomy-fieldset {
  padding-top: 1rem;
  border-top: 1px solid #e3e8ec;
}

.admin-taxonomy-fieldset legend {
  margin: 0 0 0.25rem;
  padding: 0;
  color: var(--navy-950);
  font-size: 0.88rem;
  font-weight: 750;
}

.admin-taxonomy-help {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.admin-taxonomy-options {
  display: grid;
  max-height: 11.5rem;
  gap: 0.35rem;
  padding: 0.1rem 0.25rem 0.1rem 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.admin-taxonomy-option {
  display: grid;
  min-height: 2.65rem;
  padding: 0.4rem 0.55rem;
  align-items: center;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.55rem;
  border: 1px solid #dce3e8;
  border-radius: 0.45rem;
  background: white;
  color: #3c5261;
  cursor: pointer;
  font-size: 0.74rem;
  line-height: 1.35;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.admin-taxonomy-option.is-selected {
  border-color: #9fb3c3;
  background: #f1f6f9;
  color: var(--navy-950);
}

.admin-taxonomy-option input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--navy-900);
}

.admin-tag-add {
  display: grid;
  margin-top: 0.55rem;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
}

.admin-tag-add input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #b8c4ce;
  border-radius: 0.45rem;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.admin-tag-add button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.admin-cover-preview {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 16 / 9;
  border: 1px solid #dce3e8;
  border-radius: 0.5rem;
  background: #edf1f4;
}

.admin-cover-preview img {
  object-fit: cover;
}

.admin-field .admin-file-input {
  min-height: 3.2rem;
  padding: 0.35rem;
  background: #f7f9fa;
}

.admin-file-input::file-selector-button {
  min-height: 2.35rem;
  margin-inline-end: 0.65rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #c2cdd5;
  border-radius: 0.35rem;
  background: white;
  color: var(--navy-900);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
}

.admin-inline-field-link {
  color: var(--navy-900);
  font-weight: 750;
  text-underline-offset: 0.18em;
}

.admin-image-source {
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 1rem;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.admin-image-source legend {
  padding-inline: 0.35rem;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 750;
}

.admin-upload-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-upload-divider::before,
.admin-upload-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: '';
}

.admin-media-picker {
  display: grid;
  min-width: 0;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.admin-media-picker [hidden] {
  display: none !important;
}

.admin-media-picker-body {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-media-picker-files .admin-media-picker-body {
  grid-template-columns: minmax(0, 1fr);
}

.menu-destination {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.menu-destination fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.menu-destination [hidden] {
  display: none !important;
}

.menu-destination .admin-field {
  margin: 0 0 0.5rem;
}

.menu-destination select,
.menu-destination input[type="text"] {
  width: 100%;
  min-height: 2.5rem;
}

.menu-card-link-fields:has(.menu-destination) {
  grid-template-columns: minmax(0, 1fr);
}

.admin-media-picker-preview {
  display: grid;
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 4 / 3;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 0.55rem;
  background: var(--surface-muted);
  color: var(--muted);
  text-align: center;
}

.admin-media-picker-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-media-picker-preview span {
  padding: 0.65rem;
  font-size: 0.72rem;
  line-height: 1.35;
}

.admin-media-picker-controls {
  display: grid;
  min-width: 0;
  gap: 0.55rem;
}

.admin-media-picker-controls > label {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-media-picker-controls select {
  width: 100%;
  min-width: 0;
}

.admin-media-picker-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.admin-media-picker-actions .admin-secondary-button,
.admin-media-picker-actions .admin-quiet-button {
  min-height: 2.5rem;
}

.admin-media-picker [data-media-status] {
  min-height: 1.1em;
}

html[data-theme="dark"] .admin-media-picker {
  border-color: #334155;
  background: #1e293b;
}

html[data-theme="dark"] .admin-media-picker-preview {
  border-color: #475569;
  background: #0f172a;
}

@media (max-width: 560px) {
  .admin-media-picker-body {
    grid-template-columns: 1fr;
  }

  .admin-media-picker-preview {
    width: min(100%, 12rem);
  }
}

.admin-media-upload-panel {
  margin-bottom: 1rem;
}

.admin-media-upload-panel .admin-form-alert {
  margin-top: 1rem;
}

.admin-media-upload-form {
  display: grid;
  margin-top: 1rem;
  align-items: end;
  grid-template-columns: minmax(14rem, 1fr) minmax(14rem, 1fr) auto;
  gap: 0.75rem;
}

.admin-media-upload-form .admin-primary-button {
  min-width: 9.5rem;
}

.admin-primary-button:disabled,
.admin-secondary-button:disabled,
.admin-topbar button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.admin-media-library {
  margin-top: 1rem;
}

.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 0.75rem;
}

.admin-media-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid #dce3e8;
  border-radius: 0.55rem;
  background: white;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.admin-media-preview {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  place-items: center;
  border-bottom: 1px solid #e1e7eb;
  background: #edf1f4;
  color: var(--navy-900);
}

.admin-media-preview img {
  object-fit: cover;
}

.admin-media-preview > strong {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.admin-media-card-body {
  display: grid;
  gap: 0.65rem;
  padding: 0.8rem;
}

.admin-media-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-media-card-heading span,
.admin-media-card-heading small {
  display: inline-flex;
  width: fit-content;
  min-height: 1.45rem;
  padding: 0.2rem 0.45rem;
  align-items: center;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
}

.admin-media-card-heading span {
  border: 1px solid #cad8e2;
  background: #eef5f9;
  color: #31576f;
}

.admin-media-card-heading small {
  color: var(--muted);
}

.admin-media-card h3 {
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-media-card-body > p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.45rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-media-card dl {
  display: grid;
  gap: 0.25rem;
  margin: 0;
}

.admin-media-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.64rem;
}

.admin-media-card dd {
  margin: 0;
  color: #405563;
  font-variant-numeric: tabular-nums;
}

.admin-media-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.admin-media-actions a,
.admin-media-actions button {
  display: inline-flex;
  min-height: 2.65rem;
  padding: 0.45rem 0.6rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5dc;
  border-radius: 0.4rem;
  background: white;
  color: var(--navy-900);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.admin-media-actions .is-destructive {
  color: #a3251d;
}

.admin-navigation-manager {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.72fr);
  gap: 1rem;
}

.admin-navigation-editor {
  position: sticky;
  inset-block-start: 1rem;
}

.admin-navigation-list,
.admin-navigation-form,
.admin-submenu-list {
  display: grid;
  gap: 0.75rem;
}

.admin-navigation-list,
.admin-navigation-form {
  margin-top: 1rem;
}

.admin-navigation-drag-help {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.admin-navigation-drag-help + .admin-navigation-list {
  margin-top: 0.55rem;
}

.admin-navigation-order-status {
  min-height: 1.35rem;
  margin: 0.35rem 0 0;
  color: #1b5a32;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.45;
}

/* Modern Navigation Menu Builder */
.admin-menu-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.admin-menu-group-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.01);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-menu-group-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 8px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.admin-menu-group-heading {
  padding: 0.85rem 1.15rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-menu-group-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.admin-menu-group-input-wrap {
  flex: 1;
  min-width: 220px;
}

.admin-menu-group-input-wrap.is-link {
  flex: 1.5;
  min-width: 240px;
}

.admin-menu-input {
  width: 100%;
  height: 2.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.84rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  transition: all 0.15s ease;
}

.admin-menu-input:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.admin-menu-input-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.admin-menu-input.is-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  color: #0369a1;
}

.admin-menu-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.12s ease;
  white-space: nowrap;
}

.admin-menu-toggle-label:hover {
  background: #e2e8f0;
}

.admin-menu-toggle-label input[type="checkbox"] {
  cursor: pointer;
  accent-color: #0284c7;
  width: 15px;
  height: 15px;
  margin: 0;
}

.admin-menu-external-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.admin-menu-external-label:hover {
  background: #f1f5f9;
}

.admin-menu-external-label input[type="checkbox"] {
  accent-color: #0284c7;
  cursor: pointer;
  width: 14px;
  height: 14px;
  margin: 0;
}

.admin-drag-handle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  height: 2.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #475569;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: all 0.12s ease;
}

.admin-drag-handle:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.admin-drag-handle:active {
  cursor: grabbing;
}

.admin-drag-handle-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #94a3b8;
  cursor: grab;
  touch-action: none;
  transition: all 0.12s ease;
  flex-shrink: 0;
}

.admin-drag-handle-mini:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.admin-drag-handle-mini:active {
  cursor: grabbing;
}

.admin-submenu-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 1.15rem 1rem 2rem;
  background: #ffffff;
  position: relative;
}

.admin-submenu-list::before {
  content: '';
  position: absolute;
  left: 1.4rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: #e2e8f0;
  border-radius: 1px;
}

.admin-submenu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
  transition: all 0.12s ease;
  position: relative;
}

.admin-submenu-row:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.admin-submenu-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.admin-menu-field-wrap {
  position: relative;
}

.admin-menu-field-wrap.is-label {
  flex: 1;
  min-width: 170px;
}

.admin-menu-field-wrap.is-url {
  flex: 1.6;
  min-width: 230px;
}

.admin-menu-order-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.admin-btn-move {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.12s ease;
}

.admin-btn-move:hover:not(:disabled) {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.admin-btn-move:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.admin-navigation-item.is-dragging,
.admin-submenu-row.is-dragging {
  z-index: 2;
  border-color: #0284c7;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.2);
  cursor: grabbing;
  opacity: 0.8;
  pointer-events: none;
  will-change: opacity;
}

.admin-navigation-item.is-drop-target,
.admin-submenu-row.is-drop-target {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}
}

.admin-navigation-badges {
  display: flex;
  margin-bottom: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-navigation-badges span,
.admin-navigation-badges small {
  display: inline-flex;
  width: fit-content;
  min-height: 1.45rem;
  padding: 0.2rem 0.45rem;
  align-items: center;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
}

.admin-navigation-badges span {
  border: 1px solid #cad8e2;
  background: #eef5f9;
  color: #31576f;
}

.admin-navigation-badges small {
  border: 1px solid #d6dee5;
  background: #f3f6f8;
  color: #455867;
}

.admin-navigation-item:not(.is-disabled) .admin-navigation-badges small {
  border-color: #b7d8c3;
  background: #edf8f0;
  color: #1b5a32;
}

.admin-navigation-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.35;
}

.admin-navigation-item header p {
  overflow-wrap: anywhere;
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.admin-navigation-order {
  flex: none;
  color: var(--muted);
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
}

.admin-navigation-submenu-preview {
  display: grid;
  margin: 0;
  padding: 0.65rem 0.75rem 0.65rem 2rem;
  gap: 0.35rem;
  border-radius: 0.45rem;
  background: #f7f9fa;
}

.admin-navigation-submenu-preview li {
  padding-inline-start: 0.2rem;
  color: #405563;
  font-size: 0.7rem;
}

.admin-navigation-submenu-preview li.is-disabled {
  color: #7c8992;
  text-decoration: line-through;
}

.admin-navigation-submenu-preview span,
.admin-navigation-submenu-preview small {
  display: block;
}

.admin-navigation-submenu-preview small {
  overflow-wrap: anywhere;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.62rem;
}

.admin-navigation-actions,
.admin-submenu-row-heading > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-navigation-actions button,
.admin-submenu-row-heading button {
  min-height: 2.75rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #cbd5dc;
  border-radius: 0.4rem;
  background: white;
  color: var(--navy-900);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 750;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.admin-navigation-actions button:disabled,
.admin-submenu-row-heading button:disabled {
  background: #edf1f4;
  color: #71808a;
  cursor: not-allowed;
  opacity: 0.62;
}

.admin-navigation-actions .is-destructive,
.admin-submenu-row-heading .is-destructive {
  color: #a3251d;
}

.admin-navigation-checkbox {
  display: grid;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  align-items: center;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.65rem;
  border: 1px solid #dce3e8;
  border-radius: 0.5rem;
  background: #f7f9fa;
  color: #405563;
  cursor: pointer;
}

.admin-navigation-checkbox.is-compact {
  min-height: 2.75rem;
  padding-block: 0.45rem;
}

.admin-navigation-checkbox input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--navy-900);
}

.admin-navigation-checkbox span,
.admin-navigation-checkbox small {
  display: block;
}

.admin-navigation-checkbox strong {
  color: var(--navy-950);
  font-size: 0.74rem;
}

.admin-navigation-checkbox small {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.35;
}

.admin-navigation-destination {
  display: grid;
  grid-template-columns: minmax(10rem, 0.6fr) minmax(0, 1.4fr);
  gap: 0.75rem;
}

.admin-submenu-editor {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-submenu-editor legend {
  padding: 0;
  color: var(--navy-950);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-submenu-editor > p:not(.admin-field-error) {
  margin: 0.2rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.admin-submenu-editor > .admin-field-error {
  margin: 0.35rem 0 0.75rem;
}

.admin-submenu-row {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #dce3e8;
  border-radius: 0.5rem;
  background: #fafcfd;
  transition: border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.admin-submenu-row-heading {
  align-items: center;
}

.admin-submenu-heading-label > strong {
  color: var(--navy-950);
  font-size: 0.74rem;
}

.admin-submenu-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(7rem, 0.55fr);
  gap: 0.65rem;
}

.admin-add-submenu {
  width: 100%;
  margin-top: 0.75rem;
}

.admin-navigation-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.admin-navigation-form-actions > :only-child {
  grid-column: 1 / -1;
}

.admin-settings-alert {
  margin-bottom: 1rem;
}

.admin-settings-form {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 0.62fr);
  gap: 1rem;
}

.admin-settings-column,
.admin-settings-panel,
.admin-settings-modules > div {
  display: grid;
  gap: 1rem;
}

.admin-settings-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-settings-panel .admin-panel-heading {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e7eb;
}

.admin-settings-panel > :is(.admin-primary-button, .admin-secondary-button) {
  width: 100%;
}

.admin-settings-preview {
  display: flex;
  min-height: 5.25rem;
  padding: 0.8rem;
  align-items: center;
  gap: 0.75rem;
  border: 2px solid var(--gold-600);
  border-radius: 0.55rem;
  background: #f8fafb;
}

.admin-settings-preview-logo {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  flex: none;
  overflow: hidden;
  border: 1px solid #d5dee5;
  border-radius: 50%;
  background: white;
}

.admin-settings-preview-logo img {
  object-fit: contain;
}

.admin-settings-preview > span:last-child,
.admin-settings-preview strong,
.admin-settings-preview small {
  display: block;
  min-width: 0;
}

.admin-settings-preview strong {
  overflow-wrap: anywhere;
  color: var(--navy-950);
  font-size: 0.82rem;
}

.admin-settings-preview small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.4;
}

.admin-settings-color {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.55rem;
}

.admin-settings-color input {
  min-height: 3rem;
  padding: 0.25rem;
  cursor: pointer;
}

.admin-settings-color output {
  display: flex;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  align-items: center;
  border: 1px solid #c8d2da;
  border-radius: 0.5rem;
  background: #f7f9fa;
  color: var(--navy-950);
  font-size: 0.74rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.admin-settings-modules {
  min-width: 0;
  margin: 0;
}

.admin-settings-modules legend {
  padding: 0;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 750;
}

.admin-settings-modules > p {
  margin: -0.75rem 0 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e7eb;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.admin-settings-modules > div {
  gap: 0.55rem;
}

.admin-settings-panel .admin-field label span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.admin-cover-actions {
  display: flex;
}

.admin-cover-actions button {
  width: 100%;
}

.admin-editor-loading,
.admin-editor-missing {
  min-height: 16rem;
}

.admin-editor-loading {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.admin-editor-missing {
  display: grid;
  max-width: 40rem;
  align-content: center;
}

.admin-editor-missing h1 {
  margin: 0.25rem 0;
  color: var(--navy-950);
  font-family: var(--font-heading);
}

.admin-editor-missing > p:not(.admin-kicker) {
  margin: 0 0 1rem;
  color: var(--muted);
}

.admin-editor-missing .admin-primary-link {
  width: fit-content;
}

.admin-content-manager {
  margin-top: 1rem;
}

.admin-filter-bar {
  display: grid;
  margin: 1rem 0;
  align-items: end;
  grid-template-columns: minmax(14rem, 1fr) minmax(10rem, 0.3fr);
  gap: 0.75rem;
}

.admin-single-filter {
  grid-template-columns: minmax(0, 1fr);
}

.admin-search-field,
.admin-status-filter {
  gap: 0.3rem;
}

.admin-table-wrap {
  /* Keep absolutely positioned screen-reader labels inside the scroll container. */
  position: relative;
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e1e7eb;
  border-radius: 0.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
}

.admin-table th {
  border-bottom: 1px solid #dce3e8;
  background: #f7f9fa;
  color: #566875;
  letter-spacing: 0.04em;
  text-align: start;
}

.admin-table td {
  border-bottom: 1px solid #edf0f2;
  color: #485b69;
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table td:first-child > strong,
.admin-table td:first-child > span {
  display: block;
}

.admin-table td:first-child > strong {
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1.3;
}

.admin-table td:first-child > span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.admin-lecturer-table {
  min-width: 64rem;
}

.admin-lecturer-table td:first-child {
  width: 27%;
}

.admin-lecturer-table-name {
  display: flex;
  min-width: 13rem;
  align-items: center;
  gap: 0.7rem;
}

.admin-lecturer-table-name > div:last-child {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.admin-lecturer-table-name strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-lecturer-table-name span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-lecturer-avatar {
  position: relative;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  overflow: hidden;
  place-items: center;
  border: 1px solid #d9e1e6;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-lecturer-avatar img {
  object-fit: cover;
}

.admin-lecturer-photo-preview {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 1rem;
  place-items: center;
  border: 1px solid #dfe6ea;
  border-radius: 0.65rem;
  background: #f4f7f9;
  color: var(--navy-900);
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 750;
}

.admin-lecturer-photo-preview img {
  object-fit: contain;
  object-position: center;
}

.admin-organization-table {
  min-width: 62rem;
}

.admin-organization-table td:first-child {
  width: 29%;
}

.admin-organization-member {
  display: flex;
  min-width: 14rem;
  align-items: center;
  gap: 0.7rem;
}

.admin-organization-member > strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-organization-avatar {
  position: relative;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  overflow: hidden;
  place-items: center;
  border: 1px solid #d9e1e6;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-organization-avatar img {
  object-fit: cover;
  object-position: center top;
}

.admin-organization-photo-preview {
  max-height: 22rem;
  aspect-ratio: 16 / 10;
}

.admin-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}

.admin-row-actions button,
.admin-row-action-link {
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0.45rem 0.6rem;
  align-items: center;
  text-decoration: none;
}

.admin-row-actions .is-destructive {
  color: #a3251d;
}

.admin-empty-state {
  display: grid;
  min-height: 10rem;
  padding: 2rem;
  place-content: center;
  text-align: center;
}

.admin-empty-state strong {
  color: var(--navy-950);
}

.admin-empty-state p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-audit-readonly,
.admin-audit-action {
  display: inline-flex;
  min-height: 1.75rem;
  padding: 0.25rem 0.55rem;
  align-items: center;
  border: 1px solid #d5dee5;
  border-radius: 999px;
  background: #f7f9fa;
  color: var(--navy-900);
  font-size: 0.68rem;
  font-weight: 700;
}

.admin-audit-readonly {
  align-self: flex-start;
  white-space: nowrap;
}

.admin-audit-filter {
  grid-template-columns: minmax(16rem, 1fr) auto;
}

.admin-audit-filter-actions,
.admin-audit-pagination > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-audit-filter-actions button,
.admin-audit-pagination button {
  min-height: 2.75rem;
}

.admin-audit-table {
  min-width: 74rem;
}

.admin-audit-table th:first-child,
.admin-audit-table td:first-child {
  width: auto;
}

.admin-audit-table th:last-child,
.admin-audit-table td:last-child {
  width: auto;
  text-align: start;
}

.admin-audit-table time,
.admin-audit-table code {
  white-space: nowrap;
}

.admin-audit-user,
.admin-audit-resource {
  display: grid;
  gap: 0.18rem;
}

.admin-audit-user strong,
.admin-audit-resource strong {
  color: var(--ink);
  font-size: 0.77rem;
}

.admin-audit-user span,
.admin-audit-resource span {
  max-width: 17rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-audit-metadata summary {
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0.45rem 0.6rem;
  align-items: center;
  border: 1px solid #d5dee5;
  border-radius: 0.45rem;
  background: white;
  color: var(--navy-900);
  cursor: pointer;
  font-weight: 700;
  list-style-position: inside;
}

.admin-audit-metadata pre {
  max-width: 28rem;
  margin: 0.5rem 0 0;
  padding: 0.65rem;
  overflow-wrap: anywhere;
  border-radius: 0.45rem;
  background: #f4f7f9;
  color: #334754;
  font-size: 0.68rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.admin-audit-pagination {
  display: flex;
  padding-top: 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-audit-pagination p,
.admin-audit-pagination span {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.admin-news-taxonomy {
  display: flex;
  margin-top: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-tag-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 1.65rem;
  padding: 0.25rem 0.55rem;
  align-items: center;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.2;
}

.admin-tag-badge {
  border: 1px solid #d5dfe6;
  background: #f4f7f9;
  color: #425767;
}

.admin-table .admin-news-taxonomy {
  margin-top: 0.45rem;
  gap: 0.25rem;
}

.admin-user-table {
  min-width: 74rem;
}

.admin-user-table td:first-child {
  width: 20%;
}

.admin-user-approval {
  display: grid;
  gap: 0.15rem;
}

.admin-user-approval strong {
  color: var(--ink);
  font-size: 0.72rem;
}

.admin-user-approval span,
.admin-user-protected {
  color: var(--muted);
  font-size: 0.66rem;
}

.admin-user-dialog {
  width: min(34rem, calc(100% - 2rem));
}

.admin-user-dialog h2 {
  margin: 0.25rem 0 0.6rem;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: 1.55rem;
  line-height: 1.2;
}

.admin-user-dialog article > p:not(.admin-kicker, .admin-dialog-error) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-user-reset-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.admin-dialog-error {
  margin: 1rem 0 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #efb7b3;
  border-radius: 0.45rem;
  background: #fff1f0;
  color: #8f2c24;
  font-size: 0.76rem;
  line-height: 1.45;
}

.admin-dialog-actions {
  display: flex;
  margin-top: 1.25rem;
  justify-content: flex-end;
  gap: 0.65rem;
}

.admin-user-reset-form .admin-dialog-actions {
  margin-top: 0.25rem;
}


.admin-table .admin-tag-badge {
  min-height: 1.45rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.6rem;
}

.admin-preview-dialog {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 0.75rem;
  background: white;
  box-shadow: 0 24px 70px rgb(15 23 42 / 28%);
}

.admin-preview-dialog::backdrop {
  background: rgb(15 23 42 / 62%);
  backdrop-filter: blur(3px);
}

.admin-preview-dialog article {
  padding: clamp(1rem, 4vw, 2rem);
}

.admin-preview-heading {
  display: flex;
  margin-bottom: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-preview-heading h2 {
  margin: 0.35rem 0 0;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.admin-preview-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 0.55rem;
  background: #e8edf1;
}

.admin-preview-image img {
  object-fit: cover;
}

.admin-preview-date {
  margin: 1rem 0 0.3rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.admin-preview-dialog h3 {
  margin: 0;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.12;
}

.admin-preview-excerpt {
  margin: 0.8rem 0 1rem;
  color: #465d6d;
  font-weight: 650;
}

.admin-preview-content {
  color: var(--ink);
  line-height: 1.7;
  white-space: pre-wrap;
}

@media (hover: hover) {
  .admin-text-link:hover {
    text-decoration: underline;
  }

  .admin-primary-link:hover {
    background: var(--navy-800);
  }

  .admin-secondary-link:hover,
  .admin-secondary-button:hover,
  .admin-quiet-button:hover,
  .admin-slug-control button:hover,
  .admin-tag-add button:not(:disabled):hover,
  .admin-cover-actions button:hover,
  .admin-row-actions button:hover,
  .admin-row-action-link:hover,
  .admin-preview-heading button:hover {
    background: var(--blue-50);
    border-color: #aebdca;
  }

  .admin-taxonomy-option:hover {
    border-color: #aebdca;
    background: #f7fafb;
  }

  .admin-inline-field-link:hover {
    color: var(--navy-950);
  }

  .admin-media-card:hover {
    border-color: #b8c7d2;
    box-shadow: 0 8px 24px rgb(16 42 67 / 8%);
  }

  .admin-navigation-item:hover {
    border-color: #b8c7d2;
    box-shadow: 0 8px 24px rgb(16 42 67 / 8%);
  }

  .admin-navigation-actions button:not(:disabled):hover,
  .admin-submenu-row-heading button:not(:disabled):hover {
    border-color: #aebdca;
    background: var(--blue-50);
  }

  .admin-drag-handle:hover {
    border-color: var(--navy-900);
    background: var(--blue-50);
    color: var(--navy-900);
  }

  .admin-navigation-actions .is-destructive:hover,
  .admin-submenu-row-heading .is-destructive:hover {
    border-color: #efb7b3;
    background: #fff1f0;
  }

  .admin-media-actions a:hover,
  .admin-media-actions button:hover {
    border-color: #aebdca;
    background: var(--blue-50);
  }

  .admin-media-actions .is-destructive:hover {
    border-color: #efb7b3;
    background: #fff1f0;
  }

  .admin-row-actions .is-destructive:hover {
    border-color: #efb7b3;
    background: #fff1f0;
  }

  .admin-table tbody tr:hover {
    background: #fafcfd;
  }
}

@media (max-width: 48rem) {
  .admin-topbar-user {
    display: none;
  }

  .admin-page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-heading-action {
    width: 100%;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .admin-heading-action > * {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 130px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .admin-table-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .admin-table-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
  }

  .admin-table-search-box {
    flex: 1;
    min-width: 0;
  }

  .admin-table-search-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .admin-total-badge {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .admin-dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .admin-dialog-actions > * {
    width: 100%;
  }

  .admin-filter-bar {
    grid-template-columns: 1fr;
  }

  .admin-audit-filter-actions {
    align-items: stretch;
  }

  .admin-audit-filter-actions button {
    flex: 1;
  }

  .admin-audit-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-media-upload-form {
    grid-template-columns: 1fr;
  }

  .admin-media-upload-form .admin-primary-button {
    width: 100%;
  }

  .admin-navigation-destination,
  .admin-submenu-fields {
    grid-template-columns: 1fr;
  }

  .admin-submenu-row-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-submenu-heading-label {
    align-items: stretch;
    flex-direction: row;
    justify-content: space-between;
  }

  .admin-menu-group-heading {
    gap: 0.75rem;
  }
}

@media (max-width: 32rem) {
  .admin-slug-control {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-slug-control > span {
    border-inline-end: 1px solid #b8c4ce;
    border-block-end: 0;
    border-radius: 0.5rem 0.5rem 0 0;
  }

  .admin-slug-control > input {
    border-radius: 0;
  }

  .admin-slug-control button {
    border-inline-start: 1px solid #cbd5dc;
    border-block-start: 0;
    border-radius: 0 0 0.5rem 0.5rem;
  }

  .admin-tag-add {
    grid-template-columns: 1fr;
  }

  .admin-audit-filter-actions,
  .admin-audit-pagination > div {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .admin-audit-pagination button {
    width: 100%;
  }

  .admin-recent-list article {
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

.admin-markup-editor {
  gap: 0.45rem;
}

.admin-markup-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem;
  border: 1px solid #cbd5dc;
  border-block-end: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  background: #f7f9fa;
}

.admin-markup-toolbar button,
.admin-markup-media button {
  min-height: 2.5rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #c4d0d8;
  border-radius: 0.4rem;
  background: white;
  color: var(--navy-900);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}

.admin-markup-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
  padding: 0.5rem;
  border-inline: 1px solid #cbd5dc;
  background: #f7f9fa;
}

.admin-markup-media select {
  min-height: 2.5rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #b8c4ce;
  border-radius: 0.4rem;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 0.76rem;
}

.admin-markup-media button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.admin-markup-editor textarea {
  border-radius: 0 0 0.5rem 0.5rem;
}

.admin-page-route-preview {
  padding: 0.75rem;
  border: 1px solid #d9e1e6;
  border-radius: 0.45rem;
  background: #f7f9fa;
  overflow-wrap: anywhere;
}

.admin-page-route-preview strong {
  color: var(--navy-950);
}

.custom-page-content {
  width: 100%;
  max-width: 58rem;
}

.custom-page-supplement {
  margin-bottom: 2rem;
  padding: 1.25rem 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface-muted, #f8fafc);
}

.custom-page-supplement > h2 {
  margin: 0.25rem 0 1rem;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.2;
}

.custom-page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.custom-page-header :is(h1, h3) {
  margin: 0.25rem 0 0;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12;
  text-wrap: balance;
}

.custom-page-header > span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.page-markup {
  display: grid;
  gap: 1rem;
  color: var(--ink);
}

.page-markup > * {
  margin: 0;
}

.page-markup :is(h2, h3, h4) {
  color: var(--navy-950);
  font-family: var(--font-heading);
  line-height: 1.2;
  text-wrap: balance;
}

.page-markup h2 {
  margin-top: 0.8rem;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.page-markup h3 {
  margin-top: 0.55rem;
  font-size: 1.3rem;
}

.page-markup h4 {
  margin-top: 0.4rem;
  font-size: 1.05rem;
}

.page-markup :is(p, li) {
  font-size: 0.96rem;
  line-height: 1.75;
}

.page-markup :is(ul, ol) {
  display: grid;
  margin: 0.5rem 0 1rem;
  padding-inline-start: 1.5rem;
  gap: 0.75rem;
}

.page-markup li {
  line-height: 1.7;
}

.page-markup li strong {
  color: var(--navy-950);
}

.page-markup-quote {
  margin: 1.25rem 0;
  padding: 1.35rem 1.75rem;
  border-left: 4px solid var(--primary, #0284c7);
  border-radius: 0 0.85rem 0.85rem 0;
  background: rgba(2, 132, 199, 0.06);
  color: var(--navy-950);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.75;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.page-markup-quote p {
  margin: 0;
}

.page-markup-divider {
  border: 0;
  height: 1px;
  background: var(--line, #e2e8f0);
  margin: 2rem 0;
}

.page-markup a {
  color: var(--navy-800);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.page-markup-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #f2f5f7;
}

.page-markup-image img {
  display: block;
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
}

.page-markup-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
}

.page-markup-table-wrap:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.page-markup table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.page-markup :is(th, td) {
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.page-markup th {
  background: #f5f8fa;
  color: var(--navy-950);
}

.page-markup tbody tr:last-child td {
  border-bottom: 0;
}

.page-markup-warning {
  padding: 0.75rem;
  border: 1px solid #e7cea3;
  border-radius: 0.45rem;
  background: #fff8ea;
  color: #74430c;
}

.page-markup-empty {
  color: var(--muted);
  font-style: italic;
}

@media (hover: hover) {
  .admin-markup-toolbar button:hover,
  .admin-markup-media button:not(:disabled):hover {
    border-color: var(--navy-800);
    background: var(--blue-50);
  }
}

@media (max-width: 32rem) {
  .admin-markup-media {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-page *,
  .admin-preview-dialog * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .admin-status,
  .admin-taxonomy-option,
  .admin-tag-badge,
  .admin-media-card,
  .admin-media-actions a,
  .admin-media-actions button,
  .admin-navigation-item,
  .admin-drag-handle,
  .admin-navigation-badges span,
  .admin-navigation-badges small,
  .admin-navigation-checkbox,
  .admin-navigation-actions button,
  .admin-submenu-row,
  .admin-submenu-row-heading button,
  .admin-settings-preview,
  .admin-settings-color output,
  .admin-table-wrap,
  .admin-audit-readonly,
  .admin-audit-action,
  .admin-audit-metadata summary,
  .admin-success-notice {
    border: 1px solid ButtonText;
  }
}

@media (max-width: 64rem) {
  .admin-news-editor-layout {
    grid-template-columns: 1fr;
  }

  .admin-editor-aside {
    position: static;
  }

  .admin-navigation-manager {
    grid-template-columns: 1fr;
  }

  .admin-navigation-editor {
    position: static;
  }

  .admin-settings-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 48rem) {
  .admin-settings-field-grid {
    grid-template-columns: 1fr;
  }
}

.admin-backup-grid {
  display: grid;
  margin-top: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-backup-card {
  display: flex;
  min-height: 29rem;
  flex-direction: column;
}

.admin-backup-card .admin-panel-heading {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #e2e7eb;
}

.admin-backup-icon {
  display: inline-grid;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  border: 1px solid #bfd0dc;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--navy-900);
  font-size: 1.35rem;
  font-weight: 850;
  place-items: center;
}

.admin-backup-icon.is-warning {
  border-color: #ebc58c;
  background: #fff8e8;
  color: #8a4b08;
}

.admin-backup-includes {
  display: grid;
  margin: 1.1rem 0;
  padding-inline-start: 1.2rem;
  color: #405462;
  font-size: 0.78rem;
  line-height: 1.6;
  gap: 0.55rem;
}

.admin-backup-warning {
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #e8c58e;
  border-radius: 0.5rem;
  background: #fff9ed;
  color: #70400e;
  font-size: 0.76rem;
  line-height: 1.55;
}

.admin-backup-card > .admin-primary-button {
  width: fit-content;
  min-width: 13rem;
  margin-top: auto;
}

.admin-backup-upload-form {
  display: grid;
  margin-top: 1.1rem;
  gap: 0.85rem;
}

.admin-backup-upload-form .admin-secondary-button {
  width: fit-content;
  min-width: 12rem;
}

.admin-backup-valid {
  display: grid;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid #b7d8c3;
  border-radius: 0.5rem;
  background: #f0f9f3;
  color: #245c38;
  gap: 0.25rem;
}

.admin-backup-valid span {
  font-size: 0.7rem;
}

.admin-backup-valid button {
  width: fit-content;
  margin-top: 0.55rem;
}

.admin-backup-success {
  margin: 1rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #b7d8c3;
  border-radius: 0.5rem;
  background: #edf8f0;
  color: #1b5a32;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-backup-safety {
  display: grid;
  margin-top: 1rem;
  padding: 1rem;
  align-items: start;
  border: 1px solid #d8e0e6;
  border-radius: 0.6rem;
  background: #f8fafb;
  grid-template-columns: minmax(12rem, 0.55fr) minmax(18rem, 1fr);
  gap: 1.5rem;
}

.admin-backup-safety h2,
.admin-restore-complete h2 {
  margin: 0.2rem 0 0;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.admin-backup-safety ol {
  display: grid;
  margin: 0;
  padding-inline-start: 1.2rem;
  color: #405462;
  font-size: 0.76rem;
  line-height: 1.55;
  gap: 0.45rem;
}

.admin-backup-summary {
  display: grid;
  margin: 1rem 0;
  border: 1px solid #dde4e9;
  border-radius: 0.55rem;
  background: #f8fafb;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-backup-summary > div {
  display: grid;
  padding: 0.75rem;
  border-bottom: 1px solid #e3e8ec;
  gap: 0.2rem;
}

.admin-backup-summary > div:nth-child(odd) {
  border-inline-end: 1px solid #e3e8ec;
}

.admin-backup-summary > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.admin-backup-summary dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.admin-backup-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-restore-warning {
  margin-bottom: 0;
}

.admin-danger-button {
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: #a12b24;
  color: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  touch-action: manipulation;
}

.admin-danger-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.admin-restore-complete {
  display: flex;
  margin-top: 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-restore-complete p:not(.admin-kicker) {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.admin-restore-complete code {
  overflow-wrap: anywhere;
}

.admin-backup-loading {
  min-height: 10rem;
  margin-top: 1rem;
  color: var(--muted);
}

@media (hover: hover) {
  .admin-danger-button:hover {
    background: #81211c;
  }
}

@media (max-width: 64rem) {
  .admin-backup-grid {
    grid-template-columns: 1fr;
  }

  .admin-backup-card {
    min-height: auto;
  }
}

@media (max-width: 48rem) {
  .admin-backup-safety,
  .admin-backup-summary {
    grid-template-columns: 1fr;
  }

  .admin-backup-summary > div,
  .admin-backup-summary > div:nth-child(odd) {
    border-inline-end: 0;
    border-bottom: 1px solid #e3e8ec;
  }

  .admin-backup-summary > div:last-child {
    border-bottom: 0;
  }

  .admin-backup-card > .admin-primary-button,
  .admin-backup-upload-form .admin-secondary-button,
  .admin-backup-valid button,
  .admin-restore-complete .admin-primary-link {
    width: 100%;
  }

  .admin-restore-complete {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (forced-colors: active) {
  .admin-backup-icon,
  .admin-backup-warning,
  .admin-backup-valid,
  .admin-backup-success,
  .admin-backup-safety,
  .admin-backup-summary,
  .admin-danger-button {
    border: 1px solid ButtonText;
  }
}

.admin-seo-readiness {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #d8e0e6;
  border-radius: 0.6rem;
  background: white;
}

.admin-seo-status-grid {
  display: grid;
  margin-top: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-seo-status-grid article {
  display: grid;
  min-width: 0;
  min-height: 7.2rem;
  padding: 0.8rem;
  align-content: start;
  border: 1px solid #dce4e9;
  border-radius: 0.5rem;
  background: #f8fafb;
  gap: 0.25rem;
}

.admin-seo-status-grid span,
.admin-seo-status-grid small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.admin-seo-status-grid strong {
  color: #22643b;
  font-size: 0.82rem;
}

.admin-seo-status-grid a {
  width: fit-content;
  min-height: 2.75rem;
  margin-top: auto;
  padding-block: 0.7rem;
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.admin-seo-layout {
  display: grid;
  margin-top: 1rem;
  align-items: start;
  grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 0.55fr);
  gap: 1rem;
}

.admin-seo-form-panel form {
  display: grid;
  margin-top: 1rem;
  gap: 0.75rem;
}

.admin-validation-summary {
  margin-bottom: 0.25rem;
}

.admin-validation-summary ul {
  display: grid;
  margin: 0.3rem 0 0;
  padding-inline-start: 1.15rem;
  gap: 0.2rem;
}

.admin-validation-summary a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.admin-seo-arrow,
.admin-redirect-code {
  width: fit-content;
  border: 1px solid #b7d8c3;
  border-radius: 999px;
  background: #edf8f0;
  color: #245c38;
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-seo-arrow {
  padding: 0.3rem 0.6rem;
}

.admin-seo-form-actions {
  display: flex;
  margin-top: 0.25rem;
  align-items: center;
  gap: 0.55rem;
}

.admin-seo-form-actions .admin-primary-button,
.admin-seo-form-actions .admin-secondary-button {
  width: fit-content;
}

.admin-seo-note h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.admin-seo-note ol {
  display: grid;
  margin: 0.8rem 0;
  padding-inline-start: 1.2rem;
  color: #405462;
  font-size: 0.76rem;
  line-height: 1.55;
  gap: 0.5rem;
}

.admin-seo-note p {
  margin: 0;
  padding-top: 0.8rem;
  border-top: 1px solid #e2e7eb;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.admin-redirect-table td:first-child {
  width: 24%;
}

.admin-redirect-table td:nth-child(3) {
  max-width: 22rem;
  overflow-wrap: anywhere;
}

.admin-redirect-table td:first-child strong,
.admin-redirect-table td:nth-child(3) a {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
}

.admin-redirect-table td:nth-child(3) a {
  color: var(--navy-900);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.admin-redirect-code {
  display: inline-flex;
  padding: 0.3rem 0.55rem;
  white-space: nowrap;
}

@media (hover: hover) {
  .admin-seo-status-grid a:hover,
  .admin-redirect-table td:nth-child(3) a:hover {
    color: var(--gold-700);
  }
}

@media (max-width: 64rem) {
  .admin-seo-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-seo-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 48rem) {
  .admin-seo-status-grid {
    grid-template-columns: 1fr;
  }

  .admin-seo-status-grid article {
    min-height: auto;
  }

  .admin-seo-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-seo-form-actions .admin-primary-button,
  .admin-seo-form-actions .admin-secondary-button {
    width: 100%;
  }
}

@media (forced-colors: active) {
  .admin-seo-readiness,
  .admin-seo-status-grid article,
  .admin-seo-arrow,
  .admin-redirect-code {
    border: 1px solid ButtonText;
  }
}

/* Research & PkM Card Styles */
.research-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-block: 1.5rem;
}

.research-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgb(16 42 67 / 10%);
  border-radius: 0.85rem;
  background: var(--surface);
  box-shadow: 0 4px 18px rgb(16 42 67 / 4%);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.research-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgb(16 42 67 / 8%);
}

.research-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.research-number {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.research-year-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 700;
}

.research-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 600;
}

.research-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy-900);
}

.research-authors,
.research-publisher {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.research-authors strong,
.research-publisher strong {
  color: var(--navy-900);
  font-weight: 600;
}

.research-description {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--navy-800);
}

.research-action {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgb(16 42 67 / 10%);
}

/* ========================================================================== */
/* UNISM CONSISTENCY LAYER: one visual language for public pages and the CMS. */
:root {
  --navy-950: #102a43;
  --navy-900: #163f63;
  --navy-800: #1f5e89;
  --blue-50: #eef6fb;
  --gold-700: #8a5a12;
  --gold-600: #b7801f;
  --paper: #f5f8fb;
  --surface: #ffffff;
  --ink: #162331;
  --muted: #5b6b78;
  --line: #d7e1e8;
  --focus: #2b6f9e;
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 78rem;
  --radius-sm: 0.45rem;
  --radius-md: 0.7rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px rgb(16 42 67 / 6%);
  --shadow-md: 0 10px 30px rgb(16 42 67 / 9%);
  --shadow-lg: 0 18px 48px rgb(16 42 67 / 13%);
}

html { background: var(--paper); }

body,
.admin-body,
.admin-page {
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
}

.admin-page,
.admin-login-page {
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

:where(button, input, select, textarea) { font: inherit; }

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

:where(button, a, summary) { -webkit-tap-highlight-color: transparent; }

.admin-primary-button:active,
.admin-primary-link:active,
.button-secondary:active { transform: scale(0.98); }

/* Shared public content rhythm */
.section-heading { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.eyebrow,
.admin-kicker {
  color: var(--gold-700);
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
h4,
.footer-title,
.admin-page-heading h1,
.admin-panel-heading h2,
.admin-section-heading h2,
.admin-welcome h1 {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
}

h1,
h2,
h3,
h4 { text-wrap: balance; }

.featured-news,
.news-card,
.resource-card,
.lecturer-card,
.archive-card,
.research-card,
.community-card,
.accreditation-card,
.organization-card {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.featured-news:hover,
.news-card:hover,
.resource-card:hover,
.lecturer-card:hover,
.archive-card:hover,
.research-card:hover,
.accreditation-card:hover,
.organization-card:hover {
  border-color: #b7cbd8;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.featured-title,
.news-card h2,
.research-title {
  font-family: var(--font-heading);
  color: var(--navy-950);
}

.featured-title a:hover,
.news-card h2 a:hover,
.news-read-more:hover,
.text-link:hover { color: var(--navy-800); }

.button-secondary {
  min-height: 2.8rem;
  border-color: var(--navy-800);
  border-radius: var(--radius-sm);
  color: var(--navy-800);
  transition-property: background-color, color, box-shadow, transform;
  transition-duration: 160ms;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--navy-800);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.site-footer { background: var(--navy-950); }

/* CMS shell */
.admin-shell {
  grid-template-columns: 17.5rem minmax(0, 1fr);
  background: var(--paper);
}

.admin-sidebar {
  width: 17.5rem;
  padding: 1.25rem 0.9rem;
  background: var(--navy-950);
  border-right: 1px solid rgb(255 255 255 / 10%);
}

.admin-sidebar-brand {
  min-height: 3.7rem;
  padding: 0.65rem 0.75rem;
  border-color: rgb(255 255 255 / 12%);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 6%);
}

.admin-navigation {
  gap: 1.35rem;
  margin-block: 1.75rem 1rem;
}

.admin-nav-group-label {
  color: #90a8bb;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.admin-nav-items { gap: 0.25rem; }

.admin-nav-item {
  min-height: 2.75rem;
  padding: 0.62rem 0.75rem;
  border-radius: var(--radius-sm);
  color: #c5d4df;
  transition-property: color, background-color, box-shadow;
  transition-duration: 150ms;
}

.admin-nav-item:hover,
.admin-nav-item:focus-visible {
  color: #fff;
  background: rgb(255 255 255 / 9%);
}

.admin-nav-item.is-active {
  color: #fff;
  background: var(--navy-800);
  box-shadow: 0 6px 16px rgb(31 94 137 / 24%);
}

.admin-nav-item.is-disabled { color: #8095a5; }

.admin-topbar {
  min-height: 4.5rem;
  padding-inline: clamp(1rem, 2.5vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-topbar-btn,
.admin-sidebar-toggle-btn {
  min-height: 2.6rem;
  border-radius: var(--radius-sm);
  transition-property: color, background-color, border-color, box-shadow, transform;
  transition-duration: 150ms;
}

.admin-topbar-btn:hover,
.admin-sidebar-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.admin-content {
  width: min(100%, 88rem);
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2.75rem);
}

.admin-page-heading { margin-bottom: 1.75rem; }

.admin-page-heading h1 {
  color: var(--navy-950);
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  line-height: 1.05;
}

.admin-page-heading p,
.admin-panel-heading p,
.admin-section-heading p {
  color: var(--muted);
  line-height: 1.55;
}

.admin-primary-link,
.admin-primary-button,
.admin-secondary-link,
.admin-secondary-button,
.admin-danger-button {
  min-height: 2.8rem;
  border-radius: var(--radius-sm);
  transition-property: background-color, border-color, color, box-shadow, transform;
  transition-duration: 160ms;
}

.admin-primary-link,
.admin-primary-button {
  background: var(--navy-800);
  box-shadow: 0 5px 14px rgb(31 94 137 / 20%);
}

.admin-primary-link:hover,
.admin-primary-button:hover {
  background: var(--navy-900);
  box-shadow: 0 8px 20px rgb(31 94 137 / 26%);
  transform: translateY(-1px);
}

.admin-secondary-link,
.admin-secondary-button {
  border-color: var(--line);
  color: var(--navy-900) !important;
  background: var(--surface);
}

.admin-secondary-link:hover,
.admin-secondary-button:hover {
  border-color: #acc1ce;
  color: var(--navy-950) !important;
  background: var(--blue-50);
}

.admin-danger-button {
  color: #9b2c2c;
  background: #fff3f2;
  border-color: #edc3c0;
}

.admin-danger-button:hover {
  color: #7e2020;
  background: #ffe7e4;
  border-color: #dca09a;
}

.admin-panel,
.admin-table-card,
.admin-editor-card,
.admin-settings-panel,
.admin-media-upload-panel,
.admin-media-card,
.admin-navigation-item,
.admin-stat-card,
.admin-stat-card-pro,
.admin-empty-state,
.admin-preview-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.admin-panel,
.admin-editor-card,
.admin-settings-panel,
.admin-media-upload-panel { padding: clamp(1rem, 2vw, 1.5rem); }

.admin-table-card { overflow: hidden; box-shadow: var(--shadow-sm); }

.admin-table-card-header {
  min-height: 4rem;
  padding: 1rem 1.35rem;
  border-bottom-color: var(--line);
  background: var(--surface);
}

.admin-table thead { background: var(--blue-50); }
.admin-table th { color: var(--navy-900); border-bottom-color: var(--line); }
.admin-table td { border-bottom-color: #e8eef2; color: var(--ink); }
.admin-table tbody tr:hover { background: #f8fbfd; }

.admin-field input,
.admin-field select,
.admin-field textarea,
.admin-search-field input,
.admin-filter-bar input,
.admin-filter-bar select,
.admin-settings-form input,
.admin-settings-form select,
.admin-settings-form textarea {
  min-height: 2.85rem;
  border-color: #bdccd6;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

:where(.admin-field input, .admin-field select, .admin-field textarea, .admin-search-field input, .admin-filter-bar input, .admin-filter-bar select, .admin-settings-form input, .admin-settings-form select, .admin-settings-form textarea):focus {
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgb(31 94 137 / 14%);
  outline: 0;
}

.admin-flash-modern,
.admin-notice,
.admin-form-alert,
.admin-success-notice { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }

.admin-stat-grid,
.admin-dashboard-grid { gap: 1rem; }

.admin-stat-card,
.admin-stat-card-pro { min-height: 8rem; padding: 1.25rem; }

.admin-stat-card:hover,
.admin-stat-card-pro:hover,
.admin-media-card:hover,
.admin-navigation-item:hover {
  border-color: #b7cbd8;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.admin-status,
.admin-tag-badge,
.admin-code-badge { border-radius: 999px; }

@media (max-width: 78rem) {
  .header-main { width: min(calc(100% - 2rem), var(--container)); }
  .mobile-cta { margin-inline-start: 0; }
}

@media (max-width: 48rem) {
  .admin-content { padding: 1.15rem; }
  .admin-topbar { padding-inline: 1rem; }
  .admin-topbar-unit-info { display: none; }
  .admin-topbar-actions { gap: 0.4rem; }
  .admin-user-info-text,
  .admin-view-site-btn span,
  .admin-logout-btn span { display: none; }
  .admin-user-profile-chip { padding: 0.28rem; }
  .admin-page-heading h1 { font-size: 2.15rem; }
  .admin-panel,
  .admin-editor-card,
  .admin-settings-panel,
  .admin-media-upload-panel { padding: 1rem; }
}

@media (max-width: 37.5rem) {
  .header-main { min-height: 4.6rem; }
  .brand-mark { width: 2.65rem; height: 2.65rem; }
  .brand-title { max-width: 12rem; white-space: normal; }
  .admin-topbar-status-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .site-header,
  .dropdown-panel,
  .featured-news,
  .news-card,
  .admin-panel,
  .admin-table-card,
  .admin-editor-card,
  .admin-settings-panel,
  .admin-media-card,
  .admin-navigation-item,
  .admin-stat-card,
  .admin-stat-card-pro { border: 1px solid CanvasText; }
}

/* News system: the same editorial card language on home, archive and detail. */
.news-card-meta {
  display: flex;
  min-height: 1.8rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.8rem;
  margin: 0;
}

.news-category {
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border: 1px solid #c9dbe7;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--navy-800);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.1;
  text-transform: uppercase;
}

.news-meta-date {
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
}

.news-meta-date svg { flex: 0 0 auto; }

.featured-badge {
  border-color: rgb(255 255 255 / 80%);
  background: rgb(255 255 255 / 94%);
  color: var(--navy-800);
}

.featured-copy .news-card-meta { margin-bottom: 0.85rem; }

.news-card {
  min-height: 8.6rem;
  align-items: stretch;
}

.news-card .news-card-meta { margin-bottom: 0.5rem; }

.news-card h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.2;
}

.news-card h2 a { color: var(--navy-950); }

.news-archive-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.news-archive-heading {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.news-archive-heading h1 {
  max-width: 15ch;
  margin: 0.35rem 0 0.65rem;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.98;
}

.news-archive-heading > p:last-child {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.search-results-banner {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  padding: 1.1rem 1.25rem;
  border: 1px solid #c9dbe7;
  border-radius: var(--radius-md);
  background: var(--blue-50);
}

.search-results-banner h2 {
  margin: 0 0 0.25rem;
  color: var(--navy-800);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.2;
}

.search-results-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.search-results-banner a {
  margin-inline-start: 0.75rem;
  color: var(--navy-800);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.archive-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

.archive-image {
  display: block;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.archive-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.archive-card:hover .archive-image img { transform: scale(1.025); }

.archive-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.2rem 1.3rem 1.4rem;
}

.archive-card-title {
  margin: 0.75rem 0 0;
  font-family: var(--font-heading) !important;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem) !important;
  line-height: 1.16 !important;
}

.archive-card-title a {
  color: var(--navy-950);
  text-decoration: none;
}

.archive-card-title a:hover,
.archive-card-title a:focus-visible { color: var(--navy-800); }

.archive-card-taxonomy {
  margin: 0.8rem 0 0;
  gap: 0.35rem;
}

.archive-card-taxonomy .public-news-tag {
  min-height: 1.55rem;
  padding: 0.22rem 0.5rem;
  font-size: 0.66rem;
}

.archive-card-excerpt {
  display: -webkit-box;
  margin: 0.85rem 0 0 !important;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem !important;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* ==========================================================================
   MODERN EDITORIAL NEWS DETAIL PAGE (2-COLUMN LAYOUT)
   ========================================================================== */
.news-detail-page {
  background: var(--paper);
  min-height: 80vh;
}

.news-detail-container {
  max-width: 82rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) 1.5rem clamp(3rem, 6vw, 5rem);
  margin: 0 auto;
}

/* Breadcrumb Bar */
.news-breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.news-breadcrumb-path {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.news-breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.news-breadcrumb-link:hover {
  color: var(--navy-800);
}

.news-breadcrumb-sep {
  color: #cbd5e1;
  font-size: 0.8rem;
}

.news-breadcrumb-current {
  color: var(--navy-900);
  font-weight: 600;
}

.news-back-to-archive {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(30, 64, 175, 0.06);
  border: 1px solid rgba(30, 64, 175, 0.12);
  transition: all 0.18s ease;
}

.news-back-to-archive:hover {
  background: #1e40af;
  color: #ffffff;
  border-color: #1e40af;
  transform: translateX(-2px);
}

/* 2-Column Grid Layout */
.news-detail-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
  align-items: flex-start;
}

.news-detail-main-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Article Sheet */
.news-article-sheet {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  border: 1px solid #e2e8f0;
}

/* Article Header */
.news-article-header {
  margin-bottom: 2rem;
}

.news-header-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.news-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(30, 64, 175, 0.18);
}

.news-article-title {
  margin: 0.4rem 0 1.25rem;
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0f172a;
}

/* Article Meta Bar */
.news-article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0.95rem 1.15rem;
  background: #f8fafc;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
}

.news-meta-author-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.news-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.news-author-text {
  display: flex;
  flex-direction: column;
}

.news-author-name {
  font-size: 0.85rem;
  font-weight: 750;
  color: #0f172a;
  line-height: 1.2;
}

.news-author-role {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.2;
}

.news-meta-details {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 500;
}

.news-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.news-meta-dot {
  color: #cbd5e1;
}

.news-header-share-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-share-pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}

.news-share-pill:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.news-share-pill.share-wa:hover { background: #25d366; border-color: #25d366; }
.news-share-pill.share-fb:hover { background: #1877f2; border-color: #1877f2; }
.news-share-pill.share-tw:hover { background: #000000; border-color: #000000; }
.news-share-pill.share-copy:hover,
.news-share-pill.is-copied { background: #1e40af; border-color: #1e40af; color: #ffffff; }

/* Featured Image Figure */
.news-featured-figure {
  margin: 0 0 2rem 0;
}

.news-featured-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  border-radius: 1rem;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.15);
}

.news-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-featured-caption {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: #64748b;
  font-style: italic;
}

/* Lead Section Quote */
.news-lead-quote {
  margin: 1.5rem 0 2rem;
  padding: 1.15rem 1.4rem;
  background: linear-gradient(to right, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.01));
  border-left: 4px solid #f59e0b;
  border-radius: 0 0.85rem 0.85rem 0;
}

.news-lead-quote p {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.68;
  color: #1e293b;
}

/* Article Body Content */
.news-rich-body {
  margin: 1.75rem 0 2.5rem;
}

.news-rich-body p {
  font-size: 1.05rem;
  line-height: 1.88;
  color: #334155;
  margin-bottom: 1.4rem;
  text-wrap: pretty;
}

.news-rich-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-size: 3.4rem;
  line-height: 0.8;
  padding: 0.3rem 0.6rem 0.1rem 0;
  font-weight: 800;
  color: #1e40af;
}

.news-rich-body blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid #1e40af;
  background: #f8fafc;
  font-style: italic;
  color: #1e293b;
  border-radius: 0 0.5rem 0.5rem 0;
}

.news-rich-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

/* Article Taxonomy Footer */
.news-article-taxonomy-footer {
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  margin-bottom: 2rem;
}

.news-tax-block {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.news-tax-label {
  font-size: 0.8rem;
  font-weight: 750;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-tag-cloud {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.news-tag-item {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.news-tag-item:hover {
  background: #eff6ff;
  color: #1e40af;
}

/* Bottom Panel: Share & Editorial Trust */
.news-article-bottom-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.news-share-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.35rem;
  background: #f8fafc;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
}

.news-share-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #0f172a;
  font-size: 0.88rem;
}

.news-share-action-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.news-share-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.news-share-action-btn:hover {
  color: #ffffff;
}

.news-share-action-btn.wa-btn:hover { background: #25d366; border-color: #25d366; }
.news-share-action-btn.fb-btn:hover { background: #1877f2; border-color: #1877f2; }
.news-share-action-btn.tw-btn:hover { background: #000000; border-color: #000000; }
.news-share-action-btn.li-btn:hover { background: #0a66c2; border-color: #0a66c2; }
.news-share-action-btn.copy-btn:hover,
.news-share-action-btn.copy-btn.is-copied { background: #1e40af; border-color: #1e40af; color: #ffffff; }

.news-editorial-trust-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.35rem;
  background: #eff6ff;
  border-radius: 0.85rem;
  border: 1px solid #bfdbfe;
}

.trust-icon {
  color: #1e40af;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.trust-text strong {
  display: block;
  font-size: 0.86rem;
  color: #1e3a8a;
  margin-bottom: 0.15rem;
}

.trust-text p {
  margin: 0;
  font-size: 0.78rem;
  color: #3b82f6;
  line-height: 1.45;
}

/* PMB Call to Action Card */
.news-pmb-cta-card {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, #0f2b48 0%, #1e40af 100%);
  border-radius: 1.25rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 16px 36px -8px rgba(15, 43, 72, 0.28);
}

.news-pmb-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fbbf24;
  margin-bottom: 0.35rem;
}

.news-pmb-title {
  margin: 0 0 0.5rem 0;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}

.news-pmb-desc {
  margin: 0;
  font-size: 0.88rem;
  color: #bfdbfe;
  line-height: 1.55;
  max-width: 34rem;
}

.news-pmb-action {
  flex-shrink: 0;
}

.news-pmb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.45rem;
  border-radius: 9999px;
  background: #fbbf24;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.35);
  transition: all 0.2s ease;
}

.news-pmb-btn:hover {
  background: #f59e0b;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.45);
}

/* ==========================================================================
   SIDEBAR BERITA LAINNYA & WIDGETS
   ========================================================================== */
.news-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-sidebar-sticky-wrap {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-sidebar-widget {
  background: #ffffff;
  border-radius: 1.15rem;
  border: 1px solid #e2e8f0;
  padding: 1.35rem;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

.news-sidebar-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.news-sidebar-kicker {
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e40af;
  display: block;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.news-sidebar-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.news-sidebar-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e40af;
  text-decoration: none;
  transition: all 0.15s ease;
}

.news-sidebar-more-link:hover {
  color: #1d4ed8;
  transform: translateX(2px);
}

.news-sidebar-articles-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.news-sidebar-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid #f1f5f9;
  transition: transform 0.15s ease;
}

.news-sidebar-card:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.news-sidebar-card:hover {
  transform: translateX(3px);
}

.news-sidebar-thumb-link {
  width: 84px;
  height: 64px;
  border-radius: 0.65rem;
  overflow: hidden;
  background: #0f172a;
  display: block;
  flex-shrink: 0;
}

.news-sidebar-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.news-sidebar-card:hover .news-sidebar-thumb-link img {
  transform: scale(1.08);
}

.news-sidebar-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.news-sidebar-card-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.news-sidebar-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-sidebar-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  line-height: 1.2;
}

.news-sidebar-date {
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.2;
}

.news-sidebar-heading {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-sidebar-heading a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.news-sidebar-heading a:hover {
  color: #1e40af;
}

.news-sidebar-empty {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  font-style: italic;
}

/* Sidebar PMB Box */
.news-sidebar-pmb-box {
  background: linear-gradient(135deg, #0f2b48 0%, #1e40af 100%);
  color: #ffffff;
  border: none;
}

.sidebar-pmb-kicker {
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fbbf24;
  display: block;
  margin-bottom: 0.25rem;
}

.sidebar-pmb-title {
  margin: 0 0 0.4rem 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.sidebar-pmb-text {
  margin: 0 0 0.95rem 0;
  font-size: 0.8rem;
  color: #bfdbfe;
  line-height: 1.5;
}

.sidebar-pmb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: #fbbf24;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.35);
  transition: all 0.18s ease;
}

.sidebar-pmb-button:hover {
  background: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

/* Sidebar Quick Links */
.sidebar-links-title {
  margin: 0 0 0.85rem 0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-links-list a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.sidebar-links-list a:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
  transform: translateX(3px);
}

.sidebar-links-list a svg {
  color: #1e40af;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .news-detail-layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .news-sidebar-sticky-wrap {
    position: static;
  }
}

@media (max-width: 600px) {
  .news-article-sheet {
    padding: 1.25rem;
    border-radius: 0.9rem;
  }
  .news-article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .news-share-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .news-pmb-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.admin-news-delete-form { display: inline; }

.admin-news-delete-form { display: inline; }

.admin-table-empty {
  padding: 3rem 1.5rem;
  color: var(--muted);
  text-align: center;
}

.admin-table-empty-content {
  display: flex;
  max-width: 20rem;
  margin: 0 auto;
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-table-empty-content strong {
  color: var(--navy-950);
  font-size: 0.95rem;
}

.admin-table-empty-content p {
  margin: 0;
  font-size: 0.8rem;
}

.admin-news-empty-action { margin-top: 0.5rem; }

@media (max-width: 50rem) {
  .news-archive-grid { grid-template-columns: 1fr; }
  .public-news-header h1 { max-width: 18ch; }
}

@media (max-width: 37.5rem) {
  .archive-card-body { padding: 1rem 1.05rem 1.2rem; }
  .public-news-cover { aspect-ratio: 4 / 3; }
  .public-news-header h1 { font-size: clamp(2.25rem, 12vw, 3.4rem); }
  .admin-news-actions { align-items: stretch; flex-direction: column; }
  .admin-news-action { width: 100%; }
}

/* News editor: keep the CMS form on the same spacing and type scale. */
.admin-news-editor-form .admin-form-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.8fr);
  gap: 1.25rem;
}

.admin-news-editor-form .admin-form-main {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.admin-news-editor-form .admin-form-sidebar {
  display: grid;
  align-self: start;
  position: sticky;
  inset-block-start: 1rem;
  gap: 1rem;
}

.admin-news-editor-panel {
  margin: 0;
}

.admin-news-panel-title {
  margin: 0 0 1rem;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.2;
}

.admin-news-submit {
  width: 100%;
  margin-top: 1rem;
}

.admin-news-english-panel {
  margin-top: 0.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.admin-news-english-panel summary {
  color: var(--navy-900);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 750;
}

.admin-news-english-content {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
}

@media (max-width: 64rem) {
  .admin-news-editor-form .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-news-editor-form .admin-form-sidebar {
    position: static;
  }
}

@media (max-width: 37.5rem) {
  .admin-news-editor-panel,
  .admin-news-english-panel { padding: 1rem; }
}

/* Focused login experience */
.admin-login-body {
  min-height: 100dvh;
  background: var(--paper);
}

.admin-login-page {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(21rem, 0.85fr) minmax(31rem, 1.15fr);
  background: var(--paper);
}

.admin-login-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100dvh;
  padding: clamp(2rem, 4vw, 4rem);
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  background: linear-gradient(145deg, var(--navy-950) 0%, #153f63 62%, #1d587f 100%);
  color: #fff;
}

.admin-login-brand::before,
.admin-login-brand::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.admin-login-brand::before {
  width: min(38vw, 34rem);
  aspect-ratio: 1;
  inset-block-end: -14rem;
  inset-inline-end: -12rem;
  box-shadow: 0 0 0 5rem rgb(255 255 255 / 2.5%), 0 0 0 10rem rgb(255 255 255 / 2%);
}

.admin-login-brand::after {
  width: 11rem;
  aspect-ratio: 1;
  inset-block-start: 13%;
  inset-inline-end: -6rem;
  background: rgb(255 255 255 / 2%);
}

.admin-login-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  width: fit-content;
  color: #fff;
  text-decoration: none;
}

.admin-login-logo-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.admin-login-logo-wrap img,
.admin-login-logo img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  display: block;
}

.admin-brand-logo-wrap {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  max-width: 38px;
  max-height: 38px;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.admin-brand-logo-wrap img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  display: block;
}

.admin-login-logo strong {
  max-width: 22rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
}

.admin-login-logo small {
  color: rgb(255 255 255 / 72%);
  font-size: 0.78rem;
}

.admin-login-brand-copy {
  max-width: 36rem;
}

.admin-login-brand .admin-kicker {
  color: #f4ce8c;
}

.admin-login-brand h2 {
  max-width: 13ch;
  margin: 0.55rem 0 0.9rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 4vw, 4.2rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.admin-login-brand-copy > p:last-child {
  max-width: 34rem;
  margin: 0;
  color: rgb(255 255 255 / 78%);
  font-size: clamp(0.96rem, 1.2vw, 1.08rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.admin-login-brand-note {
  display: flex;
  width: fit-content;
  margin: 0;
  align-items: center;
  gap: 0.65rem;
  color: rgb(255 255 255 / 76%);
  font-size: 0.78rem;
  font-weight: 650;
}

.admin-login-panel {
  display: grid;
  min-height: 100dvh;
  padding: clamp(1rem, 2vw, 1.5rem);
  place-items: center;
  background:
    radial-gradient(circle at 85% 12%, rgb(31 94 137 / 8%), transparent 24rem),
    linear-gradient(180deg, #f8fafc 0%, #eef3f7 100%);
}

.admin-login-card {
  width: min(100%, 30rem);
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  border: 0;
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgb(15 43 72 / 7%),
    0 1px 2px rgb(15 43 72 / 5%),
    0 24px 60px rgb(15 43 72 / 12%);
}

.admin-login-heading h1 {
  margin: 0.35rem 0 0.5rem;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.admin-login-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.admin-login-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.admin-login-page .admin-field {
  display: grid;
  gap: 0.45rem;
}

.admin-login-page .admin-field label {
  color: var(--navy-950);
  font-size: 0.84rem;
  font-weight: 750;
}

.admin-login-page .admin-field input {
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #afbfca;
  border-radius: 0.65rem;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  transition-property: border-color, box-shadow, background-color;
  transition-duration: 150ms;
}

.admin-login-page .admin-field input::placeholder {
  color: var(--muted);
}

.admin-login-page .admin-field input:hover {
  border-color: #8297a6;
}

.admin-login-page .admin-field input:focus {
  border-color: var(--navy-800);
  background: #fff;
  box-shadow: 0 0 0 3px rgb(31 94 137 / 14%);
  outline: 0;
}

.admin-login-page .admin-field input[aria-invalid='true'] {
  border-color: #b42318;
  background: #fffafa;
}

.admin-login-page .admin-field-help {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.admin-login-error {
  display: flex;
  margin: 0 0 0.15rem;
  padding: 0.75rem 0.85rem;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid #edc3c0;
  border-radius: 0.65rem;
  background: #fff3f2;
  color: #8b211a;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.admin-login-error svg {
  flex: none;
  margin-top: 0.05rem;
}

.admin-password-toggle {
  display: inline-flex;
  width: fit-content;
  min-height: 2.25rem;
  margin-top: -0.2rem;
  align-items: center;
  gap: 0.55rem;
  color: #526675;
  cursor: pointer;
  font-size: 0.82rem;
}

.admin-password-toggle input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--navy-800);
}

.admin-login-page .admin-login-submit {
  width: 100%;
  min-height: 3rem;
  padding-inline: 1.1rem 1rem;
  border-radius: 0.7rem;
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 8px 18px rgb(31 64 175 / 20%);
  font-size: 0.9rem;
  font-weight: 750;
  transition-property: background-color, box-shadow, transform;
  transition-duration: 150ms;
}

.admin-login-page .admin-login-submit:hover {
  background: var(--navy-900);
  box-shadow: 0 10px 24px rgb(31 64 175 / 26%);
  transform: translateY(-1px);
}

.admin-login-page .admin-login-submit:active {
  box-shadow: 0 4px 10px rgb(31 64 175 / 20%);
  transform: scale(0.96);
}

.admin-login-page .admin-login-submit:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.admin-login-page .admin-login-submit svg {
  margin-inline-start: auto;
}

.admin-dev-credentials {
  position: relative;
  margin-top: 1.15rem;
}

.admin-dev-credentials summary {
  display: flex;
  min-height: 2.85rem;
  padding: 0.65rem 0.95rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  color: var(--navy-950);
  cursor: pointer;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 750;
  user-select: none;
  border: 1px solid #ded4be;
  border-radius: 0.65rem;
  background: #fffdf8;
  transition: all 150ms ease;
}

.admin-dev-credentials summary::-webkit-details-marker { display: none; }

.admin-dev-credentials summary::after {
  width: 0.45rem;
  height: 0.45rem;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  content: '';
  transform: rotate(225deg);
  transition: transform 150ms ease;
  flex: none;
  margin-left: 0.4rem;
}

.admin-dev-credentials[open] summary::after {
  transform: rotate(45deg);
}

.admin-dev-summary-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
}

.admin-dev-summary-label svg { flex: none; }

.admin-dev-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #f7e8c9;
  color: #74420b;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: auto;
}

.admin-dev-credentials-content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 100;
  display: block;
  padding: 1.15rem;
  border: 1px solid #ded4be;
  border-radius: 0.75rem;
  background: #fffdf8;
  box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.admin-dev-credentials-content > p:first-child {
  margin: 0 0 0.75rem;
  color: #5d503f;
  font-size: 0.78rem;
}

.admin-dev-credentials dl {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.admin-dev-credentials dl > div {
  display: grid;
  gap: 0.3rem;
}

.admin-dev-credentials dt {
  color: #66563f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-dev-credentials dd { margin: 0; }

.admin-dev-credential-row {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.admin-dev-credentials code {
  display: flex;
  min-width: 0;
  min-height: 2.55rem;
  padding: 0.55rem 0.65rem;
  align-items: center;
  overflow-wrap: anywhere;
  border: 1px solid #e1d8c5;
  border-radius: 0.55rem;
  background: #fff;
  color: var(--navy-950);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 650;
  user-select: all;
}

.admin-login-page .admin-dev-copy-pill {
  min-height: 2.55rem;
  padding: 0.45rem 0.65rem;
  border-color: #d4c8ae;
  border-radius: 0.55rem;
  background: #fff;
  color: #68420f;
}

.admin-login-page .admin-dev-copy-pill:hover {
  border-color: #a9864f;
  background: #f9f1e2;
}

.admin-dev-credential-actions {
  display: grid;
  margin-top: 0.9rem;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.admin-login-page .admin-dev-fill-button {
  width: 100%;
  min-height: 2.65rem;
  margin: 0;
  padding: 0.5rem 0.7rem;
  font-size: 0.78rem;
}

.admin-login-page #btn-copy-all-dev {
  grid-column: 1 / -1;
}

.admin-dev-credential-status {
  min-height: 1.2rem;
  margin: 0.65rem 0 0;
  color: #23653a;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.4;
}

.admin-login-security-note {
  display: flex;
  margin-top: 1.25rem;
  align-items: center;
  gap: 0.55rem;
  color: #526675;
  font-size: 0.76rem;
}

.admin-login-security-note svg { flex: none; }

.admin-back-link {
  display: inline-flex;
  min-height: 2.5rem;
  margin-top: 0.65rem;
  align-items: center;
  gap: 0.45rem;
  color: var(--navy-900);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

@media (hover: hover) {
  .admin-login-page .admin-back-link:hover {
    color: var(--navy-950);
    text-decoration: underline;
    text-decoration-thickness: from-font;
    text-underline-offset: 0.18em;
  }
}

@media (max-width: 50rem) {
  .admin-login-page {
    grid-template-columns: 1fr;
  }

  .admin-login-brand {
    min-height: auto;
    padding: 0.85rem clamp(1rem, 5vw, 2rem);
  }

  .admin-login-brand-copy,
  .admin-login-brand-note,
  .admin-login-brand::before,
  .admin-login-brand::after {
    display: none;
  }

  .admin-login-logo img {
    width: 2.75rem;
    height: 2.75rem;
  }

  .admin-login-panel {
    min-height: calc(100dvh - 4.5rem);
    padding: clamp(0.75rem, 3vw, 1.5rem);
    place-items: start center;
  }

  .admin-login-card {
    margin-block: auto;
  }
}

@media (max-width: 27rem) {
  .admin-login-card {
    padding: 1.1rem;
    border-radius: 1rem;
  }

  .admin-login-heading h1 {
    font-size: 1.7rem;
  }

  .admin-dev-credential-row,
  .admin-dev-credential-actions {
    grid-template-columns: 1fr;
  }

  .admin-login-page #btn-copy-all-dev {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-login-page *,
  .admin-login-page *::before,
  .admin-login-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark Mode support for Admin Login */
[data-theme="dark"] .admin-login-body,
[data-theme="dark"] .admin-login-page {
  background: #070d19 !important;
}

[data-theme="dark"] .admin-login-brand {
  background: linear-gradient(145deg, #050b14 0%, #0c1c33 62%, #112644 100%);
}

[data-theme="dark"] .admin-login-panel {
  background: radial-gradient(circle at 85% 12%, rgb(30 58 138 / 18%), transparent 24rem), #070d19 !important;
}

[data-theme="dark"] .admin-login-card {
  background: #0d1627 !important;
  border: 1px solid #1e2e4a !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .admin-login-heading h1 {
  color: #f8fafc !important;
}

[data-theme="dark"] .admin-login-heading > p:last-child {
  color: #94a3b8 !important;
}

[data-theme="dark"] .admin-login-page .admin-field label {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .admin-login-page .admin-field input {
  background: #080f1d !important;
  border-color: #1e3a5f !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .admin-login-page .admin-field input:hover {
  border-color: #3b82f6 !important;
}

[data-theme="dark"] .admin-login-page .admin-field input:focus {
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25) !important;
  background: #0b172a !important;
}

[data-theme="dark"] .admin-login-page .admin-field-help {
  color: #64748b !important;
}

[data-theme="dark"] .admin-password-toggle {
  color: #94a3b8 !important;
}

[data-theme="dark"] .admin-login-submit {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.35) !important;
}

[data-theme="dark"] .admin-login-submit:hover {
  background: #2563eb !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45) !important;
}

[data-theme="dark"] .admin-dev-credentials {
  color: #f8fafc !important;
}

[data-theme="dark"] .admin-dev-credentials summary {
  color: #cbd5e1 !important;
  background: #091224 !important;
  border-color: #1e335a !important;
}

[data-theme="dark"] .admin-dev-credentials summary:hover {
  border-color: #38bdf8 !important;
}

[data-theme="dark"] .admin-dev-badge {
  background: rgba(234, 179, 8, 0.18) !important;
  color: #facc15 !important;
}

[data-theme="dark"] .admin-dev-credentials-content {
  background: #091224 !important;
  border-color: #1e3a5f !important;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .admin-dev-credentials-content > p:first-child {
  color: #94a3b8 !important;
}

[data-theme="dark"] .admin-dev-credentials dt {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .admin-dev-credentials code {
  background: #050b14 !important;
  border-color: #1e293b !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .admin-login-page .admin-dev-copy-pill {
  background: #152238 !important;
  border-color: #1e3a5f !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .admin-login-page .admin-dev-copy-pill:hover {
  background: #1e3a5f !important;
  border-color: #3b82f6 !important;
}

[data-theme="dark"] .admin-login-page #btn-quick-login {
  background: #1d4ed8 !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

[data-theme="dark"] .admin-login-page #btn-quick-login:hover {
  background: #2563eb !important;
}

[data-theme="dark"] .admin-login-page .admin-secondary-button.admin-dev-fill-button {
  background: #152238 !important;
  border-color: #1e3a5f !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .admin-login-page .admin-secondary-button.admin-dev-fill-button:hover {
  background: #1e3a5f !important;
  border-color: #3b82f6 !important;
}

[data-theme="dark"] .admin-login-security-note {
  color: #64748b !important;
}

[data-theme="dark"] .admin-login-page .admin-back-link {
  color: #60a5fa !important;
}

[data-theme="dark"] .admin-login-page .admin-back-link:hover {
  color: #93c5fd !important;
}

/* ==========================================================================
   ADMIN DASHBOARD MODERN SUITE (10/10 Polish)
   ========================================================================== */

/* 1. Hero Banner */
.dash-hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #172554 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.18), 0 8px 10px -6px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.dash-hero-ambient {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  opacity: 0.07;
  color: #38bdf8;
  pointer-events: none;
  z-index: 1;
}

.dash-hero-ambient svg {
  width: 100%;
  height: 100%;
}

.dash-hero-body {
  position: relative;
  z-index: 2;
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.dash-hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dash-hero-badge-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(147, 197, 253, 0.25);
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
  animation: pulseGreen 2s infinite ease-in-out;
}

.dash-hero-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.26rem 0.65rem;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

.dash-chip.chip-success {
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(134, 239, 172, 0.28);
}

.dash-hero-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dash-hero-title {
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0;
}

.dash-hero-desc {
  font-size: clamp(0.85rem, 1.15vw, 0.95rem);
  color: #94a3b8;
  max-width: 48rem;
  line-height: 1.55;
  margin: 0;
}

.dash-hero-desc strong {
  color: #f8fafc;
  font-weight: 600;
}

.dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.dash-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 1.1rem;
  border-radius: 0.55rem;
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.dash-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.dash-btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
}

.dash-btn-glass {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.dash-btn-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* 2. Stats Section & Grid */
.dash-stats-section {
  margin-bottom: 2rem;
}

.dash-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.dash-section-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0 0 0.2rem;
  letter-spacing: -0.02em;
}

.dash-section-subtitle {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0;
}

.dash-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 650;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.dash-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 145px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.dash-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  border-color: var(--card-accent, #3b82f6);
}

.dash-stat-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transition: height 0.2s ease;
}

.dash-stat-card:hover .dash-stat-accent-bar {
  height: 4px;
}

.dash-stat-watermark {
  position: absolute;
  right: -10px;
  bottom: -10px;
  opacity: 0.18;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dash-stat-card:hover .dash-stat-watermark {
  opacity: 0.32;
  transform: scale(1.08) rotate(-4deg);
}

.dash-stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.dash-stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.dash-stat-card:hover .dash-stat-icon-wrap {
  transform: scale(1.06);
}

.dash-stat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-stat-card-body {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.dash-stat-label {
  font-size: 0.78rem;
  font-weight: 650;
  color: #64748b;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dash-stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.dash-stat-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

.dash-stat-detail {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

.dash-stat-arrow {
  color: var(--card-accent, #3b82f6);
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.18s ease;
}

.dash-stat-card:hover .dash-stat-arrow {
  transform: translateX(3px);
}

/* 3. Content Grid */
.dash-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .dash-content-grid {
    grid-template-columns: 1fr;
  }
}

.dash-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.dash-panel-header {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #ffffff;
}

.dash-panel-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dash-panel-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-panel-icon-wrap.icon-blue {
  background: #eff6ff;
  color: #2563eb;
}

.dash-panel-icon-wrap.icon-green {
  background: #ecfdf5;
  color: #16a34a;
}

.dash-panel-heading {
  font-size: 0.98rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0 0 0.15rem;
  letter-spacing: -0.015em;
}

.dash-panel-sub {
  font-size: 0.76rem;
  color: #64748b;
  margin: 0;
}

.dash-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: #2563eb;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dash-panel-link:hover {
  color: #1d4ed8;
  transform: translateX(2px);
}

/* News List */
.dash-news-list {
  display: flex;
  flex-direction: column;
}

.dash-news-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.35rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.dash-news-item:last-child {
  border-bottom: none;
}

.dash-news-item:hover {
  background: #f8fafc;
}

.dash-news-thumb-wrap {
  width: 56px;
  height: 42px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.dash-news-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dash-news-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background: #f8fafc;
}

.dash-news-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dash-news-title {
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-news-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.dash-news-title a:hover {
  color: #2563eb;
}

.dash-news-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: #64748b;
}

.dash-meta-dot {
  color: #cbd5e1;
}

.dash-news-cat {
  color: #0284c7;
  font-weight: 600;
}

.dash-news-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.dash-item-btns {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dash-btn-mini {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dash-btn-mini:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.dash-empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: #64748b;
}

/* Side Block: Progress, Quick Links & Environment */
.dash-side-block {
  padding: 1.15rem 1.35rem;
}

.dash-side-heading {
  font-size: 0.73rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 0 0 0.75rem;
}

.dash-progress-box {
  margin-bottom: 1rem;
}

.dash-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #475569;
  margin-bottom: 0.45rem;
}

.dash-progress-labels strong {
  color: #0f172a;
  font-weight: 700;
}

.dash-progress-track {
  height: 8px;
  border-radius: 9999px;
  background: #e2e8f0;
  overflow: hidden;
}

.dash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.dash-pub-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0;
}

.pub-stat-box {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pub-box-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.pub-box-success dt {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #166534;
  margin: 0;
}

.pub-box-success dd {
  font-size: 1.25rem;
  font-weight: 800;
  color: #15803d;
  margin: 0;
  line-height: 1;
}

.pub-box-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.pub-box-warning dt {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #92400e;
  margin: 0;
}

.pub-box-warning dd {
  font-size: 1.25rem;
  font-weight: 800;
  color: #b45309;
  margin: 0;
  line-height: 1;
}

.dash-quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dash-quick-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.dash-quick-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #2563eb;
  transform: translateX(2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.quick-icon-dot {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-icon-dot.bg-blue {
  background: #eff6ff;
}

.quick-icon-dot.bg-amber {
  background: #fef3c7;
}

.quick-icon-dot.bg-indigo {
  background: #e0e7ff;
}

.quick-icon-dot.bg-cyan {
  background: #cffafe;
}

.quick-item-label {
  flex: 1;
}

.quick-item-arr {
  color: #94a3b8;
  font-size: 0.85rem;
  transition: transform 0.15s ease;
}

.dash-quick-item:hover .quick-item-arr {
  transform: translateX(2px);
  color: #2563eb;
}

/* Environment Info Box */
.dash-env-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.dash-env-tag {
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: #64748b;
}

.dash-env-secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
}

.dash-env-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  font-size: 0.76rem;
}

.env-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.env-item span {
  color: #64748b;
}

.env-item strong {
  color: #1e293b;
  font-weight: 650;
}

@media (max-width: 640px) {
  .dash-news-item {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .dash-news-info {
    min-width: 140px;
  }

  .dash-news-actions {
    width: 100%;
    justify-content: space-between;
    padding-top: 0.35rem;
    border-top: 1px dashed #f1f5f9;
  }
}

/* ==========================================================================
   PUBLIC WEBSITE ACCESSIBILITY SUITE (A11Y - FLOATING FLYOUT WIDGET)
   ========================================================================== */
.a11y-widget-wrapper {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: auto;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Floating Trigger Button */
.a11y-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 0.95rem;
  background: #0f2b48;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(15, 43, 72, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
}

.a11y-trigger-btn:hover {
  background: #1e40af;
  border-color: #ffffff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.45);
}

.a11y-trigger-btn:active {
  transform: scale(0.96);
}

.a11y-trigger-btn.is-active {
  background: #1e40af;
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.35), 0 8px 24px rgba(30, 64, 175, 0.45);
}

.a11y-trigger-btn svg {
  flex-shrink: 0;
}

.a11y-trigger-label {
  display: inline-block;
}

@media (max-width: 640px) {
  .a11y-widget-wrapper {
    bottom: 1rem;
    right: 1rem;
    left: auto;
  }
  .a11y-trigger-btn {
    padding: 0.65rem;
    border-radius: 50%;
  }
  .a11y-trigger-label {
    display: none;
  }
}

/* Floating Flyout Card Panel (Melayang di atas tombol tanpa backdrop modal) */
.a11y-flyout-card {
  position: absolute;
  bottom: calc(100% + 0.65rem);
  right: 0;
  left: auto;
  width: 330px;
  max-width: calc(100vw - 2rem);
  max-height: min(520px, 78vh);
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 20px 40px -6px rgba(15, 23, 42, 0.22), 0 6px 16px -2px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 999;
}

.a11y-flyout-card.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.a11y-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.a11y-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.a11y-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e40af;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.a11y-card-heading {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.a11y-card-subheading {
  margin: 0.1rem 0 0 0;
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.2;
}

.a11y-card-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.a11y-card-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.a11y-card-body {
  padding: 0.95rem 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.a11y-sec-title {
  margin: 0 0 0.45rem 0;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

/* Language Switcher in A11Y Panel */
.a11y-lang-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

.a11y-lang-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  user-select: none;
  position: relative;
}

.a11y-lang-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.a11y-lang-btn.is-active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  font-weight: 700;
}

.a11y-lang-badge {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.02em;
}

.a11y-lang-btn.is-active .a11y-lang-badge {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.a11y-lang-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.a11y-lang-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.a11y-lang-sub {
  font-size: 0.62rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 1px;
}

.a11y-lang-btn.is-active .a11y-lang-sub {
  color: #3b82f6;
}

.a11y-lang-check {
  margin-left: auto;
  color: #2563eb;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.a11y-lang-btn.is-active .a11y-lang-check {
  opacity: 1;
  transform: scale(1);
}

/* Hide Google Translate top banner, toolbars, popups, and balloon frames completely */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
.skiptranslate:not(#google_translate_element):not(#google_translate_element *),
.VIpgJd-ZVi9od-ORHb-OEVmcb,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-SmfZ-OEVmcb,
.VIpgJd-ZVi9od-vLmrdf,
.VIpgJd-y6EKec-lK3tFb,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf-ti6hGc,
div[id^=":"][id$=".container"],
iframe[id^=":"][id$=".container"],
#goog-gt-tt,
#goog-gt-vt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html, body {
  top: 0px !important;
  position: static !important;
  margin-top: 0px !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* Text Zoom Cards (Perbesar / Perkecil) */
.a11y-text-zoom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
}

.a11y-zoom-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem 0.65rem 0.5rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  color: #0f172a;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  user-select: none;
  position: relative;
  outline: none;
}

.a11y-zoom-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.a11y-zoom-card:active {
  transform: scale(0.97);
}

.a11y-zoom-card.is-active {
  background: #ffffff;
  border: 2px solid #2563eb;
  color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(37, 99, 235, 0.12);
}

.a11y-zoom-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  color: #0f172a;
  transition: color 0.15s ease;
  margin-bottom: 0.35rem;
}

.a11y-zoom-card.is-active .a11y-zoom-icon {
  color: #2563eb;
}

.a11y-zoom-label {
  font-size: 0.76rem;
  font-weight: 750;
  color: inherit;
  line-height: 1.2;
  margin-bottom: 0.45rem;
  white-space: nowrap;
}

/* Stepper Level Indicators (4 Pill Bars) */
.a11y-zoom-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
}

.a11y-step-bar {
  width: 13px;
  height: 3.5px;
  border-radius: 99px;
  background: #e2e8f0;
  transition: all 0.18s ease;
}

.a11y-zoom-card.is-active .a11y-step-bar {
  background: #bfdbfe;
}

.a11y-zoom-card.is-active .a11y-step-bar.is-filled {
  background: #2563eb;
}

.a11y-zoom-card:not(.is-active) .a11y-step-bar.is-filled {
  background: #94a3b8;
}

/* Options Grid */
.a11y-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

.a11y-opt-card {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  user-select: none;
}

.a11y-opt-card.a11y-opt-wide {
  grid-column: span 2;
}

.a11y-opt-card:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.a11y-opt-card.is-active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  font-weight: 700;
}

.a11y-opt-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #475569;
}

.a11y-opt-card.is-active .a11y-opt-icon {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.a11y-opt-name {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Card Footer */
.a11y-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.a11y-card-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  border-radius: 5px;
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.a11y-card-reset-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.a11y-card-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.85rem;
  border-radius: 5px;
  background: #0f2b48;
  color: #ffffff;
  border: none;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.a11y-card-apply-btn:hover {
  background: #1e40af;
}

/* Reading Ruler */
#a11y-reading-ruler {
  position: fixed;
  left: 0;
  right: 0;
  height: 32px;
  background: rgba(245, 158, 11, 0.22);
  border-top: 2px solid #f59e0b;
  border-bottom: 2px solid #f59e0b;
  pointer-events: none;
  z-index: 99999;
  display: none;
  transform: translateY(-50%);
}

html.a11y-ruler-active #a11y-reading-ruler {
  display: block;
}

/* Active A11Y Modifiers on HTML */
html.a11y-text-sm-4 {
  font-size: 10.5px !important;
}

html.a11y-text-sm-3 {
  font-size: 12px !important;
}

html.a11y-text-sm-2 {
  font-size: 13.5px !important;
}

html.a11y-text-sm-1,
html.a11y-text-sm {
  font-size: 14.8px !important;
}

html.a11y-text-md {
  font-size: 16px !important;
}

html.a11y-text-lg-1,
html.a11y-text-lg {
  font-size: 18.5px !important;
}

html.a11y-text-lg-2,
html.a11y-text-xl {
  font-size: 21px !important;
}

html.a11y-text-lg-3,
html.a11y-text-xl-2 {
  font-size: 23.5px !important;
}

html.a11y-text-lg-4,
html.a11y-text-xl-3 {
  font-size: 26px !important;
}

/* High Contrast Mode (Comprehensive Site-Wide & Flyout Accessibility Overhaul) */
html.a11y-contrast,
html.a11y-contrast body,
html.a11y-contrast main,
html.a11y-contrast .inner-page,
html.a11y-contrast .page-content,
html.a11y-contrast .custom-page-content {
  background: #000000 !important;
  color: #ffffff !important;
}

/* Base Headings, Text & Links */
html.a11y-contrast h1,
html.a11y-contrast h2,
html.a11y-contrast h3,
html.a11y-contrast h4,
html.a11y-contrast h5,
html.a11y-contrast h6,
html.a11y-contrast strong,
html.a11y-contrast b {
  color: #fbbf24 !important;
}

html.a11y-contrast p,
html.a11y-contrast span:not(.a11y-size-btn.is-active *):not(.a11y-opt-card.is-active *):not(.hero-btn-primary):not(.pmb-btn-pill-yellow):not(.news-pmb-btn):not(.sidebar-pmb-button):not(.prodi-btn-primary):not(.prodi-check-icon):not(.news-portal-avatar),
html.a11y-contrast li,
html.a11y-contrast dt,
html.a11y-contrast dd,
html.a11y-contrast blockquote,
html.a11y-contrast figcaption {
  color: #ffffff !important;
}

html.a11y-contrast a {
  color: #fbbf24 !important;
}

/* Header, Brand & Navigation */
html.a11y-contrast .site-header {
  background: #000000 !important;
  border-bottom: 2px solid #fbbf24 !important;
}

html.a11y-contrast .brand-title,
html.a11y-contrast .brand-kicker {
  color: #fbbf24 !important;
}

html.a11y-contrast .desktop-nav > a,
html.a11y-contrast .nav-dropdown > summary {
  color: #ffffff !important;
  border: 1px solid transparent !important;
}

html.a11y-contrast .desktop-nav > a:hover,
html.a11y-contrast .nav-dropdown > summary:hover,
html.a11y-contrast .desktop-nav > a.is-active,
html.a11y-contrast .nav-dropdown > summary.is-active {
  background: #fbbf24 !important;
  color: #000000 !important;
  border-color: #fbbf24 !important;
}

html.a11y-contrast .apply-link {
  background: #fbbf24 !important;
  color: #000000 !important;
  border: 2px solid #fbbf24 !important;
  font-weight: 700 !important;
}

html.a11y-contrast .apply-link span {
  color: #000000 !important;
}

html.a11y-contrast .nav-search-btn {
  background: #111827 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .dropdown-panel {
  background: #000000 !important;
  border: 2px solid #fbbf24 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9) !important;
}

html.a11y-contrast .dropdown-item {
  color: #ffffff !important;
  border: 1px solid transparent !important;
}

html.a11y-contrast .dropdown-item-title {
  color: #ffffff !important;
}

html.a11y-contrast .dropdown-item:hover,
html.a11y-contrast .dropdown-item.is-active {
  background: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .dropdown-item:hover .dropdown-item-title,
html.a11y-contrast .dropdown-item.is-active .dropdown-item-title,
html.a11y-contrast .dropdown-item:hover svg,
html.a11y-contrast .dropdown-item.is-active svg {
  color: #000000 !important;
}

html.a11y-contrast .mobile-nav summary {
  background: #111827 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #ffffff !important;
}

html.a11y-contrast .mobile-menu-panel {
  background: #000000 !important;
  border: 2px solid #fbbf24 !important;
}

html.a11y-contrast .mobile-menu-panel a,
html.a11y-contrast .mobile-menu-panel summary {
  color: #ffffff !important;
}

html.a11y-contrast .mobile-search-box input {
  background: #111827 !important;
  color: #ffffff !important;
  border: 1.5px solid #fbbf24 !important;
}

html.a11y-contrast .mobile-search-box button {
  background: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .mobile-cta {
  background: #fbbf24 !important;
  color: #000000 !important;
  border: 2px solid #fbbf24 !important;
  font-weight: 700 !important;
}

html.a11y-contrast .mobile-cta span {
  color: #000000 !important;
}

/* Accessibility Floating Widget & Flyout Card */
html.a11y-contrast .a11y-trigger-btn {
  background: #fbbf24 !important;
  color: #000000 !important;
  border: 2.5px solid #ffffff !important;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4) !important;
}

html.a11y-contrast .a11y-trigger-btn svg,
html.a11y-contrast .a11y-trigger-btn span {
  color: #000000 !important;
  font-weight: 700 !important;
}

html.a11y-contrast .a11y-flyout-card {
  background: #000000 !important;
  border: 2px solid #fbbf24 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95), 0 0 15px rgba(251, 191, 36, 0.3) !important;
}

html.a11y-contrast .a11y-card-header {
  background: #000000 !important;
  border-bottom: 1px solid #374151 !important;
}

html.a11y-contrast .a11y-icon-badge {
  background: #000000 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .a11y-card-heading {
  color: #fbbf24 !important;
}

html.a11y-contrast .a11y-card-subheading {
  color: #d1d5db !important;
}

html.a11y-contrast .a11y-card-close {
  background: #111827 !important;
  border: 1px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .a11y-card-close:hover {
  background: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .a11y-sec-title {
  color: #fbbf24 !important;
  border-bottom: 1px solid #1f2937 !important;
}

html.a11y-contrast .a11y-lang-btn {
  background: #111827 !important;
  border: 1.5px solid #374151 !important;
  color: #ffffff !important;
}

html.a11y-contrast .a11y-lang-badge {
  background: #000000 !important;
  border: 1px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .a11y-lang-name {
  color: #ffffff !important;
}

html.a11y-contrast .a11y-lang-sub {
  color: #9ca3af !important;
}

html.a11y-contrast .a11y-lang-btn:hover {
  border-color: #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .a11y-lang-btn.is-active {
  background: #fbbf24 !important;
  border-color: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .a11y-lang-btn.is-active .a11y-lang-name {
  color: #000000 !important;
  font-weight: 700 !important;
}

html.a11y-contrast .a11y-lang-btn.is-active .a11y-lang-sub {
  color: #000000 !important;
}

html.a11y-contrast .a11y-lang-btn.is-active .a11y-lang-badge {
  background: #000000 !important;
  border-color: #000000 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .a11y-lang-btn.is-active .a11y-lang-check {
  color: #000000 !important;
}

html.a11y-contrast .a11y-zoom-card {
  background: #111827 !important;
  border: 1.5px solid #374151 !important;
  color: #ffffff !important;
}

html.a11y-contrast .a11y-zoom-icon {
  color: #ffffff !important;
}

html.a11y-contrast .a11y-zoom-card:hover {
  border-color: #fbbf24 !important;
}

html.a11y-contrast .a11y-zoom-card.is-active {
  background: #000000 !important;
  border: 2px solid #fbbf24 !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.3) !important;
}

html.a11y-contrast .a11y-zoom-card.is-active .a11y-zoom-icon {
  color: #fbbf24 !important;
}

html.a11y-contrast .a11y-step-bar {
  background: #374151 !important;
}

html.a11y-contrast .a11y-zoom-card.is-active .a11y-step-bar {
  background: #78350f !important;
}

html.a11y-contrast .a11y-zoom-card.is-active .a11y-step-bar.is-filled {
  background: #fbbf24 !important;
}

html.a11y-contrast .a11y-opt-card {
  background: #111827 !important;
  border: 1.5px solid #374151 !important;
  color: #ffffff !important;
}

html.a11y-contrast .a11y-opt-icon {
  background: #000000 !important;
  border: 1px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .a11y-opt-name {
  color: #ffffff !important;
}

html.a11y-contrast .a11y-opt-card:hover {
  border-color: #fbbf24 !important;
}

html.a11y-contrast .a11y-opt-card.is-active {
  background: #fbbf24 !important;
  border-color: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .a11y-opt-card.is-active .a11y-opt-name {
  color: #000000 !important;
  font-weight: 700 !important;
}

html.a11y-contrast .a11y-opt-card.is-active .a11y-opt-icon {
  background: #000000 !important;
  border-color: #000000 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .a11y-card-footer {
  background: #000000 !important;
  border-top: 1px solid #374151 !important;
}

html.a11y-contrast .a11y-card-reset-btn {
  background: #111827 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #ffffff !important;
}

html.a11y-contrast .a11y-card-reset-btn:hover {
  background: #374151 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .a11y-card-apply-btn {
  background: #fbbf24 !important;
  color: #000000 !important;
  border: 1.5px solid #fbbf24 !important;
  font-weight: 700 !important;
}

html.a11y-contrast .a11y-card-apply-btn:hover {
  background: #f59e0b !important;
}

/* Search Modal */
html.a11y-contrast .search-modal-backdrop {
  background: rgba(0, 0, 0, 0.88) !important;
}

html.a11y-contrast .search-modal-dialog {
  background: #000000 !important;
  border: 2px solid #fbbf24 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9) !important;
}

html.a11y-contrast .search-modal-header {
  border-bottom: 1px solid #374151 !important;
}

html.a11y-contrast .search-input-wrapper input {
  background: #111827 !important;
  color: #ffffff !important;
  border: 1.5px solid #fbbf24 !important;
}

html.a11y-contrast .search-input-wrapper svg {
  color: #fbbf24 !important;
}

html.a11y-contrast .search-close-btn {
  background: #111827 !important;
  border: 1px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .suggestion-heading {
  color: #fbbf24 !important;
}

html.a11y-contrast .suggestion-tags a {
  background: #111827 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #ffffff !important;
}

html.a11y-contrast .suggestion-tags a:hover {
  background: #fbbf24 !important;
  color: #000000 !important;
}

/* Hero Section & Actions */
html.a11y-contrast .hero-slide {
  border-bottom: 2px solid #fbbf24 !important;
}

html.a11y-contrast .hero-overlay {
  background: rgba(0, 0, 0, 0.85) !important;
}

html.a11y-contrast .hero-title {
  color: #fbbf24 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}

html.a11y-contrast .hero-subtitle {
  color: #ffffff !important;
}

html.a11y-contrast .hero-btn-primary {
  background: #fbbf24 !important;
  color: #000000 !important;
  border: 2px solid #fbbf24 !important;
  font-weight: 700 !important;
}

html.a11y-contrast .hero-btn-secondary {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #fbbf24 !important;
}

html.a11y-contrast .hero-btn-secondary:hover {
  background: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .hero-arrow {
  background: #000000 !important;
  border: 2px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .hero-arrow:hover {
  background: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .hero-dot {
  background: #374151 !important;
  border: 1px solid #fbbf24 !important;
}

html.a11y-contrast .hero-dot.is-active {
  background: #fbbf24 !important;
}

/* Hero Stats Section */
html.a11y-contrast .hero-stats-section {
  background: #000000 !important;
}

html.a11y-contrast .hero-stat-card {
  background: #0b1120 !important;
  border: 2px solid #fbbf24 !important;
}

html.a11y-contrast .hero-stat-icon {
  background: #000000 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .hero-stat-value {
  color: #fbbf24 !important;
}

html.a11y-contrast .hero-stat-label {
  color: #ffffff !important;
}

/* Prodi About Section */
html.a11y-contrast .prodi-about-section {
  background: #000000 !important;
}

html.a11y-contrast .prodi-badge-pill {
  background: #000000 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .prodi-about-title,
html.a11y-contrast .text-accent {
  color: #fbbf24 !important;
}

html.a11y-contrast .prodi-about-lead {
  color: #ffffff !important;
}

html.a11y-contrast .prodi-check-item {
  color: #ffffff !important;
}

html.a11y-contrast .prodi-check-icon {
  background: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .prodi-btn-primary {
  background: #fbbf24 !important;
  color: #000000 !important;
  border: 2px solid #fbbf24 !important;
  font-weight: 700 !important;
}

html.a11y-contrast .prodi-btn-primary span,
html.a11y-contrast .prodi-btn-primary svg {
  color: #000000 !important;
}

html.a11y-contrast .prodi-btn-secondary {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #fbbf24 !important;
}

html.a11y-contrast .prodi-btn-secondary:hover {
  background: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .prodi-btn-secondary span {
  color: inherit !important;
}

html.a11y-contrast .prodi-visual-wrapper {
  border: 2px solid #fbbf24 !important;
}

/* Flagship Media Section (Program Unggulan) */
html.a11y-contrast .flagship-media-section {
  background: #000000 !important;
}

html.a11y-contrast .flagship-eyebrow,
html.a11y-contrast #flagship-section-heading {
  color: #fbbf24 !important;
}

html.a11y-contrast .flagship-lead {
  color: #ffffff !important;
}

html.a11y-contrast .flagship-media-item {
  background: #0b1120 !important;
  border: 2px solid #fbbf24 !important;
}

html.a11y-contrast .flagship-mini-badge {
  background: #000000 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .flagship-media-title {
  color: #fbbf24 !important;
}

html.a11y-contrast .flagship-media-desc {
  color: #ffffff !important;
}

html.a11y-contrast .micro-tag {
  background: #1f2937 !important;
  border: 1px solid #fbbf24 !important;
  color: #ffffff !important;
}

html.a11y-contrast .flagship-media-link {
  color: #fbbf24 !important;
}

html.a11y-contrast .flagship-media-link span,
html.a11y-contrast .flagship-media-link svg {
  color: #fbbf24 !important;
}

/* PMB Showcase Card & Features */
html.a11y-contrast .pmb-showcase-card {
  background: #0b1120 !important;
  border: 2px solid #fbbf24 !important;
}

html.a11y-contrast .pmb-pill-badge {
  background: #000000 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .pmb-showcase-title {
  color: #ffffff !important;
}

html.a11y-contrast .pmb-title-blue,
html.a11y-contrast .pmb-title-highlight {
  color: #fbbf24 !important;
}

html.a11y-contrast .pmb-btn-pill-gray {
  background: #000000 !important;
  border: 2px solid #fbbf24 !important;
  color: #ffffff !important;
}

html.a11y-contrast .pmb-btn-pill-gray:hover {
  background: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .pmb-btn-pill-gray span {
  color: inherit !important;
}

html.a11y-contrast .pmb-btn-pill-yellow {
  background: #fbbf24 !important;
  border: 2px solid #fbbf24 !important;
  color: #000000 !important;
  font-weight: 700 !important;
}

html.a11y-contrast .pmb-btn-pill-yellow span,
html.a11y-contrast .pmb-btn-pill-yellow svg {
  color: #000000 !important;
}

html.a11y-contrast .pmb-feature-item {
  background: #000000 !important;
  border: 1px solid #fbbf24 !important;
}

html.a11y-contrast .pmb-feature-icon {
  color: #fbbf24 !important;
}

html.a11y-contrast .pmb-feature-label {
  color: #ffffff !important;
}

html.a11y-contrast .pmb-image-container {
  border: 2px solid #fbbf24 !important;
}

/* News Portal Section (Home) */
html.a11y-contrast .news-portal-section {
  background: #000000 !important;
}

html.a11y-contrast .news-portal-header-icon,
html.a11y-contrast .news-portal-header-title {
  color: #fbbf24 !important;
}

html.a11y-contrast .news-portal-nav-btn {
  background: #000000 !important;
  border: 2px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .news-portal-nav-btn:hover {
  background: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .news-portal-card,
html.a11y-contrast .archive-card,
html.a11y-contrast .news-card {
  background: #0b1120 !important;
  border: 2px solid #fbbf24 !important;
}

html.a11y-contrast .news-portal-badge,
html.a11y-contrast .news-category {
  background: #000000 !important;
  border: 1px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .news-portal-date,
html.a11y-contrast .news-meta-date {
  color: #cbd5e1 !important;
}

html.a11y-contrast .news-portal-card-title a,
html.a11y-contrast .archive-card-title a {
  color: #fbbf24 !important;
}

html.a11y-contrast .news-portal-card-title a:hover,
html.a11y-contrast .archive-card-title a:hover {
  color: #ffffff !important;
}

html.a11y-contrast .news-portal-excerpt,
html.a11y-contrast .archive-card-excerpt {
  color: #ffffff !important;
}

html.a11y-contrast .news-portal-avatar {
  background: #fbbf24 !important;
  color: #000000 !important;
  font-weight: 700 !important;
}

html.a11y-contrast .news-portal-author-name {
  color: #ffffff !important;
}

html.a11y-contrast .news-portal-btn-baca {
  background: #000000 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .news-portal-btn-baca:hover {
  background: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .news-portal-btn-all {
  background: #000000 !important;
  border: 2px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .news-portal-btn-all:hover {
  background: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .news-portal-btn-all span {
  color: inherit !important;
}

/* Testimonials & Partnerships */
html.a11y-contrast .testimonials-section,
html.a11y-contrast .partnerships-section {
  background: #000000 !important;
}

html.a11y-contrast .testimonials-title,
html.a11y-contrast .partnerships-title {
  color: #fbbf24 !important;
}

html.a11y-contrast .testimonials-lead,
html.a11y-contrast .partnerships-lead {
  color: #ffffff !important;
}

html.a11y-contrast .testimonial-card {
  background: #0b1120 !important;
  border: 2px solid #fbbf24 !important;
}

html.a11y-contrast .testimonial-quote-icon {
  color: #fbbf24 !important;
}

html.a11y-contrast .testimonial-quote {
  color: #ffffff !important;
}

html.a11y-contrast .testimonial-name {
  color: #fbbf24 !important;
}

html.a11y-contrast .testimonial-role {
  color: #cbd5e1 !important;
}

html.a11y-contrast .testimonial-avatar {
  border: 2px solid #fbbf24 !important;
}

html.a11y-contrast .testimonial-dot {
  background: #374151 !important;
  border: 1px solid #fbbf24 !important;
}

html.a11y-contrast .testimonial-dot.is-active {
  background: #fbbf24 !important;
}

html.a11y-contrast .partner-item {
  background: #ffffff !important;
  border: 2px solid #fbbf24 !important;
  border-radius: 8px;
  padding: 6px;
}

/* News Detail Page Components (2-Column Layout) */
html.a11y-contrast .news-breadcrumb-bar {
  background: #0b1120 !important;
  border: 1px solid #fbbf24 !important;
}

html.a11y-contrast .news-breadcrumb-link {
  color: #fbbf24 !important;
}

html.a11y-contrast .news-breadcrumb-sep {
  color: #6b7280 !important;
}

html.a11y-contrast .news-breadcrumb-current {
  color: #ffffff !important;
}

html.a11y-contrast .news-back-to-archive {
  background: #000000 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .news-back-to-archive:hover {
  background: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .news-article-sheet {
  background: #0b1120 !important;
  border: 2px solid #fbbf24 !important;
}

html.a11y-contrast .news-category-badge {
  background: #000000 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .news-article-title {
  color: #fbbf24 !important;
}

html.a11y-contrast .news-article-meta-bar {
  border-top: 1px solid #374151 !important;
  border-bottom: 1px solid #374151 !important;
}

html.a11y-contrast .news-author-avatar {
  background: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .news-author-name {
  color: #fbbf24 !important;
}

html.a11y-contrast .news-author-role {
  color: #cbd5e1 !important;
}

html.a11y-contrast .news-meta-item {
  color: #ffffff !important;
}

html.a11y-contrast .news-meta-dot {
  color: #fbbf24 !important;
}

html.a11y-contrast .news-share-pill {
  background: #000000 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .news-share-pill:hover {
  background: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .news-featured-figure {
  border: 2px solid #fbbf24 !important;
}

html.a11y-contrast .news-featured-caption {
  background: #000000 !important;
  border-top: 1px solid #fbbf24 !important;
  color: #ffffff !important;
}

html.a11y-contrast .news-lead-quote {
  background: #000000 !important;
  border-left: 4px solid #fbbf24 !important;
  color: #ffffff !important;
}

html.a11y-contrast .news-lead-quote p {
  color: #ffffff !important;
}

html.a11y-contrast .news-rich-body p {
  color: #ffffff !important;
}

html.a11y-contrast .news-article-taxonomy-footer {
  border-top: 1px solid #374151 !important;
}

html.a11y-contrast .news-tax-label {
  color: #fbbf24 !important;
}

html.a11y-contrast .news-tag-item {
  background: #000000 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .news-tag-item:hover {
  background: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .news-article-bottom-panel {
  background: #000000 !important;
  border: 2px solid #fbbf24 !important;
}

html.a11y-contrast .news-share-box {
  border-bottom: 1px solid #374151 !important;
}

html.a11y-contrast .news-share-title-wrap {
  color: #fbbf24 !important;
}

html.a11y-contrast .news-share-action-btn {
  background: #0b1120 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #ffffff !important;
}

html.a11y-contrast .news-share-action-btn:hover {
  background: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .news-editorial-trust-box {
  background: #000000 !important;
  color: #ffffff !important;
}

html.a11y-contrast .trust-icon {
  background: #0b1120 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .trust-text strong {
  color: #fbbf24 !important;
}

html.a11y-contrast .trust-text p {
  color: #ffffff !important;
}

html.a11y-contrast .news-pmb-cta-card {
  background: #0b1120 !important;
  border: 2px solid #fbbf24 !important;
}

html.a11y-contrast .news-pmb-kicker {
  color: #fbbf24 !important;
}

html.a11y-contrast .news-pmb-title {
  color: #ffffff !important;
}

html.a11y-contrast .news-pmb-desc {
  color: #cbd5e1 !important;
}

html.a11y-contrast .news-pmb-btn {
  background: #fbbf24 !important;
  color: #000000 !important;
  border: 2px solid #fbbf24 !important;
  font-weight: 700 !important;
}

html.a11y-contrast .news-pmb-btn span,
html.a11y-contrast .news-pmb-btn svg {
  color: #000000 !important;
}

/* News Detail Sidebar */
html.a11y-contrast .news-sidebar-widget {
  background: #0b1120 !important;
  border: 2px solid #fbbf24 !important;
}

html.a11y-contrast .news-sidebar-kicker,
html.a11y-contrast .sidebar-pmb-kicker {
  color: #fbbf24 !important;
}

html.a11y-contrast .news-sidebar-title,
html.a11y-contrast .sidebar-pmb-title,
html.a11y-contrast .sidebar-links-title {
  color: #fbbf24 !important;
}

html.a11y-contrast .news-sidebar-more-link {
  color: #fbbf24 !important;
}

html.a11y-contrast .news-sidebar-card {
  background: #000000 !important;
  border: 1.5px solid #fbbf24 !important;
}

html.a11y-contrast .news-sidebar-badge {
  background: #000000 !important;
  border: 1px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .news-sidebar-date {
  color: #cbd5e1 !important;
}

html.a11y-contrast .news-sidebar-heading a {
  color: #fbbf24 !important;
}

html.a11y-contrast .news-sidebar-heading a:hover {
  color: #ffffff !important;
}

html.a11y-contrast .sidebar-pmb-box {
  background: #000000 !important;
  border: 2px solid #fbbf24 !important;
}

html.a11y-contrast .sidebar-pmb-text {
  color: #ffffff !important;
}

html.a11y-contrast .sidebar-pmb-button {
  background: #fbbf24 !important;
  color: #000000 !important;
  border: 2px solid #fbbf24 !important;
  font-weight: 700 !important;
}

html.a11y-contrast .sidebar-pmb-button span,
html.a11y-contrast .sidebar-pmb-button svg {
  color: #000000 !important;
}

html.a11y-contrast .sidebar-links-list li a {
  background: #000000 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #ffffff !important;
}

html.a11y-contrast .sidebar-links-list li a:hover {
  background: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .sidebar-links-list li a svg {
  color: #fbbf24 !important;
}

html.a11y-contrast .sidebar-links-list li a:hover svg {
  color: #000000 !important;
}

/* Faculty, Page & Data Tables */
html.a11y-contrast .faculty-business-card,
html.a11y-contrast .executive-card,
html.a11y-contrast .faculty-card,
html.a11y-contrast .lecturer-card,
html.a11y-contrast .curriculum-card {
  background: #0b1120 !important;
  border: 2px solid #fbbf24 !important;
}

html.a11y-contrast .biz-card-top-stripe {
  background: #fbbf24 !important;
}

html.a11y-contrast .biz-inst-name,
html.a11y-contrast .biz-role-tag,
html.a11y-contrast .biz-person-name {
  color: #fbbf24 !important;
}

html.a11y-contrast .biz-inst-dept,
html.a11y-contrast .biz-person-degree,
html.a11y-contrast .biz-desc-text {
  color: #ffffff !important;
}

html.a11y-contrast .biz-card-badge {
  background: #000000 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .biz-photo-frame {
  border: 2px solid #fbbf24 !important;
}

html.a11y-contrast .biz-cred-item {
  background: #000000 !important;
  border: 1.5px solid #fbbf24 !important;
}

html.a11y-contrast .biz-cred-label {
  color: #cbd5e1 !important;
}

html.a11y-contrast .biz-cred-value {
  color: #fbbf24 !important;
}

html.a11y-contrast .biz-action-btn.primary {
  background: #fbbf24 !important;
  color: #000000 !important;
  border: 2px solid #fbbf24 !important;
  font-weight: 700 !important;
}

html.a11y-contrast .section-nav {
  background: #0b1120 !important;
  border: 2px solid #fbbf24 !important;
}

html.a11y-contrast .section-nav p {
  color: #fbbf24 !important;
}

html.a11y-contrast .section-nav nav a {
  color: #ffffff !important;
  border: 1px solid transparent !important;
}

html.a11y-contrast .section-nav nav a:hover,
html.a11y-contrast .section-nav nav a[aria-current="page"] {
  background: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast table,
html.a11y-contrast .data-table,
html.a11y-contrast .curriculum-table {
  background: #000000 !important;
  border: 2px solid #fbbf24 !important;
  color: #ffffff !important;
}

html.a11y-contrast th {
  background: #111827 !important;
  color: #fbbf24 !important;
  border: 1px solid #fbbf24 !important;
}

html.a11y-contrast td {
  border: 1px solid #374151 !important;
  color: #ffffff !important;
}

html.a11y-contrast tr:nth-child(even) {
  background: #0b1120 !important;
}

html.a11y-contrast .accreditation-badge,
html.a11y-contrast .stat-pill,
html.a11y-contrast .status-badge {
  background: #000000 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

/* Footer */
html.a11y-contrast .site-footer {
  background: #000000 !important;
  border-top: 2px solid #fbbf24 !important;
  color: #ffffff !important;
}

html.a11y-contrast .footer-col-title,
html.a11y-contrast .footer-unit-title,
html.a11y-contrast .footer-parent-title {
  color: #fbbf24 !important;
}

html.a11y-contrast .footer-nav-list a,
html.a11y-contrast .footer-motto,
html.a11y-contrast .footer-contact-item {
  color: #ffffff !important;
}

html.a11y-contrast .footer-contact-item a {
  color: #fbbf24 !important;
}

html.a11y-contrast .footer-social-btn {
  background: #000000 !important;
  border: 1.5px solid #fbbf24 !important;
  color: #fbbf24 !important;
}

html.a11y-contrast .footer-social-btn:hover {
  background: #fbbf24 !important;
  color: #000000 !important;
}

html.a11y-contrast .footer-bottom-bar {
  background: #000000 !important;
  border-top: 1px solid #374151 !important;
  color: #cbd5e1 !important;
}

html.a11y-contrast .footer-bottom-links span {
  color: #ffffff !important;
}

/* Grayscale */
html.a11y-grayscale {
  filter: grayscale(100%) !important;
}

/* Invert Colors */
html.a11y-invert {
  filter: invert(100%) hue-rotate(180deg) !important;
}

html.a11y-invert img,
html.a11y-invert video,
html.a11y-invert picture,
html.a11y-invert svg:not(.a11y-keep-invert),
html.a11y-invert [style*="background-image"] {
  filter: invert(100%) hue-rotate(180deg) !important;
}

/* Dyslexia-Friendly Font */
html.a11y-dyslexia,
html.a11y-dyslexia * {
  font-family: 'Comic Sans MS', 'Trebuchet MS', 'Arial', sans-serif !important;
  letter-spacing: 0.05em !important;
  line-height: 1.8 !important;
}

/* Highlight Links */
html.a11y-links a {
  text-decoration: underline 2.5px !important;
  text-underline-offset: 4px !important;
  outline: 2px dashed #f59e0b !important;
  outline-offset: 3px !important;
  background: rgba(245, 158, 11, 0.15) !important;
}

/* Text Spacing */
html.a11y-spacing * {
  letter-spacing: 0.08em !important;
  word-spacing: 0.16em !important;
  line-height: 2 !important;
}

/* Pause Animations */
html.a11y-no-anim *,
html.a11y-no-anim *::before,
html.a11y-no-anim *::after {
  animation-duration: 0.001s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001s !important;
  scroll-behavior: auto !important;
}

/* Big Cursor */
html.a11y-cursor,
html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='%230f2b48' stroke='%23ffffff' stroke-width='1.8'%3E%3Cpath d='M3 3l7 18 3-7 7-3L3 3z'/%3E%3C/svg%3E"), default !important;
}

/* ==========================================================================
   ULTIMATE DARK MODE THEME SUITE (100% Comprehensive Coverage)
   ========================================================================== */
html[data-theme="dark"] {
  --navy-950: #ffffff;
  --navy-900: #93c5fd;
  --navy-800: #60a5fa;
  --blue-50: #1e293b;
  --gold-700: #f59e0b;
  --gold-600: #fbbf24;
  --paper: #090d16;
  --surface: #0f172a;
  --surface-muted: #141d32;
  --ink: #ffffff;
  --muted: #cbd5e1;
  --line: #1e293b;
  color-scheme: dark;
}

/* Global Background & Base Text */
html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] body.admin-body,
html[data-theme="dark"] .admin-page,
html[data-theme="dark"] .admin-shell,
html[data-theme="dark"] .admin-main,
html[data-theme="dark"] .admin-content {
  background: #090d16 !important;
  color: #ffffff !important;
}

/* Topbar & Header */
html[data-theme="dark"] .admin-topbar {
  background: #0f172a !important;
  border-bottom: 1px solid #1e293b !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .admin-topbar-status-badge {
  background: rgba(34, 197, 94, 0.2) !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
  color: #86efac !important;
}

html[data-theme="dark"] .admin-topbar-unit-label {
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-topbar-actions {
  gap: 0.625rem;
}

html[data-theme="dark"] .admin-topbar-btn,
html[data-theme="dark"] .admin-view-site-btn,
html[data-theme="dark"] .admin-theme-toggle-btn,
html[data-theme="dark"] .admin-sidebar-toggle-btn {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .admin-topbar-btn:hover,
html[data-theme="dark"] .admin-view-site-btn:hover,
html[data-theme="dark"] .admin-theme-toggle-btn:hover,
html[data-theme="dark"] .admin-sidebar-toggle-btn:hover {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .admin-user-profile-chip {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .admin-user-name {
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-role-badge.is-editor {
  background: #334155 !important;
  border: 1px solid #475569 !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-role-badge.is-super {
  background: rgba(37, 99, 235, 0.25) !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
  color: #93c5fd !important;
}

html[data-theme="dark"] .admin-logout-btn {
  background: rgba(225, 29, 72, 0.14) !important;
  border: 1px solid rgba(225, 29, 72, 0.35) !important;
  color: #fb7185 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .admin-logout-btn:hover {
  background: #e11d48 !important;
  border-color: #e11d48 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.45) !important;
}

/* Sidebar */
html[data-theme="dark"] .admin-sidebar {
  background: #0b1120 !important;
  border-right: 1px solid #1e293b !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-brand-name {
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-brand-sub {
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-sidebar-footer {
  border-top: 1px solid #1e293b !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-system-pulse {
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-sidebar-copy {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-nav-item,
html[data-theme="dark"] .admin-nav-dropdown-btn,
html[data-theme="dark"] .admin-nav-sub-item {
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-nav-icon svg,
html[data-theme="dark"] .admin-nav-sub-icon svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

html[data-theme="dark"] .admin-nav-item:hover,
html[data-theme="dark"] .admin-nav-dropdown-btn:hover,
html[data-theme="dark"] .admin-nav-sub-item:hover {
  background: #1e293b !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-nav-item.is-active,
html[data-theme="dark"] .admin-nav-sub-item.is-active {
  background: rgba(37, 99, 235, 0.3) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Typography & Universal White Text in Dark Mode
   ========================================================================== */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] strong,
html[data-theme="dark"] b,
html[data-theme="dark"] dt,
html[data-theme="dark"] th,
html[data-theme="dark"] td,
html[data-theme="dark"] p,
html[data-theme="dark"] span:not(.dash-stat-badge):not(.admin-status):not(.badge-info):not(.badge-success):not(.badge-warning):not(.badge-danger):not(.badge-purple):not(.admin-role-badge):not(.dash-chip):not(.dash-env-secure-pill),
html[data-theme="dark"] small,
html[data-theme="dark"] li,
html[data-theme="dark"] dd,
html[data-theme="dark"] label,
html[data-theme="dark"] .form-label,
html[data-theme="dark"] .admin-field label,
html[data-theme="dark"] .admin-page-heading h1,
html[data-theme="dark"] .admin-page-heading p,
html[data-theme="dark"] .admin-table-card-title,
html[data-theme="dark"] .admin-table-card-subtitle,
html[data-theme="dark"] .admin-card-title,
html[data-theme="dark"] .admin-panel h2,
html[data-theme="dark"] .admin-panel-heading h2,
html[data-theme="dark"] .admin-editor-card-heading h2,
html[data-theme="dark"] .dash-hero-title,
html[data-theme="dark"] .dash-hero-desc,
html[data-theme="dark"] .dash-section-title,
html[data-theme="dark"] .dash-section-subtitle,
html[data-theme="dark"] .dash-panel-heading,
html[data-theme="dark"] .dash-panel-sub,
html[data-theme="dark"] .dash-stat-number,
html[data-theme="dark"] .dash-stat-label,
html[data-theme="dark"] .dash-stat-detail,
html[data-theme="dark"] .dash-news-title,
html[data-theme="dark"] .dash-news-title a,
html[data-theme="dark"] .dash-news-meta,
html[data-theme="dark"] .dash-news-meta span,
html[data-theme="dark"] .admin-news-title-link,
html[data-theme="dark"] .admin-brand-name,
html[data-theme="dark"] .admin-brand-sub,
html[data-theme="dark"] .admin-user-name,
html[data-theme="dark"] .admin-field-help,
html[data-theme="dark"] .admin-field-hint,
html[data-theme="dark"] .dash-progress-labels span,
html[data-theme="dark"] .dash-progress-labels strong,
html[data-theme="dark"] .dash-side-heading,
html[data-theme="dark"] .dash-quick-item,
html[data-theme="dark"] .quick-item-label,
html[data-theme="dark"] .dash-env-tag,
html[data-theme="dark"] .env-item span,
html[data-theme="dark"] .env-item strong,
html[data-theme="dark"] .custom-page-header :is(h1, h2, h3, p, span),
html[data-theme="dark"] .page-markup :is(h1, h2, h3, h4, h5, h6, p, li, strong, b, span) {
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-kicker {
  color: #60a5fa !important;
}

/* ALL Tables, Rows, Cells, Wrappers (Zero White Tables!) */
html[data-theme="dark"] .admin-table-card,
html[data-theme="dark"] .admin-table-scroll,
html[data-theme="dark"] .admin-table-wrap,
html[data-theme="dark"] .admin-table,
html[data-theme="dark"] .admin-table-news,
html[data-theme="dark"] table {
  background: #0f172a !important;
  border-color: #1e293b !important;
}

html[data-theme="dark"] .admin-table-card-header {
  background: #0f172a !important;
  border-bottom: 1px solid #1e293b !important;
}

html[data-theme="dark"] .admin-table-search-input {
  background: #182234 !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-table-search-input:focus {
  border-color: #38bdf8 !important;
  background: #1e293b !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

html[data-theme="dark"] .admin-table-search-input::placeholder {
  color: #64748b !important;
}

html[data-theme="dark"] .admin-table-search-box svg {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .admin-table thead,
html[data-theme="dark"] .admin-table thead tr,
html[data-theme="dark"] table thead,
html[data-theme="dark"] table thead tr {
  background: #182234 !important;
}

html[data-theme="dark"] .admin-table th,
html[data-theme="dark"] table th {
  background: #182234 !important;
  color: #ffffff !important;
  border-bottom: 1px solid #1e293b !important;
}

html[data-theme="dark"] .admin-table tbody,
html[data-theme="dark"] table tbody {
  background: #0f172a !important;
}

html[data-theme="dark"] .admin-table tbody tr,
html[data-theme="dark"] table tbody tr {
  background: #0f172a !important;
}

html[data-theme="dark"] .admin-table tbody tr:hover,
html[data-theme="dark"] table tbody tr:hover {
  background: #141d32 !important;
}

html[data-theme="dark"] .admin-table td,
html[data-theme="dark"] table td {
  background: transparent !important;
  color: #ffffff !important;
  border-bottom: 1px solid #1e293b !important;
}

html[data-theme="dark"] .admin-news-title-link {
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-news-title-link:hover {
  color: #60a5fa !important;
}

html[data-theme="dark"] .admin-news-slug {
  background: #182234 !important;
  border: 1px solid #334155 !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-news-date {
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-news-cover-wrap {
  background: #1e293b !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .admin-news-cover-empty {
  background: #182234 !important;
  color: #cbd5e1 !important;
}

/* ==========================================================================
   Dashboard Hero, Stat Cards, Vivid Icons & Watermarks
   ========================================================================== */
html[data-theme="dark"] .dash-hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #172554 100%) !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .dash-hero-badge-main {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

html[data-theme="dark"] .dash-hero-badge-main span {
  color: #ffffff !important;
}

html[data-theme="dark"] .dash-chip {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .dash-chip.chip-success {
  background: rgba(34, 197, 94, 0.2) !important;
  border-color: rgba(34, 197, 94, 0.35) !important;
  color: #86efac !important;
}

html[data-theme="dark"] .dash-sync-badge {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #34d399 !important;
}

/* Stat Cards */
html[data-theme="dark"] .dash-stat-card {
  background: #0f172a !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .dash-stat-card:hover {
  background: #141d32 !important;
  border-color: var(--card-accent, #3b82f6) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(59, 130, 246, 0.25) !important;
}

/* Card Accent Bar Glow */
html[data-theme="dark"] .dash-stat-accent-bar {
  box-shadow: 0 0 10px var(--card-accent, #3b82f6) !important;
}

/* Stat Card Watermark Icons: High Visibility & Crisp */
html[data-theme="dark"] .dash-stat-watermark {
  opacity: 0.28 !important;
  color: var(--card-accent, #60a5fa) !important;
  filter: drop-shadow(0 0 8px var(--card-accent, #3b82f6)) !important;
}

html[data-theme="dark"] .dash-stat-card:hover .dash-stat-watermark {
  opacity: 0.5 !important;
  transform: scale(1.12) rotate(-4deg);
}

/* Stat Card Icon Boxes: Bright, Glowing & High Contrast */
html[data-theme="dark"] .dash-stat-icon-wrap {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1.5px solid var(--card-accent, #60a5fa) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.12), 0 0 10px var(--card-accent, rgba(96, 165, 250, 0.3)) !important;
}

html[data-theme="dark"] .dash-stat-icon-wrap svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

html[data-theme="dark"] .dash-stat-card:hover .dash-stat-icon-wrap {
  background: var(--card-accent, #2563eb) !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 20px var(--card-accent, #3b82f6) !important;
}

/* Stat Card Badges */
html[data-theme="dark"] .dash-stat-badge {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Stat Card Arrow */
html[data-theme="dark"] .dash-stat-arrow {
  color: #ffffff !important;
  font-weight: 800 !important;
}

html[data-theme="dark"] .dash-stat-card:hover .dash-stat-arrow {
  color: var(--card-accent, #60a5fa) !important;
}

/* ==========================================================================
   Dashboard Panels & News Feed
   ========================================================================== */
html[data-theme="dark"] .dash-panel,
html[data-theme="dark"] .dash-panel-news,
html[data-theme="dark"] .dash-panel-side {
  background: #0f172a !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .dash-panel-header {
  background: #0f172a !important;
  border-bottom: 1px solid #1e293b !important;
}

html[data-theme="dark"] .dash-panel-icon-wrap {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .dash-panel-icon-wrap svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

html[data-theme="dark"] .dash-panel-link {
  color: #60a5fa !important;
}

html[data-theme="dark"] .dash-panel-link:hover {
  color: #93c5fd !important;
}

html[data-theme="dark"] .dash-news-item {
  border-bottom: 1px solid #1e293b !important;
}

html[data-theme="dark"] .dash-news-item:hover {
  background: #141d32 !important;
}

html[data-theme="dark"] .dash-news-title a {
  color: #ffffff !important;
  font-weight: 650 !important;
}

html[data-theme="dark"] .dash-news-title a:hover {
  color: #60a5fa !important;
  text-decoration: underline !important;
}

html[data-theme="dark"] .dash-news-meta,
html[data-theme="dark"] .dash-news-meta span {
  color: #ffffff !important;
}

html[data-theme="dark"] .dash-news-cat {
  color: #60a5fa !important;
  font-weight: 700 !important;
}

html[data-theme="dark"] .dash-meta-dot {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .dash-news-thumb-fallback {
  background: #1e293b !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .dash-btn-mini {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .dash-btn-mini:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .dash-side-block {
  border-top: 1px solid #1e293b !important;
}

html[data-theme="dark"] .dash-progress-track {
  background: #1e293b !important;
}

html[data-theme="dark"] .pub-stat-box.pub-box-success {
  background: rgba(34, 197, 94, 0.2) !important;
  border: 1px solid rgba(34, 197, 94, 0.4) !important;
}

html[data-theme="dark"] .pub-stat-box.pub-box-success dt {
  color: #86efac !important;
}

html[data-theme="dark"] .pub-stat-box.pub-box-success dd {
  color: #ffffff !important;
}

html[data-theme="dark"] .pub-stat-box.pub-box-warning {
  background: rgba(245, 158, 11, 0.2) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
}

html[data-theme="dark"] .pub-stat-box.pub-box-warning dt {
  color: #fde047 !important;
}

html[data-theme="dark"] .pub-stat-box.pub-box-warning dd {
  color: #ffffff !important;
}

/* Quick Action Items */
html[data-theme="dark"] .dash-quick-item {
  background: #141d32 !important;
  border: 1px solid #1e293b !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .dash-quick-item:hover {
  background: #1e293b !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .quick-icon-dot {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

html[data-theme="dark"] .quick-icon-dot svg {
  stroke: #ffffff !important;
}

html[data-theme="dark"] .quick-item-label {
  color: #ffffff !important;
}

html[data-theme="dark"] .quick-item-arr {
  color: #60a5fa !important;
}

html[data-theme="dark"] .dash-env-secure-pill {
  background: rgba(34, 197, 94, 0.2) !important;
  border-color: rgba(34, 197, 94, 0.35) !important;
  color: #86efac !important;
}

html[data-theme="dark"] .env-item {
  background: #141d32 !important;
  border: 1px solid #1e293b !important;
}

/* ==========================================================================
   All Panels, Forms, Inputs, Textareas, Selects
   ========================================================================== */
html[data-theme="dark"] .admin-panel,
html[data-theme="dark"] .admin-editor-card,
html[data-theme="dark"] .admin-settings-panel,
html[data-theme="dark"] .admin-media-upload-panel,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .admin-stats-card,
html[data-theme="dark"] .admin-filter-card,
html[data-theme="dark"] .admin-preview-dialog,
html[data-theme="dark"] .research-card,
html[data-theme="dark"] .admin-seo-readiness,
html[data-theme="dark"] .admin-dev-credentials,
html[data-theme="dark"] .admin-login-card {
  background: #0f172a !important;
  border: 1px solid #1e293b !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .admin-seo-status-grid article,
html[data-theme="dark"] .admin-submenu-row,
html[data-theme="dark"] .admin-settings-preview,
html[data-theme="dark"] .admin-page-route-preview,
html[data-theme="dark"] .admin-panel-collapse,
html[data-theme="dark"] .admin-markup-toolbar,
html[data-theme="dark"] .admin-markup-media,
html[data-theme="dark"] .admin-taxonomy-option,
html[data-theme="dark"] .admin-media-preview,
html[data-theme="dark"] .admin-recent-list article,
html[data-theme="dark"] .admin-publishing-list div {
  background: #141d32 !important;
  border: 1px solid #1e293b !important;
  color: #ffffff !important;
}

html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="datetime-local"],
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .admin-field input,
html[data-theme="dark"] .admin-field textarea,
html[data-theme="dark"] .admin-field select,
html[data-theme="dark"] .admin-search-field input,
html[data-theme="dark"] .admin-filter-bar input,
html[data-theme="dark"] .admin-filter-bar select,
html[data-theme="dark"] .admin-settings-form input,
html[data-theme="dark"] .admin-settings-form select,
html[data-theme="dark"] .admin-settings-form textarea,
html[data-theme="dark"] .form-input,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .form-textarea,
html[data-theme="dark"] .admin-search-input,
html[data-theme="dark"] .admin-select,
html[data-theme="dark"] .admin-markup-media select {
  background: #141d32 !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] .admin-field input:focus,
html[data-theme="dark"] .admin-field textarea:focus,
html[data-theme="dark"] .admin-field select:focus {
  background: #182234 !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
  color: #ffffff !important;
  outline: none;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .admin-field label,
html[data-theme="dark"] label,
html[data-theme="dark"] .form-label {
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-file-input {
  background: #141d32 !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-file-input::file-selector-button {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-file-input::file-selector-button:hover {
  background: #2563eb !important;
  color: #ffffff !important;
}

/* Action Buttons & Secondary Controls */
html[data-theme="dark"] .admin-secondary-link,
html[data-theme="dark"] .admin-secondary-button,
html[data-theme="dark"] .admin-quiet-button,
html[data-theme="dark"] .admin-markup-toolbar button,
html[data-theme="dark"] .admin-drag-handle {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-secondary-link:hover,
html[data-theme="dark"] .admin-secondary-button:hover,
html[data-theme="dark"] .admin-quiet-button:hover,
html[data-theme="dark"] .admin-markup-toolbar button:hover {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-btn-action.btn-view {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-btn-action.btn-view:hover {
  background: #334155 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-btn-action.btn-edit {
  background: rgba(37, 99, 235, 0.25) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  color: #93c5fd !important;
}

html[data-theme="dark"] .admin-btn-action.btn-edit:hover {
  background: rgba(37, 99, 235, 0.4) !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-btn-action.btn-delete {
  background: rgba(220, 38, 38, 0.25) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
}

html[data-theme="dark"] .admin-btn-action.btn-delete:hover {
  background: rgba(220, 38, 38, 0.4) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

/* Badges & Pills in Dark Mode */
html[data-theme="dark"] .badge-neutral,
html[data-theme="dark"] .admin-total-badge,
html[data-theme="dark"] .admin-tag-pill,
html[data-theme="dark"] .admin-code-badge {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .badge-info,
html[data-theme="dark"] .admin-status-scheduled {
  background: rgba(37, 99, 235, 0.25) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  color: #93c5fd !important;
}

html[data-theme="dark"] .badge-success,
html[data-theme="dark"] .admin-status-published {
  background: rgba(22, 163, 74, 0.25) !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
  color: #86efac !important;
}

html[data-theme="dark"] .badge-warning,
html[data-theme="dark"] .admin-status-draft {
  background: rgba(217, 119, 6, 0.25) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: #fde047 !important;
}

html[data-theme="dark"] .badge-danger {
  background: rgba(220, 38, 38, 0.25) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
}

html[data-theme="dark"] .badge-purple {
  background: rgba(147, 51, 234, 0.25) !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
  color: #d8b4fe !important;
}

/* Flash Messages & Alerts */
html[data-theme="dark"] .admin-flash-modern.is-success {
  background: rgba(22, 163, 74, 0.22) !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
  color: #86efac !important;
}

html[data-theme="dark"] .admin-flash-modern.is-error {
  background: rgba(220, 38, 38, 0.22) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
}

html[data-theme="dark"] .admin-flash-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .admin-form-alert {
  background: rgba(220, 38, 38, 0.22) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
}

html[data-theme="dark"] .admin-form-alert span {
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-success-notice {
  background: rgba(22, 163, 74, 0.22) !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
  color: #86efac !important;
}

html[data-theme="dark"] .admin-notice,
html[data-theme="dark"] .admin-inline-notice {
  background: rgba(37, 99, 235, 0.22) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  color: #93c5fd !important;
}

/* Empty States */
html[data-theme="dark"] .admin-table-empty,
html[data-theme="dark"] .admin-empty-state,
html[data-theme="dark"] .dash-empty-state {
  background: #0f172a !important;
  border-color: #1e293b !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-table-empty strong,
html[data-theme="dark"] .admin-empty-state strong,
html[data-theme="dark"] .dash-empty-state strong {
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-table-empty p,
html[data-theme="dark"] .admin-empty-state p,
html[data-theme="dark"] .dash-empty-state p {
  color: #ffffff !important;
}

/* System Badges & Custom Components */
html[data-theme="dark"] .admin-status-system {
  background: rgba(37, 99, 235, 0.25) !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
  color: #93c5fd !important;
}

html[data-theme="dark"] .admin-locked-text {
  color: #cbd5e1 !important;
  font-size: 0.75rem;
  font-weight: 600;
  padding-right: 0.5rem;
}

html[data-theme="dark"] code {
  background: #182234 !important;
  border: 1px solid #1e293b !important;
  color: #93c5fd !important;
  padding: 0.15rem 0.4rem !important;
  border-radius: 4px !important;
}

html[data-theme="dark"] .admin-media-card {
  background: #0f172a !important;
  border-color: #1e293b !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .admin-media-card strong {
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-dev-copy-pill {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-dev-copy-pill:hover:not(:disabled) {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-dev-copy-pill:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

html[data-theme="dark"] .admin-danger-button {
  background: rgba(220, 38, 38, 0.25) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
}

html[data-theme="dark"] .admin-danger-button:hover {
  background: rgba(220, 38, 38, 0.4) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-text-link {
  color: #60a5fa !important;
}

html[data-theme="dark"] .admin-text-link:hover {
  color: #93c5fd !important;
}

html[data-theme="dark"] .admin-menu-group-card {
  background: #0f172a !important;
  border-color: #1e293b !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .admin-menu-group-heading {
  background: #141d32 !important;
  border-bottom: 1px solid #1e293b !important;
}

html[data-theme="dark"] .admin-submenu-list {
  background: #0f172a !important;
}

html[data-theme="dark"] .admin-submenu-list::before {
  background: #1e293b !important;
}

html[data-theme="dark"] .admin-submenu-row {
  background: #182234 !important;
  border-color: #26354a !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-submenu-row:hover {
  background: #1e2c42 !important;
  border-color: #38bdf8 !important;
}

html[data-theme="dark"] .admin-menu-input {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-menu-input:focus {
  border-color: #38bdf8 !important;
  background: #141d32 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

html[data-theme="dark"] .admin-menu-input.is-code {
  color: #7dd3fc !important;
}

html[data-theme="dark"] .admin-menu-toggle-label {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-menu-toggle-label:hover {
  background: #334155 !important;
}

html[data-theme="dark"] .admin-menu-external-label {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .admin-menu-external-label:hover {
  background: #1e293b !important;
}

html[data-theme="dark"] .admin-drag-handle {
  background: #182234 !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-drag-handle:hover {
  background: #1e293b !important;
  border-color: #475569 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-drag-handle-mini {
  color: #64748b !important;
}

html[data-theme="dark"] .admin-drag-handle-mini:hover {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-btn-move {
  background: #182234 !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-btn-move:hover:not(:disabled) {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-navigation-drag-help,
html[data-theme="dark"] .admin-navigation-order-status {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .admin-avatar-circle {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4) !important;
}

html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] input[type="datetime-local"] {
  color-scheme: dark !important;
}

html[data-theme="dark"] .admin-login-body {
  background: #090d16 !important;
}

html[data-theme="dark"] .admin-login-brand {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #172554 100%) !important;
  border-color: #1e293b !important;
}

html[data-theme="dark"] .admin-login-brand-copy h2 {
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-login-brand-copy p {
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-login-brand-note {
  background: rgba(30, 41, 59, 0.8) !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-back-link {
  color: #60a5fa !important;
}

html[data-theme="dark"] .admin-back-link:hover {
  color: #93c5fd !important;
}

html[data-theme="dark"] .admin-password-toggle {
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-image-source {
  border-color: #1e293b !important;
  background: #141d32 !important;
}

html[data-theme="dark"] .admin-image-source legend {
  color: #ffffff !important;
}

/* ==========================================================================
   NEWS DETAIL DARK MODE SUITE
   ========================================================================== */
html[data-theme="dark"] .news-detail-page {
  background: #090d16 !important;
}

html[data-theme="dark"] .news-article-sheet {
  background: #0f172a !important;
  border-color: #1e293b !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .news-article-title {
  color: #ffffff !important;
}

html[data-theme="dark"] .news-breadcrumb-bar {
  border-color: #1e293b !important;
}

html[data-theme="dark"] .news-breadcrumb-link {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .news-breadcrumb-link:hover {
  color: #60a5fa !important;
}

html[data-theme="dark"] .news-breadcrumb-current {
  color: #ffffff !important;
}

html[data-theme="dark"] .news-back-to-archive {
  background: rgba(30, 64, 175, 0.3) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  color: #93c5fd !important;
}

html[data-theme="dark"] .news-back-to-archive:hover {
  background: #1e40af !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .news-article-meta-bar {
  background: #141d32 !important;
  border-color: #1e293b !important;
}

html[data-theme="dark"] .news-author-avatar {
  background: #1e293b !important;
  color: #60a5fa !important;
}

html[data-theme="dark"] .news-author-name {
  color: #ffffff !important;
}

html[data-theme="dark"] .news-author-role,
html[data-theme="dark"] .news-meta-details {
  color: #ffffff !important;
}

html[data-theme="dark"] .news-share-pill {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .news-featured-img-wrap {
  border-color: #1e293b !important;
}

html[data-theme="dark"] .news-lead-quote {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: #f59e0b !important;
}

html[data-theme="dark"] .news-lead-quote p {
  color: #ffffff !important;
}

html[data-theme="dark"] .news-rich-body p {
  color: #ffffff !important;
}

html[data-theme="dark"] .news-rich-body > p:first-of-type::first-letter {
  color: #60a5fa !important;
}

html[data-theme="dark"] .news-rich-body blockquote {
  background: #141d32 !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .news-article-taxonomy-footer {
  border-color: #1e293b !important;
}

html[data-theme="dark"] .news-tag-item {
  background: #182234 !important;
  color: #93c5fd !important;
  border: 1px solid #1e293b !important;
}

html[data-theme="dark"] .news-tag-item:hover {
  background: #1e40af !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .news-share-box {
  background: #141d32 !important;
  border-color: #1e293b !important;
}

html[data-theme="dark"] .news-share-title-wrap {
  color: #ffffff !important;
}

html[data-theme="dark"] .news-share-action-btn {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .news-editorial-trust-box {
  background: #141d32 !important;
  border-color: #1e293b !important;
}

html[data-theme="dark"] .news-editorial-trust-box strong {
  color: #93c5fd !important;
}

html[data-theme="dark"] .news-editorial-trust-box p {
  color: #ffffff !important;
}

html[data-theme="dark"] .news-related-heading {
  color: #ffffff !important;
}

html[data-theme="dark"] .news-related-kicker {
  color: #60a5fa !important;
}

html[data-theme="dark"] .news-related-card {
  background: #0f172a !important;
  border-color: #1e293b !important;
}

html[data-theme="dark"] .news-related-title a {
  color: #ffffff !important;
}

html[data-theme="dark"] .news-related-title a:hover {
  color: #60a5fa !important;
}

html[data-theme="dark"] .news-related-excerpt {
  color: #ffffff !important;
}

html[data-theme="dark"] .news-related-card-footer {
  border-color: #1e293b !important;
}

html[data-theme="dark"] .news-read-more-link {
  color: #60a5fa !important;
}

/* Sidebar Dark Mode */
html[data-theme="dark"] .news-sidebar-widget {
  background: #0f172a !important;
  border-color: #1e293b !important;
}

html[data-theme="dark"] .news-sidebar-widget-header,
html[data-theme="dark"] .sidebar-links-title {
  border-color: #1e293b !important;
}

html[data-theme="dark"] .news-sidebar-title,
html[data-theme="dark"] .sidebar-links-title {
  color: #ffffff !important;
}

html[data-theme="dark"] .news-sidebar-kicker {
  color: #60a5fa !important;
}

html[data-theme="dark"] .news-sidebar-more-link {
  color: #60a5fa !important;
}

html[data-theme="dark"] .news-sidebar-card {
  border-color: #1e293b !important;
}

html[data-theme="dark"] .news-sidebar-badge {
  background: #1e293b !important;
  color: #93c5fd !important;
}

html[data-theme="dark"] .news-sidebar-heading a {
  color: #ffffff !important;
}

html[data-theme="dark"] .news-sidebar-heading a:hover {
  color: #60a5fa !important;
}

html[data-theme="dark"] .news-sidebar-date,
html[data-theme="dark"] .news-sidebar-empty {
  color: #ffffff !important;
}

html[data-theme="dark"] .news-sidebar-thumb-placeholder {
  background: #1e293b !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .sidebar-links-list a {
  background: #141d32 !important;
  border-color: #1e293b !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .sidebar-links-list a:hover {
  background: #1e293b !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   ADMIN LOGIN PAGE - EXECUTIVE UNIFIED DARK THEME
   ========================================================================== */
.admin-login-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #070d19 !important;
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

.admin-login-page {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 100vh;
  width: 100%;
  background: #070d19;
}

/* Left Brand Panel */
.admin-login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  background: radial-gradient(ellipse at 15% 25%, rgba(37, 99, 235, 0.22) 0%, transparent 60%),
              radial-gradient(ellipse at 85% 85%, rgba(161, 98, 7, 0.15) 0%, transparent 60%),
              linear-gradient(160deg, #0b1528 0%, #050a14 100%);
  border-right: 1px solid #1e293b;
  overflow: hidden;
}

.admin-login-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #ffffff;
  z-index: 2;
}

.admin-login-logo-wrap {
  width: 56px;
  height: 56px;
  padding: 8px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.admin-login-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-login-logo strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.admin-login-logo small {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 2px;
}

.admin-login-brand-copy {
  margin: 3rem 0;
  z-index: 2;
  max-width: 480px;
}

.admin-login-brand-copy .admin-kicker {
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.admin-login-brand-copy h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.admin-login-brand-copy > p:last-child {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

.admin-login-brand-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid #1e293b;
  color: #94a3b8;
  font-size: 0.8rem;
  width: fit-content;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.admin-login-brand-note svg {
  color: #38bdf8;
  flex-shrink: 0;
}

/* Right Panel & Card */
.admin-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: #080f20;
}

.admin-login-card {
  width: 100%;
  max-width: 450px;
  background: #0f192e;
  border: 1px solid #1e2d4d;
  border-radius: 1.25rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
}

.admin-login-heading {
  margin-bottom: 1.75rem;
}

.admin-login-heading .admin-kicker {
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.admin-login-heading h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.admin-login-heading > p:last-child {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
}

/* Form Fields */
.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-login-page .admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-login-page .admin-field label {
  font-size: 0.88rem;
  font-weight: 650;
  color: #f1f5f9;
}

.admin-login-page .admin-field input {
  width: 100%;
  height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  background: #091224;
  border: 1.5px solid #1e2d4d;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #38bdf8;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-login-page .admin-field input:-webkit-autofill,
.admin-login-page .admin-field input:-webkit-autofill:hover,
.admin-login-page .admin-field input:-webkit-autofill:focus {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #38bdf8;
}

.admin-login-page .admin-field input:focus {
  outline: none;
  background: #091224 !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.admin-login-page .admin-field input::placeholder {
  color: #94a3b8;
}

.admin-login-page .admin-field-help {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0.15rem 0 0;
}

.admin-login-page .admin-captcha-controls {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 0.55rem;
}

.admin-login-page .admin-captcha-image {
  display: block;
  width: min(260px, calc(100vw - 8rem));
  height: auto;
  border: 1px solid #c7d2e5;
  border-radius: 0.35rem;
  background: #f8f9fc;
}

.admin-login-page .admin-captcha-actions {
  display: grid;
  gap: 0.35rem;
}

.admin-login-page .admin-captcha-action {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid #8fa6d2;
  border-radius: 0.4rem;
  background: #e5ebf8;
  color: #284b92;
  cursor: pointer;
}

.admin-login-page .admin-captcha-action:hover {
  background: #d5e0f5;
}

.admin-login-page .admin-captcha-action:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}

.admin-login-page .admin-captcha-action:disabled {
  cursor: wait;
  opacity: 0.65;
}

.admin-login-page .admin-captcha-action svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.admin-login-page .admin-captcha-status:empty {
  display: none;
}

.admin-password-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}

.admin-password-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.admin-login-submit {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 0.65rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.admin-login-submit:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

.admin-login-submit:active {
  transform: translateY(0);
}

.admin-login-error {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
  font-size: 0.84rem;
  font-weight: 600;
}

.admin-login-error svg {
  color: #ef4444;
  flex-shrink: 0;
}

/* Dev Credentials Accordion */
.admin-dev-credentials {
  margin-top: 1.25rem;
  border: 1px solid #1e335a;
  border-radius: 0.65rem;
  background: #091224;
  overflow: hidden;
}

.admin-dev-credentials summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.admin-dev-credentials summary::-webkit-details-marker {
  display: none;
}

.admin-dev-summary-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-dev-summary-label svg {
  color: #f59e0b;
}

.admin-dev-badge {
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.admin-dev-credentials-content {
  padding: 1rem;
  border-top: 1px solid #1e335a;
  background: #060b17;
}

.admin-dev-credentials-content > p {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0 0 0.75rem;
}

.admin-dev-credentials dl {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.admin-dev-credentials dt {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.admin-dev-credentials dd {
  margin: 0;
}

.admin-dev-credential-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-dev-credential-row code {
  flex: 1;
  background: #091224;
  border: 1px solid #1e2d4d;
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.82rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dev-copy-pill {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 0.4rem;
  cursor: pointer;
  white-space: nowrap;
}

.admin-dev-copy-pill:hover {
  background: #334155;
  color: #ffffff;
}

.admin-dev-credential-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-dev-fill-button {
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 650;
  border-radius: 0.45rem;
  cursor: pointer;
}

.admin-dev-credential-status {
  font-size: 0.75rem;
  color: #4ade80;
  font-weight: 600;
  margin: 0.5rem 0 0;
  min-height: 1.2rem;
}

/* Security Note & Back Link */
.admin-login-security-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.8rem;
  margin-top: 1.25rem;
}

.admin-login-security-note svg {
  color: #475569;
}

.admin-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1.25rem;
  transition: color 0.15s ease;
}

.admin-back-link:hover {
  color: #38bdf8;
}

@media (max-width: 900px) {
  .admin-login-page {
    grid-template-columns: 1fr;
  }

  .admin-login-brand {
    border-right: none;
    border-bottom: 1px solid #1e293b;
    padding: 2rem 1.5rem;
  }

  .admin-login-brand-copy,
  .admin-login-brand-note {
    display: none;
  }
}

/* ==========================================================================
   SYSTEM UPDATE (GITHUB SYNC) & TERMINAL CONSOLE STYLES
   ========================================================================== */

.admin-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.85rem;
  font-weight: 550;
}

.admin-breadcrumbs a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.admin-breadcrumbs a:hover {
  color: #38bdf8;
}

.admin-breadcrumbs .sep {
  color: #475569;
}

.admin-system-update-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .admin-system-update-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Left Card: Status & Details */
.admin-update-status-card {
  min-width: 0;
  background: #0f192e;
  border: 1px solid #1e2d4d;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.admin-update-status-card .admin-card-header {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.admin-status-pill .pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.admin-status-pill.pill-ready {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.admin-status-pill.pill-ready .pill-dot {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.admin-status-pill.pill-success {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.admin-status-pill.pill-success .pill-dot {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.admin-status-pill.pill-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.admin-status-pill.pill-warning .pill-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.admin-status-pill.pill-running {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}
.admin-status-pill.pill-running .pill-dot {
  background: #a855f7;
  box-shadow: 0 0 6px #a855f7;
  animation: pulse 1.5s infinite;
}

.admin-update-details-list {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.admin-update-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(30, 45, 77, 0.65);
  font-size: 0.88rem;
  gap: 1rem;
}

.admin-update-row:last-child {
  border-bottom: none;
}

.admin-update-row .update-label {
  color: #64748b;
  font-weight: 600;
  font-size: 0.86rem;
  flex-shrink: 0;
}

.admin-update-row .update-value {
  min-width: 0;
  color: #f1f5f9;
  font-weight: 600;
  text-align: right;
  max-width: 65%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.admin-update-row .update-message {
  font-size: 0.82rem;
  color: #cbd5e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.admin-version-tag {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-weight: 750;
  font-size: 0.82rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.admin-commit-badge {
  background: #091224;
  color: #38bdf8;
  border: 1px solid #1e2d4d;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: all;
  display: inline-block;
}

.admin-commit-badge:hover {
  background: #0e1e38;
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

/* Incoming Updates Box */
.admin-incoming-updates {
  margin-top: 1rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
}

.admin-incoming-updates .incoming-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fbbf24;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.admin-incoming-updates .incoming-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 140px;
  overflow-y: auto;
}

.admin-incoming-updates .incoming-item {
  font-size: 0.78rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.admin-incoming-updates .incoming-hash {
  color: #38bdf8;
  font-family: ui-monospace, monospace;
  font-weight: 700;
}

/* Action Buttons */
.btn-update-action {
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-update-action:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-update-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   RIGHT COLUMN: TERMINAL CONSOLE EMULATOR
   ========================================================================== */
.admin-terminal-card {
  min-width: 0;
  background: #070d18;
  border: 1px solid #1e2d4d;
  border-radius: 1rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

.admin-terminal-titlebar {
  min-height: 44px;
  background: #091224;
  border-bottom: 1px solid #1e2d4d;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  user-select: none;
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 60px;
}

.terminal-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dots .dot-red {
  background: #ff5f56;
  border: 1px solid #e0443e;
}
.terminal-dots .dot-yellow {
  background: #ffbd2e;
  border: 1px solid #dea123;
}
.terminal-dots .dot-green {
  background: #27c93f;
  border: 1px solid #1aab29;
}

.terminal-host {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.terminal-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.terminal-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: ui-monospace, monospace;
}

.terminal-status-pill .term-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.terminal-status-pill.pill-idle {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.terminal-status-pill.pill-idle .term-dot {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.terminal-status-pill.pill-running {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.terminal-status-pill.pill-running .term-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
  animation: pulse 1.2s infinite;
}

.terminal-status-pill.pill-success {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.terminal-status-pill.pill-success .term-dot {
  background: #38bdf8;
}

.terminal-status-pill.pill-error {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.terminal-status-pill.pill-error .term-dot {
  background: #ef4444;
}

.btn-term-ctrl {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-term-ctrl:hover {
  background: #334155;
  color: #ffffff;
}

/* Terminal Screen */
.admin-terminal-screen {
  flex: 1;
  min-width: 0;
  background: #050b14;
  padding: 1.15rem 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.83rem;
  line-height: 1.7;
  color: #e2e8f0;
  overflow: auto;
  max-height: 420px;
  min-height: 320px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7);
}

.admin-terminal-screen:focus {
  outline: none;
}

.terminal-log-line {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  word-break: break-all;
  white-space: pre-wrap;
}

.terminal-log-line .log-time {
  color: #475569;
  font-size: 0.78rem;
  flex-shrink: 0;
  user-select: none;
}

.terminal-log-line .log-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  user-select: none;
}

.terminal-log-line .badge-ready {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.terminal-log-line .badge-shield {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.terminal-log-line .badge-hint {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.terminal-log-line .badge-info {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.terminal-log-line .badge-git {
  background: rgba(129, 140, 248, 0.18);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.4);
}

.terminal-log-line .badge-success {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.terminal-log-line .badge-error {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.terminal-log-line .badge-cmd {
  background: rgba(234, 179, 8, 0.18);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.terminal-log-line .log-text {
  min-width: 0;
  flex: 1;
  color: #cbd5e1;
}

.terminal-log-line .log-text.text-success {
  color: #4ade80;
}

.terminal-log-line .log-text.text-error {
  color: #f87171;
}

.terminal-log-line .log-text.text-dim {
  color: #64748b;
}

/* Terminal Footer & Prompt Form */
.admin-terminal-footer {
  background: #091224;
  border-top: 1px solid #1e2d4d;
  padding: 0.75rem 1rem;
}

.terminal-quick-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.terminal-quick-pills .quick-label {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
  margin-right: 0.25rem;
}

.btn-quick-cmd {
  background: #0d172e;
  border: 1px solid #1e335a;
  color: #38bdf8;
  font-family: ui-monospace, monospace;
  font-size: 0.74rem;
  font-weight: 650;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-quick-cmd:hover {
  background: #172545;
  border-color: #38bdf8;
  color: #ffffff;
}

.terminal-prompt-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #050b14;
  border: 1px solid #1e2d4d;
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem 0.25rem 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.terminal-prompt-form:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.terminal-prompt-form .prompt-symbol {
  color: #34d399;
  font-family: ui-monospace, monospace;
  font-weight: 800;
  font-size: 0.95rem;
  user-select: none;
}

.terminal-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #f1f5f9;
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  padding: 0.35rem 0;
}

.terminal-input::placeholder {
  color: #475569;
  font-size: 0.8rem;
}

.btn-term-run {
  background: #2563eb;
  border: none;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-term-run:hover {
  background: #1d4ed8;
}

/* ==========================================================================
   SWEETALERT2 CUSTOM THEME & OVERRIDES
   ========================================================================== */

.swal2-container {
  z-index: 100000 !important;
}

/* Modal Backdrop Blur (Modals Only) */
.swal2-container:not(.swal2-top-start):not(.swal2-top-end):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-center-start):not(.swal2-center-end):not(:has(.swal2-toast)).swal2-backdrop-show,
body.swal2-shown:not(.swal2-toast-shown) .swal2-container.swal2-backdrop-show {
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

/* Toast Container: Strictly Transparent with No Backdrop Blur */
.swal2-container.swal2-top-end,
.swal2-container.swal2-top-start,
.swal2-container.swal2-bottom-end,
.swal2-container.swal2-bottom-start,
.swal2-container:has(.swal2-toast),
body.swal2-toast-shown .swal2-container {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none !important;
}

.swal2-container.swal2-top-end .swal2-toast,
.swal2-container.swal2-top-start .swal2-toast,
.swal2-container.swal2-bottom-end .swal2-toast,
.swal2-container.swal2-bottom-start .swal2-toast,
.swal2-container .swal2-toast {
  pointer-events: auto !important;
}

html.swal2-height-auto,
body.swal2-height-auto {
  height: 100% !important;
  min-height: 100% !important;
}

body.swal2-shown:not(.swal2-toast-shown),
html.swal2-shown:not(.swal2-toast-shown) {
  overflow: hidden !important;
}

.swal2-popup {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif) !important;
  border-radius: 1.15rem !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  padding: 1.75rem 1.5rem !important;
}

[data-theme="dark"] .swal2-popup,
.admin-login-body .swal2-popup {
  background: #0f192e !important;
  border: 1px solid #1e2d4d !important;
  color: #f8fafc !important;
}

.swal2-title {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif) !important;
  font-weight: 800 !important;
  font-size: 1.35rem !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 0.5rem !important;
}

[data-theme="dark"] .swal2-title,
.admin-login-body .swal2-title {
  color: #ffffff !important;
}

.swal2-html-container {
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
  color: #94a3b8 !important;
  margin: 0.5rem 0 1.25rem !important;
}

.swal2-actions {
  gap: 0.65rem !important;
  margin-top: 1rem !important;
}

.swal2-styled {
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  border-radius: 0.65rem !important;
  padding: 0.65rem 1.35rem !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.swal2-styled:hover {
  transform: translateY(-1px) !important;
}

.swal2-toast {
  padding: 0.75rem 1rem !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.swal2-timer-progress-bar {
  background: #38bdf8 !important;
}

/* ==========================================================================
   MENU & NAVIGATION GLOW CARD ACCORDION STYLES
   ========================================================================== */

.admin-menu-page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

@media (max-width: 768px) {
  .admin-menu-page-wrapper {
    padding: 0 0.5rem 1.5rem;
  }
}

.admin-menu-group-card.glow-card {
  background: #0b1426;
  border-radius: 0.85rem;
  border: 1.5px solid #1e2d4d;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  margin-bottom: 0.65rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  overflow: hidden;
}

.admin-menu-group-card.glow-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}

.admin-menu-group-card.border-blue {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 12px rgba(56, 189, 248, 0.1);
}
.admin-menu-group-card.border-purple {
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 12px rgba(192, 132, 252, 0.1);
}
.admin-menu-group-card.border-orange {
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 12px rgba(251, 191, 36, 0.1);
}
.admin-menu-group-card.border-green {
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 12px rgba(52, 211, 153, 0.1);
}
.admin-menu-group-card.border-rose {
  border-color: rgba(251, 113, 133, 0.4);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 12px rgba(251, 113, 133, 0.1);
}
.admin-menu-group-card.border-cyan {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 12px rgba(34, 211, 238, 0.1);
}

.admin-menu-group-heading {
  background: #091224;
  padding: 0.75rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  border-bottom: 1px solid rgba(30, 45, 77, 0.6);
  cursor: pointer;
  user-select: none;
}

.admin-menu-group-card.is-collapsed .admin-menu-group-heading {
  border-bottom: none;
}

.admin-menu-group-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap !important;
}

.admin-menu-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  max-width: 280px;
  min-width: 140px;
}

.admin-menu-icon-badge {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid;
}

.admin-card-count-badge {
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-menu-accordion-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.admin-menu-accordion-btn:hover {
  background: #334155;
  color: #ffffff;
  border-color: #38bdf8;
}

.admin-menu-accordion-btn .chevron-icon {
  transition: transform 0.2s ease;
}

.admin-menu-group-card.is-collapsed .admin-menu-accordion-btn .chevron-icon {
  transform: rotate(-90deg);
}

.admin-menu-group-card.is-collapsed .admin-submenu-wrapper {
  display: none !important;
}

.admin-submenu-wrapper {
  background: #050a14;
  padding: 0.75rem 1.15rem 0.9rem;
  border-top: 1px solid rgba(30, 45, 77, 0.4);
}

.admin-submenu-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.admin-submenu-row {
  background: #091224;
  border: 1px solid #1a2744;
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: nowrap !important;
  min-height: 40px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-submenu-row:hover {
  border-color: #38bdf8;
  background: #0e1a33;
}

.submenu-row-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap !important;
}

.admin-drag-handle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 0.3rem 0.55rem;
  border-radius: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: grab;
  user-select: none;
  touch-action: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.admin-drag-handle:hover,
.admin-drag-handle:focus-visible {
  background: #334155;
  color: #ffffff;
  border-color: #38bdf8;
}

.admin-drag-handle:active {
  cursor: grabbing;
}

.admin-drag-handle.is-sub {
  padding: 0.25rem 0.45rem;
}

.admin-external-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.admin-external-checkbox input[type="checkbox"] {
  margin: 0 !important;
  width: 14px !important;
  height: 14px !important;
}

.admin-menu-list .admin-menu-input {
  background: #050b14 !important;
  border: 1px solid #1e2d4d !important;
  color: #f1f5f9 !important;
  border-radius: 0.45rem !important;
  padding: 0.3rem 0.6rem !important;
  font-size: 0.82rem !important;
  height: 34px !important;
  margin: 0 !important;
  display: inline-block !important;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.submenu-row-left .admin-menu-input {
  flex: 1 1 140px !important;
  min-width: 110px !important;
  max-width: 260px !important;
  width: auto !important;
}

.submenu-row-left .admin-menu-input.is-code {
  flex: 1.5 1 180px !important;
  min-width: 140px !important;
  max-width: 380px !important;
}

.admin-menu-list .admin-menu-input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2) !important;
  outline: none;
}

.admin-menu-input-title {
  font-weight: 750 !important;
  font-size: 0.85rem !important;
  width: 100% !important;
  max-width: 240px !important;
}

.admin-menu-input.is-code {
  font-family: ui-monospace, SFMono-Regular, monospace !important;
  font-size: 0.78rem !important;
  color: #38bdf8 !important;
}

.admin-menu-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-menu-toggle-label input[type="checkbox"] {
  margin: 0 !important;
  width: 15px !important;
  height: 15px !important;
}

.admin-menu-order-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.admin-menu-order-actions .admin-dev-copy-pill {
  padding: 0.25rem 0.5rem !important;
  font-size: 0.75rem !important;
  min-width: 26px;
  text-align: center;
}

/* ==========================================================================
   GLOWING MENU CARDS GRID VIEW (LIGHT & DARK THEME COMPATIBLE)
   ========================================================================== */

.admin-menu-page-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0 2rem;
}

.admin-menu-add-panel {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.admin-menu-add-panel[hidden],
.admin-menu-add-panel [hidden] {
  display: none !important;
}

.admin-menu-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0 0 0.75rem;
}

.admin-menu-toolbar-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-menu-toolbar .admin-dev-copy-pill {
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .admin-menu-toolbar {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .admin-menu-toolbar > #btn-menu-add-group,
  .admin-menu-toolbar-actions {
    width: 100%;
  }

  .admin-menu-toolbar-actions > button {
    flex: 1 1 9rem;
  }
}

.admin-menu-add-panel-heading,
.admin-menu-add-fields,
.admin-menu-add-actions {
  display: flex;
  align-items: center;
}

.admin-menu-add-panel-heading {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.admin-menu-add-panel-heading div {
  display: grid;
  gap: 0.15rem;
}

.admin-menu-add-panel-heading strong {
  color: var(--navy-950);
  font-size: 0.9rem;
}

.admin-menu-add-panel-heading span {
  color: var(--muted);
  font-size: 0.76rem;
}

.admin-menu-add-fields {
  align-items: flex-end;
  gap: 0.75rem;
}

.admin-menu-add-fields .admin-field {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
}

.admin-menu-add-fields .admin-field input,
.admin-menu-add-fields .admin-field select {
  min-height: 2.55rem;
  font-size: 0.86rem;
}

.admin-menu-add-actions {
  flex: 0 0 auto;
  min-height: 2.55rem;
}

@media (max-width: 720px) {
  .admin-menu-add-fields {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-menu-add-fields .admin-field,
  .admin-menu-add-actions,
  .admin-menu-add-actions button {
    width: 100%;
  }
}

.admin-menu-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  align-items: start;
}

@media (max-width: 768px) {
  .admin-menu-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Light Theme Base (Default) */
.admin-menu-grid-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

.admin-menu-grid-card:hover {
  border-color: var(--line);
}

.admin-menu-grid-card.border-blue {
  border-color: #0284c7;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.1);
}
.admin-menu-grid-card.border-purple {
  border-color: #9333ea;
  box-shadow: 0 2px 10px rgba(147, 51, 234, 0.1);
}
.admin-menu-grid-card.border-orange {
  border-color: #d97706;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.1);
}
.admin-menu-grid-card.border-green {
  border-color: #059669;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.1);
}
.admin-menu-grid-card.border-rose {
  border-color: #e11d48;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.1);
}
.admin-menu-grid-card.border-cyan {
  border-color: #0891b2;
  box-shadow: 0 2px 10px rgba(8, 145, 178, 0.1);
}

.menu-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.menu-card-top-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-card-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1.5px solid;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-card-top-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.menu-card-active-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  background: #f8fafc;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
}

.menu-card-active-toggle input {
  margin: 0 !important;
  width: 13px !important;
  height: 13px !important;
}

.menu-card-type-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.menu-card-body {
  position: relative;
  margin-bottom: 0.5rem;
  z-index: 2;
}

.menu-card-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.menu-card-title-field {
  margin-bottom: 0.35rem;
}

.menu-card-title-input {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  border-radius: 6px !important;
  padding: 0.35rem 0.65rem !important;
  width: 100% !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.menu-card-title-input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
  outline: none;
}

.menu-card-href-input {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0284c7 !important;
  font-family: ui-monospace, monospace !important;
  font-size: 0.78rem !important;
  border-radius: 5px !important;
  padding: 0.3rem 0.55rem !important;
  width: 100% !important;
  margin-bottom: 0.35rem !important;
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
  position: relative;
  z-index: 2;
  gap: 0.4rem;
}

.menu-card-order-btns {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-card-order {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 0.22rem 0.55rem;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-card-order:hover:not(:disabled) {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-card-order:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-card-remove {
  color: #be123c;
  border-color: #fecdd3;
  background: #fff1f2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.45rem;
}

.btn-card-remove:hover:not(:disabled) {
  color: #9f1239;
  border-color: #fda4af;
  background: #ffe4e6;
}

.btn-card-submenu-toggle {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 0.28rem 0.65rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-card-submenu-toggle:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
}

.btn-card-submenu-toggle.is-open {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* Keep the non-interactive link-card footer aligned with submenu controls. */
.menu-card-footer-static {
  cursor: default;
  user-select: none;
  pointer-events: none;
  color: #64748b;
  border: 0;
  background: transparent;
}

.btn-card-submenu-toggle .chevron-arrow {
  transition: transform 0.2s ease;
}

.btn-card-submenu-toggle.is-open .chevron-arrow {
  transform: rotate(180deg);
}

/* SUBMENU EXPANDED PANEL IN CARD */
.admin-menu-grid-card.is-collapsed .menu-card-submenu-panel {
  display: none !important;
}

.menu-card-submenu-panel {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
  position: relative;
  z-index: 2;
}

.menu-card-submenu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.menu-card-submenu-header .panel-subtitle {
  font-size: 0.875rem;
  font-weight: 750;
  color: var(--ink);
}

.menu-card-order-hint {
  margin: 0.35rem 0 0.875rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.menu-card-add-child {
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  box-shadow: none;
}

.menu-card-add-page {
  margin: 0 0 1rem;
  padding: 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  min-width: 0;
}

.menu-card-add-page[hidden] {
  display: none;
}

.menu-card-page-fields {
  margin-top: 0.875rem;
}

.menu-card-page-fields[hidden] {
  display: none;
}

.menu-card-manage-pages {
  color: var(--navy-800);
  font-size: 0.8125rem;
  text-decoration: underline;
}

.menu-card-add-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.menu-card-add-actions button {
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
}

.menu-card-add-page-label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

.menu-card-add-page-select {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 400;
  outline: none;
  transition: border-color 0.15s ease;
}

.menu-card-add-page-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.menu-card-add-page-hint {
  margin: 0.5rem 0 0.875rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.menu-card-submenu-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.menu-card-submenu-item {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.menu-card-submenu-item:hover {
  border-color: var(--line);
}

.sub-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.sub-item-toggle,
.sub-item-ext {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-size: 0.8125rem;
  color: #475569;
  cursor: pointer;
}

.sub-item-toggle input,
.sub-item-ext input {
  margin: 0 !important;
  width: 13px !important;
  height: 13px !important;
}

.sub-item-order {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-inline-start: auto;
}

.btn-sub-order {
  min-width: 2.75rem;
  min-height: 2.75rem;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 0.12rem 0.38rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-sub-order:hover:not(:disabled) {
  background: #cbd5e1;
  color: #0f172a;
}

.btn-sub-order:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-sub-remove {
  color: #be123c;
  border-color: #fecdd3;
  background: #fff1f2;
  font-size: 0.9rem;
  line-height: 1;
}

.btn-sub-remove:hover:not(:disabled) {
  color: #9f1239;
  border-color: #fda4af;
  background: #ffe4e6;
}

.sub-item-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sub-input-label,
.sub-input-href {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-size: 0.8rem !important;
  border-radius: 5px !important;
  padding: 0.3rem 0.55rem !important;
  width: 100% !important;
  margin: 0 !important;
}

.sub-input-href {
  font-family: ui-monospace, monospace !important;
  color: #0284c7 !important;
}

.menu-card-submenu-item > .admin-field,
.menu-destination .admin-field {
  display: grid;
  gap: 0.375rem;
  margin: 0;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

.menu-card-submenu-item input[type="text"],
.menu-destination select {
  min-height: 2.75rem;
  min-width: 0;
}

.menu-destination .admin-media-picker-files {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* ==========================================================================
   Dark Mode Overrides for Menu Cards
   ========================================================================== */
html[data-theme="dark"] .admin-menu-grid-card {
  background: #081226 !important;
  border-color: #1e2d4d !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .admin-menu-grid-card.border-blue {
  border-color: rgba(56, 189, 248, 0.65) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 14px rgba(56, 189, 248, 0.16) !important;
}
html[data-theme="dark"] .admin-menu-grid-card.border-purple {
  border-color: rgba(192, 132, 252, 0.65) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 14px rgba(192, 132, 252, 0.16) !important;
}
html[data-theme="dark"] .admin-menu-grid-card.border-orange {
  border-color: rgba(251, 191, 36, 0.7) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 14px rgba(251, 191, 36, 0.16) !important;
}
html[data-theme="dark"] .admin-menu-grid-card.border-green {
  border-color: rgba(52, 211, 153, 0.7) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 14px rgba(52, 211, 153, 0.16) !important;
}
html[data-theme="dark"] .admin-menu-grid-card.border-rose {
  border-color: rgba(251, 113, 133, 0.7) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 14px rgba(251, 113, 133, 0.16) !important;
}
html[data-theme="dark"] .admin-menu-grid-card.border-cyan {
  border-color: rgba(34, 211, 238, 0.7) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 14px rgba(34, 211, 238, 0.16) !important;
}

html[data-theme="dark"] .menu-card-active-toggle {
  background: rgba(15, 23, 42, 0.6) !important;
  border-color: #1e2d4d !important;
  color: #94a3b8 !important;
}

html[data-theme="dark"] .menu-card-title-input {
  background: #040812 !important;
  border-color: #1e2d4d !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .menu-card-title-input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25) !important;
}

html[data-theme="dark"] .menu-card-href-input {
  background: #040812 !important;
  border-color: #1e2d4d !important;
  color: #38bdf8 !important;
}

html[data-theme="dark"] .menu-card-footer {
  border-top-color: rgba(30, 45, 77, 0.6) !important;
}

html[data-theme="dark"] .btn-card-order {
  background: #0f1a30 !important;
  border-color: #1e2d4d !important;
  color: #94a3b8 !important;
}
html[data-theme="dark"] .btn-card-order:hover:not(:disabled) {
  background: #1e293b !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .btn-card-remove {
  color: #fda4af !important;
  border-color: #881337 !important;
  background: rgba(136, 19, 55, 0.28) !important;
}
html[data-theme="dark"] .btn-card-remove:hover:not(:disabled) {
  color: #ffe4e6 !important;
  border-color: #fb7185 !important;
  background: rgba(159, 18, 57, 0.48) !important;
}

html[data-theme="dark"] .btn-card-submenu-toggle {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .btn-card-submenu-toggle:hover,
html[data-theme="dark"] .btn-card-submenu-toggle.is-open {
  background: #0284c7 !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .btn-sub-remove {
  color: #fda4af !important;
  border-color: #881337 !important;
  background: rgba(136, 19, 55, 0.28) !important;
}
html[data-theme="dark"] .btn-sub-remove:hover:not(:disabled) {
  color: #ffe4e6 !important;
  border-color: #fb7185 !important;
  background: rgba(159, 18, 57, 0.48) !important;
}

html[data-theme="dark"] .menu-card-submenu-panel {
  border-top-color: #1e2d4d !important;
}
html[data-theme="dark"] .menu-card-submenu-header .panel-subtitle {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .menu-card-submenu-item {
  background: #040812 !important;
  border-color: #1a2744 !important;
}
html[data-theme="dark"] .menu-card-submenu-item:hover {
  border-color: #1a2744 !important;
}
html[data-theme="dark"] .sub-item-toggle,
html[data-theme="dark"] .sub-item-ext {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .btn-sub-order {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .btn-sub-order:hover:not(:disabled) {
  background: #334155 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .sub-input-label {
  background: #081226 !important;
  border-color: #1e2d4d !important;
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .sub-input-href {
  background: #081226 !important;
  border-color: #1e2d4d !important;
  color: #38bdf8 !important;
}

html[data-theme="dark"] .menu-card-add-page {
  background: #040812 !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
}

html[data-theme="dark"] .menu-card-add-page-label {
  color: #38bdf8 !important;
}

html[data-theme="dark"] .menu-card-manage-pages {
  color: #38bdf8;
}

html[data-theme="dark"] .menu-card-add-page-select {
  background: #081226 !important;
  border-color: #1e2d4d !important;
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .menu-card-add-page-select:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25) !important;
}

html[data-theme="dark"] .menu-card-add-page-hint {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .menu-card-add-page-hint strong {
  color: #38bdf8 !important;
}

/* ========================================================================== */
/* Menu card consistency: one surface, one rhythm, accent as a cue only. */
.admin-menu-cards-grid {
  gap: 1rem;
  align-items: start;
}

.admin-menu-grid-card {
  --menu-accent: var(--navy-800);
  container: menu-card / inline-size;
  box-sizing: border-box;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.admin-menu-grid-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--menu-accent);
  pointer-events: none;
}

.admin-menu-grid-card.border-blue { --menu-accent: #0284c7; border-color: var(--line); box-shadow: var(--shadow-sm); }
.admin-menu-grid-card.border-purple { --menu-accent: #9333ea; border-color: var(--line); box-shadow: var(--shadow-sm); }
.admin-menu-grid-card.border-orange { --menu-accent: #d97706; border-color: var(--line); box-shadow: var(--shadow-sm); }
.admin-menu-grid-card.border-green { --menu-accent: #059669; border-color: var(--line); box-shadow: var(--shadow-sm); }
.admin-menu-grid-card.border-rose { --menu-accent: #e11d48; border-color: var(--line); box-shadow: var(--shadow-sm); }
.admin-menu-grid-card.border-cyan { --menu-accent: #0891b2; border-color: var(--line); box-shadow: var(--shadow-sm); }

.menu-card-top {
  min-height: 2.25rem;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.menu-card-top-right {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu-card-icon-box {
  width: 2.25rem;
  height: 2.25rem;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  color: var(--menu-accent);
  background: var(--surface-muted);
  border-color: var(--line);
}

.menu-card-active-toggle,
.menu-card-type-badge {
  min-height: 2rem;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
}

.menu-card-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  background: var(--surface-muted);
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
  font-weight: 600;
}

.menu-card-body {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.875rem;
}

.menu-card-title-input,
.menu-card-href-input {
  min-height: 2.5rem;
  box-sizing: border-box;
  border-radius: var(--radius-sm) !important;
}

/* Link cards keep their label and destination in the same visual row. */
.menu-card-link-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(8rem, 0.65fr);
  gap: 0.65rem;
  align-items: stretch;
}

.menu-card-link-fields .menu-card-title-field,
.menu-card-link-fields .menu-card-href-input {
  min-width: 0;
  margin: 0 !important;
}

.menu-card-kicker,
.menu-card-footer > span {
  color: var(--muted) !important;
}

.menu-card-footer {
  min-height: 2.5rem;
  box-sizing: border-box;
  padding-top: 0.5rem;
  margin-top: auto;
}

.btn-card-order,
.btn-card-submenu-toggle {
  min-height: 2.75rem;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  transition-property: background-color, border-color, color, box-shadow, transform;
}

.btn-card-order {
  min-width: 2.75rem;
}

.menu-card-order-btns {
  gap: 0.375rem;
}

.btn-sub-order:focus-visible,
.btn-card-order:focus-visible,
.btn-card-submenu-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.menu-card-title-input:focus-visible,
.menu-card-href-input:focus-visible {
  outline: 3px solid var(--focus) !important;
  outline-offset: 2px;
}

.menu-card-submenu-panel {
  padding: 1rem 0 0;
  margin-top: 1rem;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

html[data-theme="dark"] .admin-menu-grid-card,
html[data-theme="dark"] .admin-menu-grid-card.border-blue,
html[data-theme="dark"] .admin-menu-grid-card.border-purple,
html[data-theme="dark"] .admin-menu-grid-card.border-orange,
html[data-theme="dark"] .admin-menu-grid-card.border-green,
html[data-theme="dark"] .admin-menu-grid-card.border-rose,
html[data-theme="dark"] .admin-menu-grid-card.border-cyan {
  border-color: var(--line) !important;
  box-shadow: 0 8px 24px rgb(0 0 0 / 35%) !important;
}

html[data-theme="dark"] .menu-card-submenu-panel {
  background: transparent !important;
}

html[data-theme="dark"] .menu-destination .admin-media-picker-files {
  background: transparent;
}

html[data-theme="dark"] .menu-card-icon-box {
  color: var(--muted);
}

@container menu-card (min-width: 26rem) {
  .menu-destination {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .menu-destination [data-menu-download] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 42rem) {
  .menu-card-top {
    align-items: flex-start;
  }

  .menu-card-top-right {
    flex: 1;
  }

  .menu-card-type-badge {
    white-space: normal;
    text-align: end;
  }

  .menu-card-link-fields {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .menu-card-footer {
    flex-wrap: wrap;
  }

  .btn-card-submenu-toggle {
    flex: 1;
    justify-content: center;
  }
}

/* ==========================================================================
   Modern Media Library Redesign
   ========================================================================== */
.admin-media-upload-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.admin-media-upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 1rem;
}

@media (max-width: 860px) {
  .admin-media-upload-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.admin-media-dropzone {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 0.75rem;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 160px;
}

.admin-media-dropzone:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.admin-media-dropzone.is-dragover {
  border-color: #2563eb;
  background: #dbeafe;
  transform: scale(1.01);
}

.admin-media-dropzone-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
  transition: transform 0.2s ease;
}

.admin-media-dropzone:hover .admin-media-dropzone-icon {
  transform: translateY(-2px);
}

.admin-media-dropzone-text {
  font-size: 0.875rem;
  font-weight: 650;
  color: #1e293b;
}

.admin-media-dropzone-sub {
  font-size: 0.75rem;
  color: #64748b;
}

.admin-media-selected-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  width: 100%;
}

.admin-media-selected-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #e2e8f0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: #334155;
}

.admin-media-filters {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.admin-media-filter-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-media-filter-btn:hover {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #ffffff;
}

.admin-media-filter-btn.is-active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.admin-media-grid-pro {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.15rem;
  margin-top: 1.25rem;
}

.admin-media-card-pro {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-media-card-pro:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.admin-media-thumb-wrap {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-media-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.admin-media-card-pro:hover .admin-media-thumb-img {
  transform: scale(1.04);
}

.admin-media-thumb-doc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #64748b;
}

.media-badge-ext {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.media-badge-ext.badge-img {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.35);
}

.media-badge-ext.badge-doc {
  background: #ea580c;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.35);
}

.media-badge-size {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.admin-media-info-body {
  padding: 0.85rem 1rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.admin-media-title {
  font-size: 0.83rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.admin-media-alt {
  font-size: 0.74rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.admin-media-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: auto;
  padding-top: 0.35rem;
}

.admin-media-card-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem 0.85rem;
  border-top: 1px solid #f1f5f9;
}

.btn-media-copy-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.45rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-media-copy-action:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

.btn-media-view-action,
.btn-media-delete-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0.45rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.btn-media-view-action {
  background: #eff6ff;
  border-color: #dbeafe;
  color: #2563eb;
}

.btn-media-view-action:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.btn-media-delete-action {
  background: #fef2f2;
  border-color: #fee2e2;
  color: #ef4444;
}

.btn-media-delete-action:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

/* Dark Mode Overrides for Media Library */
html[data-theme="dark"] .admin-media-upload-card {
  background: #0f172a !important;
  border-color: #1e293b !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .admin-media-dropzone {
  border-color: #334155 !important;
  background: rgba(15, 23, 42, 0.6) !important;
}

html[data-theme="dark"] .admin-media-dropzone:hover {
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.08) !important;
}

html[data-theme="dark"] .admin-media-dropzone.is-dragover {
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.15) !important;
}

html[data-theme="dark"] .admin-media-dropzone-icon {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
}

html[data-theme="dark"] .admin-media-dropzone-text {
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-media-dropzone-sub {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .admin-media-selected-box {
  background: #081226 !important;
  border-color: #1e2d4d !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-media-selected-thumb {
  background: #1e293b !important;
  color: #94a3b8 !important;
}

html[data-theme="dark"] .admin-media-filter-btn {
  border-color: #334155 !important;
  background: #1e293b !important;
  color: #94a3b8 !important;
}

html[data-theme="dark"] .admin-media-filter-btn:hover {
  border-color: #475569 !important;
  color: #ffffff !important;
  background: #334155 !important;
}

html[data-theme="dark"] .admin-media-filter-btn.is-active {
  background: #0284c7 !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35) !important;
}

html[data-theme="dark"] .admin-media-card-pro {
  border-color: #1e2d4d !important;
  background: #081226 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .admin-media-card-pro:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 14px rgba(56, 189, 248, 0.18) !important;
}

html[data-theme="dark"] .admin-media-thumb-wrap {
  background: #040812 !important;
}

html[data-theme="dark"] .admin-media-title {
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-media-alt {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .admin-media-card-actions {
  border-top-color: rgba(30, 45, 77, 0.6) !important;
}

html[data-theme="dark"] .btn-media-copy-action {
  background: #0f1a30 !important;
  border-color: #1e2d4d !important;
  color: #94a3b8 !important;
}

html[data-theme="dark"] .btn-media-copy-action:hover {
  background: #1e293b !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .btn-media-view-action {
  background: rgba(37, 99, 235, 0.15) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
  color: #60a5fa !important;
}

html[data-theme="dark"] .btn-media-view-action:hover {
  background: #2563eb !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .btn-media-delete-action {
  background: rgba(225, 29, 72, 0.14) !important;
  border-color: rgba(225, 29, 72, 0.35) !important;
  color: #fb7185 !important;
}

html[data-theme="dark"] .btn-media-delete-action:hover {
  background: #e11d48 !important;
  border-color: #e11d48 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   WordPress Import Modal & Components (Redesigned)
   ========================================================================== */
.btn-import-wordpress {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 0.65rem;
  font-size: 0.835rem;
  font-weight: 700;
  color: #0369a1;
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-import-wordpress:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.admin-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.admin-modal-dialog.wp-modal-box {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.admin-modal-overlay.is-active .admin-modal-dialog.wp-modal-box {
  transform: scale(1) translateY(0);
}

#wp-import-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.wp-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1.15rem;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.wp-modal-header-main {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
}

.wp-modal-brand-icon {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.wp-modal-heading {
  margin: 0 0 0.2rem;
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.wp-modal-subheading {
  margin: 0;
  font-size: 0.815rem;
  color: #64748b;
  line-height: 1.45;
}

.wp-modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.wp-modal-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.wp-modal-body {
  flex: 1;
  min-height: 0;
  padding: 1.35rem 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-sizing: border-box;
}

/* Upload Zone */
.wp-upload-zone {
  position: relative;
  border: 2px dashed #93c5fd;
  border-radius: 1rem;
  background: #f8fafc;
  padding: 1.4rem 1.25rem;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  width: 100%;
}

.wp-upload-zone:hover,
.wp-upload-zone.is-dragover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.wp-real-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.wp-upload-zone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  pointer-events: none;
}

.wp-upload-illustration {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
}

.wp-upload-texts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.wp-upload-title {
  font-size: 0.92rem;
  font-weight: 750;
  color: #0f172a;
}

.wp-format-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.wp-format-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.wp-format-pill.is-limit {
  color: #64748b;
  background: #f1f5f9;
}

.wp-file-ready-card {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.65rem;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.815rem;
  font-weight: 650;
  margin-top: 0.35rem;
  pointer-events: auto;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
  max-width: 90%;
}

.wp-file-ready-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  white-space: nowrap;
}

.wp-file-ready-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wp-btn-remove-file {
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: #ffffff;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}

.wp-btn-remove-file:hover {
  background: rgba(255, 255, 255, 0.45);
}

/* Config Grid */
.wp-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 540px) {
  .wp-config-grid {
    grid-template-columns: 1fr;
  }
}

.wp-config-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.wp-field-label {
  font-size: 0.8rem;
  font-weight: 750;
  color: #334155;
}

.wp-select-wrapper {
  position: relative;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.wp-select-input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  padding: 0 2.25rem 0 0.85rem !important;
  border: 1.5px solid #cbd5e1;
  border-radius: 0.65rem;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-position: right 0.75rem center !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  font-size: 0.825rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.wp-select-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  outline: none;
}

/* Features Cards */
.wp-features-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  box-sizing: border-box;
}

.wp-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border-radius: 0.75rem;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
  width: 100%;
}

.wp-feature-card:hover {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.wp-custom-check {
  margin-top: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #0284c7;
  cursor: pointer;
  flex-shrink: 0;
}

.wp-feature-texts {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.wp-feature-title {
  font-size: 0.825rem;
  font-weight: 750;
  color: #0f172a;
}

.wp-feature-desc {
  font-size: 0.745rem;
  color: #64748b;
  line-height: 1.4;
}

/* Progress indicator */
.wp-progress-box {
  padding: 0.9rem 1.1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 0.85rem;
  box-sizing: border-box;
  width: 100%;
}

.wp-progress-track {
  width: 100%;
  height: 8px;
  background: #e0f2fe;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.wp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7 0%, #0073aa 100%);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.wp-progress-text {
  margin: 0;
  font-size: 0.785rem;
  color: #0369a1;
  font-weight: 700;
  text-align: center;
}

/* Result Panel */
.wp-result-panel {
  padding: 1.25rem;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 0.95rem;
  color: #166534;
  box-sizing: border-box;
  width: 100%;
}

.wp-result-panel.is-error {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

.wp-result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin: 0.85rem 0;
}

@media (max-width: 540px) {
  .wp-result-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wp-result-stat-box {
  padding: 0.65rem 0.5rem;
  background: #ffffff;
  border-radius: 0.65rem;
  border: 1px solid #dcfce7;
  text-align: center;
}

.wp-result-stat-box strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #15803d;
}

.wp-result-stat-box span {
  font-size: 0.7rem;
  color: #4b5563;
  font-weight: 700;
  text-transform: uppercase;
}

.wp-result-articles-list {
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid #dcfce7;
  border-radius: 0.65rem;
  background: #ffffff;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  list-style: none;
}

.wp-result-articles-list li {
  padding: 0.4rem 0;
  font-size: 0.785rem;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.wp-result-articles-list li:last-child {
  border-bottom: none;
}

/* Footer */
.wp-modal-footer {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

.wp-btn-cancel {
  padding: 0.65rem 1.35rem;
  border-radius: 0.65rem;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wp-btn-cancel:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.wp-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.45rem;
  border-radius: 0.65rem;
  border: none;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.15s ease;
}

.wp-btn-submit:hover {
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
  transform: translateY(-1px);
}

.wp-btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   Dark Mode Theme Overrides for WordPress Import Modal
   ========================================================================== */
html[data-theme="dark"] .btn-import-wordpress {
  background: rgba(2, 132, 199, 0.16) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  color: #38bdf8 !important;
}

html[data-theme="dark"] .btn-import-wordpress:hover {
  background: #0284c7 !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .admin-modal-overlay {
  background: rgba(4, 8, 18, 0.8) !important;
}

html[data-theme="dark"] .admin-modal-dialog.wp-modal-box {
  background: #081226 !important;
  border: 1px solid #1e2d4d !important;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.8) !important;
}

html[data-theme="dark"] .wp-modal-header {
  background: #081226 !important;
  border-bottom-color: #1e2d4d !important;
}

html[data-theme="dark"] .wp-modal-heading {
  color: #ffffff !important;
}

html[data-theme="dark"] .wp-modal-subheading {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .wp-modal-close-btn {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .wp-modal-close-btn:hover {
  background: #1e293b !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .wp-upload-zone {
  background: #050b18 !important;
  border-color: #1e2d4d !important;
}

html[data-theme="dark"] .wp-upload-zone:hover,
html[data-theme="dark"] .wp-upload-zone.is-dragover {
  border-color: #38bdf8 !important;
  background: #0b1830 !important;
}

html[data-theme="dark"] .wp-upload-illustration {
  background: #0f1f3d !important;
  color: #38bdf8 !important;
}

html[data-theme="dark"] .wp-upload-title {
  color: #ffffff !important;
}

html[data-theme="dark"] .wp-format-pill {
  color: #38bdf8 !important;
  background: #0f1f3d !important;
}

html[data-theme="dark"] .wp-format-pill.is-limit {
  color: #94a3b8 !important;
  background: #1e293b !important;
}

html[data-theme="dark"] .wp-field-label {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .wp-select-input {
  background-color: #050b18 !important;
  border-color: #1e2d4d !important;
  color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-position: right 0.75rem center !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  padding-right: 2.25rem !important;
}

html[data-theme="dark"] .wp-select-input option {
  background-color: #081226 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .wp-select-input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

html[data-theme="dark"] .wp-feature-card {
  background: #050b18 !important;
  border-color: #1e2d4d !important;
}

html[data-theme="dark"] .wp-feature-card:hover {
  background: #0b1830 !important;
  border-color: #38bdf8 !important;
}

html[data-theme="dark"] .wp-feature-title {
  color: #ffffff !important;
}

html[data-theme="dark"] .wp-feature-desc {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .wp-progress-box {
  background: #050b18 !important;
  border-color: #1e2d4d !important;
}

html[data-theme="dark"] .wp-progress-track {
  background: #1e293b !important;
}

html[data-theme="dark"] .wp-progress-text {
  color: #38bdf8 !important;
}

html[data-theme="dark"] .wp-modal-footer {
  background: #050b18 !important;
  border-top-color: #1e2d4d !important;
}

html[data-theme="dark"] .wp-btn-cancel {
  background: #081226 !important;
  border-color: #1e2d4d !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .wp-btn-cancel:hover {
  background: #1e293b !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .wp-result-stat-box {
  background: #050b18 !important;
  border-color: #166534 !important;
}

html[data-theme="dark"] .wp-result-stat-box span {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .wp-result-articles-list {
  background: #050b18 !important;
  border-color: #166534 !important;
}

html[data-theme="dark"] .wp-result-articles-list li {
  color: #e2e8f0 !important;
  border-bottom-color: #1e293b !important;
}

/* ==========================================================================
   GROQ AI & SEO GENERATOR STYLES
   ========================================================================== */
.admin-ai-generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.admin-ai-generate-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.admin-ai-generate-btn:active:not(:disabled) {
  transform: translateY(0);
}

.admin-ai-generate-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.admin-ai-generate-btn .ai-icon {
  font-size: 0.95rem;
}

.admin-ai-translation {
  margin-bottom: 1rem;
}

.admin-ai-translation .admin-ai-generate-btn {
  min-height: 40px;
  max-width: 100%;
  color: var(--navy-950, #0f172a);
}

.admin-ai-translation svg {
  flex-shrink: 0;
}

.admin-ai-translation [hidden] {
  display: none;
}

.admin-ai-translation [data-translation-status] {
  overflow-wrap: anywhere;
}

.ai-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: ai-spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes ai-spin {
  to { transform: rotate(360deg); }
}

.ai-field-updated {
  animation: ai-field-pulse 1.8s ease-out;
}

@keyframes ai-field-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    border-color: #f59e0b !important;
  }
  50% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.2);
    border-color: #f59e0b !important;
  }
  100% {
    box-shadow: none;
  }
}

