/* FISIP UBB - Frontend styles (modern, clean, Bootstrap 5)
   - Base components still use Bootstrap 5
   - This file adds a design system layer: spacing, typography, surfaces, motion
*/

:root {
  /* Brand: Orange (FISIP) */
  --fisip-primary: #f97316;
  --fisip-primary-rgb: 249, 115, 22;
  --fisip-primary-hover: #ea580c;
  --fisip-primary-active: #c2410c;
  --fisip-primary-weak: rgba(var(--fisip-primary-rgb), 0.14);
  --fisip-primary-weak-2: rgba(var(--fisip-primary-rgb), 0.09);
  --fisip-ring: rgba(var(--fisip-primary-rgb), 0.35);

  --fisip-bg: #f6f7fb;
  --fisip-surface: #ffffff;
  --fisip-text: #0f172a;
  --fisip-muted: #64748b;
  --fisip-border: rgba(15, 23, 42, 0.12);

  --fisip-shadow-sm: 0 10px 25px rgba(2, 6, 23, 0.06);
  --fisip-shadow: 0 18px 45px rgba(2, 6, 23, 0.08);
  --fisip-radius: 18px;

  --fisip-container: 1140px;

  /* Flag outline (language switcher) */
  --flag-outline: rgba(15, 23, 42, 0.35);

  /* Bootstrap theme override (Bootstrap 5.3 uses CSS variables) */
  --bs-primary: var(--fisip-primary);
  --bs-primary-rgb: var(--fisip-primary-rgb);
  --bs-link-color: var(--fisip-primary);
  --bs-link-hover-color: var(--fisip-primary-hover);
  --bs-focus-ring-color: var(--fisip-ring);
}

html[data-theme="dark"] {
  --fisip-bg: #0b1220;
  --fisip-surface: #0f172a;
  --fisip-text: #e2e8f0;
  --fisip-muted: #94a3b8;
  --fisip-border: rgba(226, 232, 240, 0.12);

  --fisip-shadow-sm: 0 10px 25px rgba(0, 0, 0, 0.26);
  --fisip-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --fisip-ring: rgba(var(--fisip-primary-rgb), 0.38);

  /* Flag outline (language switcher) */
  --flag-outline: rgba(226, 232, 240, 0.45);
}

/* Base typography */
html,
body {
  height: 100%;
}

body {
  background:
    radial-gradient(
      1200px 600px at 10% -10%,
      rgba(var(--fisip-primary-rgb), 0.16),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 90% 10%,
      rgba(var(--fisip-primary-rgb), 0.08),
      transparent 55%
    ),
    var(--fisip-bg);
  color: var(--fisip-text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--fisip-primary);
  text-decoration-color: rgba(var(--fisip-primary-rgb), 0.35);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--fisip-primary-hover);
}

/* Bootstrap "primary" color: force orange even if the CDN CSS uses hard-coded values */
.text-primary {
  color: var(--fisip-primary) !important;
}

.bg-primary {
  background-color: var(--fisip-primary) !important;
}

.border-primary {
  border-color: rgba(var(--fisip-primary-rgb), 0.55) !important;
}

.btn-primary {
  --bs-btn-bg: var(--fisip-primary);
  --bs-btn-border-color: var(--fisip-primary);
  --bs-btn-hover-bg: var(--fisip-primary-hover);
  --bs-btn-hover-border-color: var(--fisip-primary-hover);
  --bs-btn-active-bg: var(--fisip-primary-active);
  --bs-btn-active-border-color: var(--fisip-primary-active);
  --bs-btn-focus-shadow-rgb: var(--fisip-primary-rgb);
  background-color: var(--fisip-primary);
  border-color: var(--fisip-primary);
}

.btn-outline-primary {
  --bs-btn-color: var(--fisip-primary);
  --bs-btn-border-color: rgba(var(--fisip-primary-rgb), 0.55);
  --bs-btn-hover-bg: var(--fisip-primary);
  --bs-btn-hover-border-color: var(--fisip-primary);
  --bs-btn-active-bg: var(--fisip-primary-hover);
  --bs-btn-active-border-color: var(--fisip-primary-hover);
  --bs-btn-focus-shadow-rgb: var(--fisip-primary-rgb);
  color: var(--fisip-primary);
  border-color: rgba(var(--fisip-primary-rgb), 0.55);
}

::selection {
  background: rgba(var(--fisip-primary-rgb), 0.22);
}

/* Bootstrap surface improvements for dark theme */
html[data-theme="dark"] .bg-white {
  background-color: var(--fisip-surface) !important;
}
html[data-theme="dark"] .bg-light {
  background-color: rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom {
  border-color: var(--fisip-border) !important;
}
html[data-theme="dark"] .text-muted {
  color: var(--fisip-muted) !important;
}

/* Better focus ring */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--fisip-ring);
  border-radius: 10px;
}

/* Layout helpers */
.container {
  max-width: var(--fisip-container);
}

/* Header / Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
}

html[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.78);
}

.site-header.is-scrolled {
  box-shadow: var(--fisip-shadow);
  border-bottom: 1px solid var(--fisip-border);
}

.site-logo {
  background: #ffffff;
  padding: 2px;
  border-radius: 12px;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.site-logo-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--fisip-border);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0.18)
  );
}

.site-title {
  line-height: 1.1;
}
.site-tagline {
  line-height: 1.1;
}

.site-nav {
  border-top: 1px solid var(--fisip-border);
  border-bottom: 1px solid var(--fisip-border);
  background: rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .site-nav {
  background: rgba(15, 23, 42, 0.55);
}

/* Navbar link as pills */
.site-nav .navbar-nav {
  gap: 4px;
}

.site-nav .nav-link {
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  color: var(--fisip-text);
  transition:
    background-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.site-nav .nav-link:hover {
  background: var(--fisip-primary-weak-2);
}

.site-nav .nav-link.active,
.site-nav .nav-link:focus {
  background: var(--fisip-primary-weak);
  box-shadow: 0 1px 0 rgba(var(--fisip-primary-rgb), 0.28) inset;
}

/* Dropdown look */
.dropdown-menu {
  border-radius: 16px;
  border-color: var(--fisip-border);
  box-shadow: var(--fisip-shadow-sm);
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
}

.dropdown-item:hover {
  background: var(--fisip-primary-weak-2);
}

.dropdown-item.active {
  background: var(--fisip-primary-weak);
  color: var(--fisip-text);
}

/* Multi-level dropdown (Top Bar) */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.1rem;
}

@media (min-width: 992px) {
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}

/* Buttons */
.btn {
  border-radius: 999px;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

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

.btn:active {
  transform: translateY(0);
}

/* Prevent hover transform from making hero CTA feel misaligned */
.hero .hero-overlay__panel .btn:hover,
.hero .hero-overlay__panel .btn:active {
  transform: none;
}

/* Surface cards */
.fisip-surface {
  border: 1px solid var(--fisip-border);
  border-radius: var(--fisip-radius);
  background: var(--fisip-surface);
  box-shadow: var(--fisip-shadow-sm);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.section-subtitle {
  color: var(--fisip-muted);
  margin: 0;
}

/* Hero */
.hero {
  position: relative;
  border-radius: var(--fisip-radius);
  overflow: hidden;
  box-shadow: var(--fisip-shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.55), transparent 55%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.35), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Ensure slide link + overlay panel stack correctly (home hero uses .hero-overlay) */
.hero .carousel-item {
  position: relative;
}

.hero .hero-slide-link {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Text overlay (no white card) */
.hero .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: left;
  padding: 2rem 6%;
  pointer-events: none;
}

.hero .hero-overlay__panel {
  pointer-events: auto;
  max-width: 980px;
  padding: 1.25rem 1.4rem;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.07);
  text-align: left;
  color: #ffffff;
}

.hero .hero-overlay__panel .badge-soft {
  display: none;
}

.hero .hero-overlay__panel h1 {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.hero .hero-overlay__panel .lead,
.hero .hero-overlay__panel .text-muted {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.hero .hero-overlay__panel .btn-outline-primary,
.hero .hero-overlay__panel .btn-outline-secondary {
  --bs-btn-color: rgba(255, 255, 255, 0.92);
  --bs-btn-border-color: rgba(255, 255, 255, 0.45);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.14);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.55);
}

/* Carousel controls should stay above overlay */
.hero .carousel-indicators,
.hero .carousel-control-prev,
.hero .carousel-control-next {
  z-index: 5;
}

/* Shrink Bootstrap carousel control hit-area so it doesn't cover CTA buttons */
.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: 3.25rem;
}

@media (max-width: 576px) {
  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    width: 2.75rem;
  }
}

@media (max-width: 768px) {
  .hero .hero-overlay {
    padding: 1.2rem 6%;
  }
}

.hero .carousel-item img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .hero .carousel-item img {
    height: 260px;
  }
}

.hero .carousel-caption {
  z-index: 2;
  text-align: left;
  left: 6%;
  right: 6%;
  bottom: 18%;
  color: #ffffff;
  /* Keep caption as clean overlay (no card/panel) */
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
}

.hero .carousel-caption h5 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hero .carousel-caption p {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Quick link cards */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

@media (max-width: 992px) {
  .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.quick-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--fisip-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.05);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

html[data-theme="dark"] .quick-link {
  background: rgba(15, 23, 42, 0.72);
}

.quick-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--fisip-shadow);
  border-color: rgba(var(--fisip-primary-rgb), 0.3);
}

.quick-link__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--fisip-primary-weak);
  color: var(--fisip-primary);
}

.quick-link__title {
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

.quick-link__desc {
  margin: 0;
  color: var(--fisip-muted);
  font-size: 0.9rem;
}

/* Quick link color variants (Home) */
.quick-link {
  border-color: var(--ql-border, var(--fisip-border));
  border-left: 6px solid var(--ql-accent, rgba(var(--fisip-primary-rgb), 0.32));
  background: var(--ql-bg, rgba(255, 255, 255, 0.72));
}

html[data-theme="dark"] .quick-link {
  background: var(--ql-bg-dark, rgba(15, 23, 42, 0.72));
}

.quick-link__icon {
  background: var(--ql-icon-bg, var(--fisip-primary-weak));
  color: var(--ql-icon-color, var(--fisip-primary));
}

.quick-link--nursing {
  --ql-accent: #dc2626;
  --ql-border: rgba(220, 38, 38, 0.24);
  --ql-icon-bg: rgba(220, 38, 38, 0.14);
  --ql-icon-color: #dc2626;
  --ql-bg: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.1),
    rgba(220, 38, 38, 0.02)
  );
  --ql-bg-dark: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.12),
    rgba(15, 23, 42, 0.72)
  );
}

.quick-link--medicine {
  --ql-accent: #2563eb;
  --ql-border: rgba(37, 99, 235, 0.24);
  --ql-icon-bg: rgba(37, 99, 235, 0.14);
  --ql-icon-color: #2563eb;
  --ql-bg: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.1),
    rgba(37, 99, 235, 0.02)
  );
  --ql-bg-dark: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.12),
    rgba(15, 23, 42, 0.72)
  );
}

.quick-link--siakad {
  --ql-accent: #4f46e5;
  --ql-border: rgba(79, 70, 229, 0.24);
  --ql-icon-bg: rgba(79, 70, 229, 0.14);
  --ql-icon-color: #4f46e5;
  --ql-bg: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.1),
    rgba(79, 70, 229, 0.02)
  );
  --ql-bg-dark: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.12),
    rgba(15, 23, 42, 0.72)
  );
}

.quick-link--bmn {
  --ql-accent: #059669;
  --ql-border: rgba(5, 150, 105, 0.24);
  --ql-icon-bg: rgba(5, 150, 105, 0.14);
  --ql-icon-color: #059669;
  --ql-bg: linear-gradient(
    135deg,
    rgba(5, 150, 105, 0.1),
    rgba(5, 150, 105, 0.02)
  );
  --ql-bg-dark: linear-gradient(
    135deg,
    rgba(5, 150, 105, 0.12),
    rgba(15, 23, 42, 0.72)
  );
}

/* Posts cards */
.card-post {
  border: 1px solid var(--fisip-border);
  border-radius: var(--fisip-radius);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  background: var(--fisip-surface);
}

.card-post:hover {
  transform: translateY(-2px);
  box-shadow: var(--fisip-shadow);
  border-color: rgba(var(--fisip-primary-rgb), 0.26);
}

.card-post .card-title {
  font-size: 1rem;
  line-height: 1.25;
}

.card-post .card-img-top {
  aspect-ratio: 16/10;
  object-fit: cover;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--fisip-border);
  background: rgba(255, 255, 255, 0.65);
  color: var(--fisip-muted);
  font-size: 0.75rem;
}

html[data-theme="dark"] .badge-soft {
  background: rgba(15, 23, 42, 0.65);
}

.list-group-item {
  border-color: var(--fisip-border);
}

.list-group-item-action {
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    background-color 0.18s ease;
}

.list-group-item-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.06);
}

/* Content / Prose */
.post-content img,
.content img {
  /* Hormati atribut width/height dari editor.
     Tetap responsif (tidak overflow container). */
  max-width: 100%;
  max-height: 75vh;
}

/* Default aman hanya jika TIDAK ada atribut width/height */
.post-content img:not([width]),
.content img:not([width]) {
  width: auto;
}

.post-content img:not([height]),
.content img:not([height]) {
  height: auto;
}
/* Quote / blockquote from editor */
.post-content blockquote,
.content blockquote {
  border-left: 4px solid rgba(var(--fisip-primary-rgb), 0.45);
  padding-left: 0.85rem;
  margin: 0.75rem 0;
  color: var(--fisip-muted);
}

.post-content blockquote > :last-child,
.content blockquote > :last-child {
  margin-bottom: 0;
}

/* Inline quote tag (if used / pasted from Word) */
.post-content q,
.content q {
  font-style: italic;
}

/* Inline image layout classes (from editor) */
.post-content img.img-center,
.content img.img-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Featured images & modal images on show pages */
.show-img {
  max-height: 75vh;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.show-img:not([width]) { width: auto; }
.show-img:not([height]) { height: auto; }
.post-content img.img-wide,
.content img.img-wide {
  display: block;
  max-width: 100%;
  max-height: 75vh;
}

/* Default aman bila tidak ada atribut */
.post-content img.img-wide:not([width]),
.content img.img-wide:not([width]) {
  width: auto;
}
.post-content img.img-wide:not([height]),
.content img.img-wide:not([height]) {
  height: auto;
}
.post-content img.img-left,
.content img.img-left {
  float: left;
  margin: 0.25rem 1rem 0.75rem 0;
  max-width: min(48%, 520px);
}

.post-content img.img-right,
.content img.img-right {
  float: right;
  margin: 0.25rem 0 0.75rem 1rem;
  max-width: min(48%, 520px);
}

@media (max-width: 576px) {
  .post-content img.img-left,
  .post-content img.img-right,
  .content img.img-left,
  .content img.img-right {
    float: none;
    display: block;
    margin: 0.6rem auto;
    max-width: 100%;
  }
}

/* Tables from editor */
.post-content table.content-table,
.content table.content-table {
  width: 100%;
  margin: 0.9rem 0;
}

.post-content table.content-table th,
.post-content table.content-table td,
.content table.content-table th,
.content table.content-table td {
  vertical-align: top;
}

@media (max-width: 768px) {
  .post-content table.content-table,
  .content table.content-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}



.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 1.2rem;
}
.post-featured {
  width: 100%;
  border-radius: var(--fisip-radius);
  object-fit: cover;
}

.prose {
  line-height: 1.8;
  color: var(--fisip-text);
}

.prose p {
  margin-bottom: 0.9rem;
}
.prose blockquote {
  border-left: 4px solid rgba(var(--fisip-primary-rgb), 0.4);
  padding-left: 12px;
  color: var(--fisip-muted);
}

/* Map embed */
.map-embed iframe {
  width: 100% !important;
  height: 320px !important;
  border: 0 !important;
  display: block;
}

/* Search modal */
body.modal-open-custom {
  overflow: hidden;
}

.site-search[aria-hidden="true"] {
  display: none;
}
.site-search {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.site-search__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
}

.site-search__panel {
  position: relative;
  margin: 10vh auto 0;
  width: min(820px, 92vw);
  background: var(--fisip-surface);
  border: 1px solid var(--fisip-border);
  border-radius: var(--fisip-radius);
  box-shadow: var(--fisip-shadow);
  padding: 16px;
}

.site-search__results {
  max-height: 52vh;
  overflow: auto;
}

.search-list {
  display: grid;
  gap: 10px;
}

.search-item {
  display: block;
  padding: 12px;
  border: 1px solid var(--fisip-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.02);
}

.search-item:hover {
  background: var(--fisip-primary-weak-2);
  border-color: rgba(var(--fisip-primary-rgb), 0.34);
}

.search-skeleton {
  padding: 12px;
  color: var(--fisip-muted);
}

/* Floating action button */
.site-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  box-shadow: var(--fisip-shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.site-fab.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Footer */
.site-footer {
  /* Footer follows primary color (admin configurable) */
  background: var(--fisip-primary) !important;
  border-top: 0;
  color: rgb(0, 0, 0);
  /* color: rgba(255, 255, 255, 0.92); */
}

html[data-theme="dark"] .site-footer {
  background: var(--fisip-primary) !important;
}

.footer-link {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.2rem 0;
}

.footer-link:hover {
  color: #ffffff;
}

.social-pill {
  display: inline-flex;
  width: 40px;
  height: 40px;
  font-size: 24px; /* ini ukuran ikon */
  line-height: 1;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 0, 255, 0.14);
  color: #ffffff;
  text-decoration: none;
}

html[data-theme="dark"] .social-pill {
  background: rgba(255, 255, 255, 0.12);
}

.social-pill:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.22);
}

/* Brand colors (footer social icons) */
.social-pill.social-facebook {
  color: #1877f2;
}

.social-pill.social-x {
  color: #ffffff;
  background: #000000;
  border-color: rgba(255, 255, 255, 0.45);
}

.social-pill.social-x:hover {
  background: #111111;
  border-color: rgba(255, 255, 255, 0.65);
}

.social-pill.social-youtube {
  color: #ff0000;
}

.social-pill.social-linkedin {
  color: #0a66c2;
}

.social-pill.social-whatsapp {
  color: #25d366;
}

.social-pill.social-tiktok {
  color: #00f2ea;
}

/* Instagram logo is typically a gradient background with white glyph */
.social-pill.social-instagram {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: radial-gradient(
    circle at 30% 110%,
    #fdf497 0%,
    #fd5949 35%,
    #d6249f 60%,
    #285aeb 100%
  );
}

.social-pill.social-instagram:hover {
  border-color: rgba(255, 255, 255, 0.65);
  filter: brightness(1.05);
}

/* Motion / reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 0.45s ease,
      transform 0.45s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================
   Floating Translate (GTranslate)
   ============================== */

/* Pastikan widget selalu di atas FAB / modal ringan */

/* ===== Gallery ===== */
.section {
  padding: 48px 0;
}

.hero-mini {
  position: relative;
  padding: 42px 0 22px;
  background: linear-gradient(
    180deg,
    rgba(var(--fisip-primary-rgb), 0.12),
    rgba(var(--fisip-primary-rgb), 0.03)
  );
  border-bottom: 1px solid var(--fisip-border);
}

.hero-mini .hero-title {
  font-size: 1.75rem;
  margin: 0;
}

.hero-mini .hero-subtitle {
  color: var(--fisip-muted);
  max-width: 56ch;
  margin: 0;
}

.gallery-thumb {
  background: transparent;
  text-align: left;
}

.gallery-thumb-inner {
  position: relative;
  width: 100%;
  padding-top: 75%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--fisip-shadow-sm);
}

.gallery-thumb-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-thumb:hover .gallery-thumb-inner img {
  transform: scale(1.03);
}

/* Jangan tampilkan switcher default GTranslate di body (agar tidak menutup menu)
   NOTE: jangan pakai display:none (terlalu agresif) karena beberapa versi widget
   butuh elemen ini tetap hidup. Kita geser saja ke luar layar. */
body > .gt_float_switcher,
body > .gt_switcher {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* Sembunyikan semua panah bawaan GTranslate (hindari caret ganda) */
.gt_float_switcher [class*="arrow"],
.gt_switcher [class*="arrow"] {
  display: none !important;
}

/* Cursor pointer untuk area klik */
.gt_float_switcher .gt-selected,
.gt_switcher .gt-selected {
  cursor: pointer;
}

.gt_float_switcher {
  z-index: 1060 !important;
}

/* Translate switcher: embedded (bukan floating), tapi tetap punya anchor untuk dropdown */
.gt_float_switcher {
  position: relative !important;
  inset: auto !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.1;
  /* cegah widget muncul di lokasi default sebelum dipindahkan ke header */
  visibility: hidden;
}

.gtranslate_wrapper .gt_float_switcher {
  visibility: visible;
}

/* Kompatibilitas: sebagian build GTranslate memakai class .gt_switcher */
.gt_switcher {
  z-index: 1060 !important;
  position: relative !important;
  inset: auto !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.1;
  visibility: hidden;
}
.gtranslate_wrapper .gt_switcher {
  visibility: visible;
}
.gt_switcher .gt-selected {
  border-radius: 999px !important;
}

.gt_float_switcher .gt-selected {
  border-radius: 999px !important;
  border: 1px solid var(--fisip-border) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--fisip-shadow-sm) !important;
  padding: 0.28rem 0.48rem !important; /* sebelumnya terlalu besar */
  gap: 0.35rem !important;
  min-width: auto !important;
  width: auto !important;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.gt_float_switcher .gt-selected:hover {
  border-color: rgba(var(--fisip-primary-rgb), 0.4) !important;
  transform: translateY(-1px);
}

html[data-theme="dark"] .gt_float_switcher .gt-selected {
  background: rgba(15, 23, 42, 0.92) !important;
}

.gt_float_switcher .gt-selected .gt-current-lang {
  color: var(--fisip-text) !important;
  font-weight: 600;
  font-size: 0.82rem !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Ukuran ikon/flag lebih kecil */
.gt_float_switcher img {
  width: 16px !important;
  height: 16px !important;
  object-fit: cover;
}

.gt_float_switcher .gt_options {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  bottom: auto !important;
  left: auto !important;
  right: 0 !important;

  width: 260px !important;
  max-height: min(60vh, 360px) !important;
  overflow: auto !important;

  border-radius: 16px !important;
  border: 1px solid var(--fisip-border) !important;
  box-shadow: var(--fisip-shadow) !important;
  background: var(--fisip-surface) !important;
  z-index: 2000 !important;
}

.gt_float_switcher .gt_options a {
  color: var(--fisip-text) !important;
  font-size: 0.85rem !important;
  padding: 0.4rem 0.55rem !important;
}
.gt_float_switcher .gt_options a:hover {
  background: var(--fisip-primary-weak-2) !important;
}

@media (max-width: 480px) {
  .gt_float_switcher {
    font-size: 11px !important;
  }
  .gt_float_switcher .gt-selected {
    padding: 0.24rem 0.42rem !important;
  }
  .gt_float_switcher img {
    width: 14px !important;
    height: 14px !important;
  }
}

/* ==============================
   Read Next/Prev navigation cards
   ============================== */

.read-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.read-nav__item {
  flex: 1 1 320px;
  display: block;
  text-decoration: none;
  background: var(--fisip-surface);
  border: 1px solid var(--fisip-border);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--fisip-shadow-sm);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
  min-height: 78px;
}

.read-nav__item:hover {
  transform: translateY(-1px);
  box-shadow: var(--fisip-shadow);
  border-color: rgba(var(--fisip-primary-rgb), 0.28);
}

.read-nav__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  color: var(--fisip-primary);
  margin-bottom: 6px;
}

.read-nav__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2; /* standard property (for editor/linter compatibility) */
  overflow: hidden;
  line-height: 1.25;
  color: var(--fisip-text);
  font-size: 14px;
}

.read-nav__item--next {
  text-align: right;
}

.read-nav__item--next .read-nav__kicker {
  justify-content: flex-end;
}

.read-nav__empty {
  flex: 1 1 320px;
}

/* ==============================
   Footer (polished)
   ============================== */

.site-footer {
  background: linear-gradient(
    180deg,
    rgba(var(--fisip-primary-rgb), 0.98),
    rgba(var(--fisip-primary-rgb), 0.86)
  ) !important;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  /* NOTE: sebelumnya ada highlight radial yang bisa terlihat seperti "belang putih".
     Kita matikan agar footer terlihat rata dan bersih. */
  content: none;
}

.site-footer .text-muted {
  color: rgba(255, 255, 255, 0.84) !important;
}

.site-footer .footer-link {
  color: rgba(255, 255, 255, 0.92);
  opacity: 0.95;
}

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

.site-footer .social-pill {
  transition:
    transform 0.12s ease,
    background 0.12s ease,
    border-color 0.12s ease;
}

.site-footer .social-pill:hover {
  transform: translateY(-1px);
}

.site-footer .footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgb(255, 255, 255);
  position: relative;
  z-index: 1;
}

/* Translate switcher: embedded di header (tidak menutup elemen lain) */
.site-header .header-translate {
  display: inline-flex;
  align-items: center;
}
.site-header .gtranslate_wrapper {
  display: inline-flex;
  align-items: center;
}
.site-header .gt_float_switcher {
  z-index: 1031 !important;
}
.site-header .gt_float_switcher .gt-selected {
  margin: 0 !important;
}

/* Perbaiki tanda panah dropdown (selalu mengarah ke bawah) */
.site-header .gt_float_switcher .gt-selected {
  position: relative;
  padding-right: 24px !important;
}
.site-header .gt_float_switcher .gt-selected::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
  pointer-events: none;
}

/* Saat dropdown terbuka, panah berputar ke atas */
.site-header .gt_float_switcher.gt-open .gt-selected::after {
  transform: translateY(-50%) rotate(180deg);
}
/* Hide arrow bawaan bila ada */
.site-header .gt_float_switcher .gt_float_switcher_arrow {
  display: none !important;
}

/* === Translate widget in header (non-floating) === */
.header-translate {
  position: relative;
  z-index: 1032;
}
.header-translate .gtranslate_wrapper {
  display: inline-flex;
  align-items: center;
}

/* Ensure dropdown is anchored under the pill and aligned to the right */
.header-translate .gtranslate_wrapper .gt_float_switcher,
.header-translate .gtranslate_wrapper .gt_switcher {
  position: relative !important;
  display: inline-block !important;
}

.header-translate .gtranslate_wrapper .gt_options {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  bottom: auto !important;
  left: auto !important;
  right: 0 !important;
  z-index: 2000 !important;
}

/* === Language switcher (custom, di header kanan atas) === */
.flag-img {
  width: 18px;
  height: 12px;
  display: inline-block;
  /* border-radius: 2px; */
  object-fit: cover;
  box-shadow:
    0 0 0 2px var(--flag-outline),
    inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  flex: 0 0 auto;
}

.flag-icon {
  width: 18px;
  height: 12px;
  display: inline-block;
  /* border-radius: 2px; */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    0 0 0 2px var(--flag-outline),
    inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  flex: 0 0 auto;
}
.flag-id {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2218%22%20height=%2212%22%20viewBox=%220%200%2018%2012%22%3E%20%3Crect%20width=%2218%22%20height=%226%22%20y=%220%22%20fill=%22#CE1126%22/%3E%20%3Crect%20width=%2218%22%20height=%226%22%20y=%226%22%20fill=%22#FFFFFF%22/%3E%20%3C/svg%3E");
}
.flag-gb {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2218%22%20height=%2212%22%20viewBox=%220%200%2018%2012%22%3E%20%3Crect%20width=%2218%22%20height=%2212%22%20fill=%22#012169%22/%3E%20%3Cpath%20d=%22M0%200%20L7%200%20L18%207%20L18%2012%20L11%2012%20L0%205%20Z%22%20fill=%22#FFFFFF%22%20opacity=%220.9%22/%3E%20%3Cpath%20d=%22M18%200%20L11%200%20L0%207%20L0%2012%20L7%2012%20L18%205%20Z%22%20fill=%22#FFFFFF%22%20opacity=%220.9%22/%3E%20%3Cpath%20d=%22M0%200%20L8%200%20L18%206%20L18%208%20L10%208%20L0%202%20Z%22%20fill=%22#C8102E%22/%3E%20%3Cpath%20d=%22M18%200%20L10%200%20L0%206%20L0%208%20L8%208%20L18%202%20Z%22%20fill=%22#C8102E%22/%3E%20%3Crect%20x=%227%22%20width=%224%22%20height=%2212%22%20fill=%22#FFFFFF%22/%3E%20%3Crect%20y=%224%22%20width=%2218%22%20height=%224%22%20fill=%22#FFFFFF%22/%3E%20%3Crect%20x=%227.6%22%20width=%222.8%22%20height=%2212%22%20fill=%22#C8102E%22/%3E%20%3Crect%20y=%224.6%22%20width=%2218%22%20height=%222.8%22%20fill=%22#C8102E%22/%3E%20%3C/svg%3E");
}
.flag-sa {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2218%22%20height=%2212%22%20viewBox=%220%200%2018%2012%22%3E%20%3Crect%20width=%2218%22%20height=%2212%22%20fill=%22#006C35%22/%3E%20%3Crect%20x=%223%22%20y=%225.4%22%20width=%2212%22%20height=%221.2%22%20fill=%22#FFFFFF%22%20opacity=%220.9%22/%3E%20%3C/svg%3E");
}
.flag-my {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2218%22%20height=%2212%22%20viewBox=%220%200%2018%2012%22%3E%20%3Crect%20width=%2218%22%20height=%2212%22%20fill=%22#FFFFFF%22/%3E%20%3Cg%20fill=%22#CC0001%22%3E%20%3Crect%20y=%220%22%20width=%2218%22%20height=%221%22/%3E%20%3Crect%20y=%222%22%20width=%2218%22%20height=%221%22/%3E%20%3Crect%20y=%224%22%20width=%2218%22%20height=%221%22/%3E%20%3Crect%20y=%226%22%20width=%2218%22%20height=%221%22/%3E%20%3Crect%20y=%228%22%20width=%2218%22%20height=%221%22/%3E%20%3Crect%20y=%2210%22%20width=%2218%22%20height=%221%22/%3E%20%3C/g%3E%20%3Crect%20width=%228%22%20height=%226.5%22%20fill=%22#010066%22/%3E%20%3Ccircle%20cx=%223.1%22%20cy=%223.25%22%20r=%221.6%22%20fill=%22#FFCC00%22/%3E%20%3Ccircle%20cx=%223.55%22%20cy=%223.25%22%20r=%221.3%22%20fill=%22#010066%22/%3E%20%3C/svg%3E");
}
.flag-cn {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2218%22%20height=%2212%22%20viewBox=%220%200%2018%2012%22%3E%20%3Crect%20width=%2218%22%20height=%2212%22%20fill=%22#DE2910%22/%3E%20%3Cpolygon%20points=%223,1.2%203.6,3%205.5,3%204,4.1%204.6,5.9%203,4.8%201.4,5.9%202,4.1%200.5,3%202.4,3%22%20fill=%22#FFDE00%22/%3E%20%3C/svg%3E");
}
.flag-jp {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2218%22%20height=%2212%22%20viewBox=%220%200%2018%2012%22%3E%20%3Crect%20width=%2218%22%20height=%2212%22%20fill=%22#FFFFFF%22/%3E%20%3Ccircle%20cx=%229%22%20cy=%226%22%20r=%223.3%22%20fill=%22#BC002D%22/%3E%20%3C/svg%3E");
}
.flag-kr {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2218%22%20height=%2212%22%20viewBox=%220%200%2018%2012%22%3E%20%3Crect%20width=%2218%22%20height=%2212%22%20fill=%22#FFFFFF%22/%3E%20%3Cpath%20d=%22M9%203.1a2.9%202.9%200%201%200%200%205.8a1.45%201.45%200%201%201%200-2.9a1.45%201.45%200%201%200%200-2.9z%22%20fill=%22#C60C30%22/%3E%20%3Cpath%20d=%22M9%203.1a1.45%201.45%200%201%201%200%202.9a1.45%201.45%200%201%200%200%202.9a2.9%202.9%200%200%200%200-5.8z%22%20fill=%22#003478%22/%3E%20%3C/svg%3E");
}
.flag-fr {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2218%22%20height=%2212%22%20viewBox=%220%200%2018%2012%22%3E%20%3Crect%20width=%226%22%20height=%2212%22%20x=%220%22%20fill=%22#0055A4%22/%3E%20%3Crect%20width=%226%22%20height=%2212%22%20x=%226%22%20fill=%22#FFFFFF%22/%3E%20%3Crect%20width=%226%22%20height=%2212%22%20x=%2212%22%20fill=%22#EF4135%22/%3E%20%3C/svg%3E");
}
.flag-de {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2218%22%20height=%2212%22%20viewBox=%220%200%2018%2012%22%3E%20%3Crect%20width=%2218%22%20height=%224%22%20y=%220%22%20fill=%22#000000%22/%3E%20%3Crect%20width=%2218%22%20height=%224%22%20y=%224%22%20fill=%22#DD0000%22/%3E%20%3Crect%20width=%2218%22%20height=%224%22%20y=%228%22%20fill=%22#FFCE00%22/%3E%20%3C/svg%3E");
}
.flag-es {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2218%22%20height=%2212%22%20viewBox=%220%200%2018%2012%22%3E%20%3Crect%20width=%2218%22%20height=%2212%22%20fill=%22#AA151B%22/%3E%20%3Crect%20width=%2218%22%20height=%226%22%20y=%223%22%20fill=%22#F1BF00%22/%3E%20%3C/svg%3E");
}
.flag-nl {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2218%22%20height=%2212%22%20viewBox=%220%200%2018%2012%22%3E%20%3Crect%20width=%2218%22%20height=%224%22%20y=%220%22%20fill=%22#AE1C28%22/%3E%20%3Crect%20width=%2218%22%20height=%224%22%20y=%224%22%20fill=%22#FFFFFF%22/%3E%20%3Crect%20width=%2218%22%20height=%224%22%20y=%228%22%20fill=%22#21468B%22/%3E%20%3C/svg%3E");
}

.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
}
.lang-switcher__flag {
  margin-right: 0.25rem;
}
.lang-switcher__code {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.lang-switcher__chev {
  font-size: 0.85rem;
  transition: transform 0.15s ease;
}
.dropdown.show .lang-switcher__chev {
  transform: rotate(180deg);
}
.lang-switcher__menu {
  min-width: 240px;
}
.lang-switcher__menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lang-switcher__menu .dropdown-item .flag-img {
  width: 18px;
  height: 12px;
}
.lang-switcher__menu .dropdown-item.active {
  font-weight: 600;
}

/* Wrapper widget GTranslate disembunyikan (hanya untuk load engine translate) */
.gtranslate-hidden {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* === Google Translate UI (banner/tooltip) ===
   Saat halaman diterjemahkan, Google sering menyisipkan banner/tooltip yang
   menggeser layout (mis. "Diterjemahkan ke..." / "Show original").
   CSS ini menyembunyikan elemen-elemen tersebut agar tampilan tetap rapi.
*/
iframe.goog-te-banner-frame,
iframe.goog-te-menu-frame,
.goog-te-banner-frame,
.goog-te-menu-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
#goog-gt-vt,
.goog-tooltip,
.goog-tooltip:hover,
.goog-te-spinner-pos {
  display: none !important;
  visibility: hidden !important;
}

/* === Google Translate "translate.goog" / GTranslate newer banner classes (VIpgJd-...) ===
   Beberapa versi widget menambah toolbar fixed di atas dengan class acak "VIpgJd-...".
   Toolbar ini mengganggu layout; sembunyikan wrappernya.
*/
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-SxgK2b,
[class*="VIpgJd-ZVi9od-ORHb"],
[class*="VIpgJd-ZVi9od-l4eHX"],
[class*="VIpgJd-ZVi9od-aZ2wEe"] {
  display: none !important;
  visibility: hidden !important;
}

/* Jangan hilangkan teks saat Google memberi highlight */
.goog-text-highlight {
  background: transparent !important;
  box-shadow: none !important;
}

html,
body {
  margin-top: 0 !important;
  top: 0 !important;
}

/* === Video Gallery === */
.card-video {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  padding: 0;
}

.card-video:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.35);
  outline-offset: 2px;
}

.card-video-media {
  position: relative;
  overflow: hidden;
}

.card-video-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.card-video:hover .card-video-media img {
  transform: scale(1.02);
  transition: transform 180ms ease;
}

/* =========================================================
   Hide Google Translate toolbar/banner (tanpa mematikan translate)
   - berlaku untuk UI lama (goog-*) dan UI baru (VIpgJd-*)
   ========================================================= */
iframe.goog-te-banner-frame,
iframe#goog-te-banner-frame,
#goog-gt-tt,
#goog-gt-vt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover,
.goog-te-spinner-pos,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-SxgK2b,
.VIpgJd-yAWNEb-L7lbkb,
.VIpgJd-suEOdc {
  display: none !important;
  visibility: hidden !important;
}

/* Saat translate aktif, Google kadang menambah offset top/padding.
   Kita nol-kan agar layout tidak turun. */
html.translated-ltr,
html.translated-rtl {
  top: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
html.translated-ltr body,
html.translated-rtl body {
  top: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Standard styling for embedded iframes produced by the editor/sanitizer */
.embed-iframe {
  border: 0;
  max-width: 100%;
  display: block;
}

/* Bootstrap tidak menyediakan text-align:justify util secara default.
   Digunakan oleh konten hasil editor (class-only) untuk opsi Justify. */
.text-justify {
  text-align: justify !important;
}

/* =========================================================
   CMS Content Palette (safe class-only)
   - Dipakai oleh WYSIWYG agar admin bisa memilih warna tetap aman.
   - TANPA inline-style, TANPA JS.
   ========================================================= */
.c-text-white {
  color: #ffffff !important;
}
.c-text-black {
  color: #000000 !important;
}
.c-text-gray-light {
  color: #f2f2f2 !important;
}
.c-text-gray {
  color: #b0b0b0 !important;
}
.c-text-gray-dark {
  color: #333333 !important;
}
.c-text-red {
  color: #e74c3c !important;
}
.c-text-red-bright {
  color: #ff3b3b !important;
}
.c-text-orange {
  color: #f39c12 !important;
}
.c-text-yellow {
  color: #f1c40f !important;
}
.c-text-green {
  color: #2ecc71 !important;
}
.c-text-green-bright {
  color: #27ae60 !important;
}
.c-text-blue {
  color: #1e90ff !important;
}
.c-text-blue-light {
  color: #00bfff !important;
}
.c-text-indigo {
  color: #4b0082 !important;
}
.c-text-purple {
  color: #8e44ad !important;
}
.c-text-pink-pastel {
  color: #fadadd !important;
}
.c-text-mint {
  color: #a8e6cf !important;
}
.c-text-lavender {
  color: #e6d9ff !important;
}
.c-text-peach {
  color: #ffd6a5 !important;
}
.c-text-baby-blue {
  color: #cdefff !important;
}
.c-bg-white {
  background-color: #ffffff !important;
}
.c-bg-black {
  background-color: #000000 !important;
}
.c-bg-gray-light {
  background-color: #f2f2f2 !important;
}
.c-bg-gray {
  background-color: #b0b0b0 !important;
}
.c-bg-gray-dark {
  background-color: #333333 !important;
}
.c-bg-red {
  background-color: #e74c3c !important;
}
.c-bg-red-bright {
  background-color: #ff3b3b !important;
}
.c-bg-orange {
  background-color: #f39c12 !important;
}
.c-bg-yellow {
  background-color: #f1c40f !important;
}
.c-bg-green {
  background-color: #2ecc71 !important;
}
.c-bg-green-bright {
  background-color: #27ae60 !important;
}
.c-bg-blue {
  background-color: #1e90ff !important;
}
.c-bg-blue-light {
  background-color: #00bfff !important;
}
.c-bg-indigo {
  background-color: #4b0082 !important;
}
.c-bg-purple {
  background-color: #8e44ad !important;
}
.c-bg-pink-pastel {
  background-color: #fadadd !important;
}
.c-bg-mint {
  background-color: #a8e6cf !important;
}
.c-bg-lavender {
  background-color: #e6d9ff !important;
}
.c-bg-peach {
  background-color: #ffd6a5 !important;
}
.c-bg-baby-blue {
  background-color: #cdefff !important;
}

/* Tabel minimalis bergaris (garis horizontal saja) */
table.table-minimal {
  border: 0;
}
table.table-minimal > :not(caption) > * > * {
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
table.table-minimal thead th {
  border-bottom: 2px solid rgba(0, 0, 0, 0.18);
}

/* Zebra berwarna (override Bootstrap --bs-table-striped-bg) */
table.c-table-zebra-white {
  --bs-table-striped-bg: #ffffff;
}
table.c-table-zebra-black {
  --bs-table-striped-bg: #000000;
  --bs-table-striped-color: #ffffff;
}
table.c-table-zebra-gray-light {
  --bs-table-striped-bg: #f2f2f2;
}
table.c-table-zebra-gray {
  --bs-table-striped-bg: #b0b0b0;
}
table.c-table-zebra-gray-dark {
  --bs-table-striped-bg: #333333;
  --bs-table-striped-color: #ffffff;
}
table.c-table-zebra-red {
  --bs-table-striped-bg: #e74c3c;
}
table.c-table-zebra-red-bright {
  --bs-table-striped-bg: #ff3b3b;
}
table.c-table-zebra-orange {
  --bs-table-striped-bg: #f39c12;
}
table.c-table-zebra-yellow {
  --bs-table-striped-bg: #f1c40f;
}
table.c-table-zebra-green {
  --bs-table-striped-bg: #2ecc71;
}
table.c-table-zebra-green-bright {
  --bs-table-striped-bg: #27ae60;
}
table.c-table-zebra-blue {
  --bs-table-striped-bg: #1e90ff;
}
table.c-table-zebra-blue-light {
  --bs-table-striped-bg: #00bfff;
}
table.c-table-zebra-indigo {
  --bs-table-striped-bg: #4b0082;
  --bs-table-striped-color: #ffffff;
}
table.c-table-zebra-purple {
  --bs-table-striped-bg: #8e44ad;
  --bs-table-striped-color: #ffffff;
}
table.c-table-zebra-pink-pastel {
  --bs-table-striped-bg: #fadadd;
}
table.c-table-zebra-mint {
  --bs-table-striped-bg: #a8e6cf;
}
table.c-table-zebra-lavender {
  --bs-table-striped-bg: #e6d9ff;
}
table.c-table-zebra-peach {
  --bs-table-striped-bg: #ffd6a5;
}
table.c-table-zebra-baby-blue {
  --bs-table-striped-bg: #cdefff;
}

/* Judul tabel berwarna (thead) */
table.table-title-color thead th {
  background-color: var(--c-table-head-bg, #f2f2f2);
  color: var(--c-table-head-color, #000000);
  border-bottom: 2px solid rgba(0, 0, 0, 0.18);
}
table.table-title-color thead th a {
  color: inherit;
}
table.c-table-head-white {
  --c-table-head-bg: #ffffff;
}
table.c-table-head-black {
  --c-table-head-bg: #000000;
  --c-table-head-color: #ffffff;
}
table.c-table-head-gray-light {
  --c-table-head-bg: #f2f2f2;
}
table.c-table-head-gray {
  --c-table-head-bg: #b0b0b0;
}
table.c-table-head-gray-dark {
  --c-table-head-bg: #333333;
  --c-table-head-color: #ffffff;
}
table.c-table-head-red {
  --c-table-head-bg: #e74c3c;
  --c-table-head-color: #ffffff;
}
table.c-table-head-red-bright {
  --c-table-head-bg: #ff3b3b;
  --c-table-head-color: #ffffff;
}
table.c-table-head-orange {
  --c-table-head-bg: #f39c12;
}
table.c-table-head-yellow {
  --c-table-head-bg: #f1c40f;
}
table.c-table-head-green {
  --c-table-head-bg: #2ecc71;
}
table.c-table-head-green-bright {
  --c-table-head-bg: #27ae60;
}
table.c-table-head-blue {
  --c-table-head-bg: #1e90ff;
  --c-table-head-color: #ffffff;
}
table.c-table-head-blue-light {
  --c-table-head-bg: #00bfff;
}
table.c-table-head-indigo {
  --c-table-head-bg: #4b0082;
  --c-table-head-color: #ffffff;
}
table.c-table-head-purple {
  --c-table-head-bg: #8e44ad;
  --c-table-head-color: #ffffff;
}
table.c-table-head-pink-pastel {
  --c-table-head-bg: #fadadd;
}
table.c-table-head-mint {
  --c-table-head-bg: #a8e6cf;
}
table.c-table-head-lavender {
  --c-table-head-bg: #e6d9ff;
}
table.c-table-head-peach {
  --c-table-head-bg: #ffd6a5;
}
table.c-table-head-baby-blue {
  --c-table-head-bg: #cdefff;
}

/* ===========================================================
   People Directory (Dosen/Tendik) - Cards + Hover Overlay
   =========================================================== */

.people-search {
  min-width: 280px;
}

.person-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.person-card:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.35);
  outline-offset: 2px;
}

.person-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
  border-color: rgba(13, 110, 253, 0.25);
}

.person-card--disabled {
  cursor: default;
}

.person-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f2f3f5;
}

@supports not (aspect-ratio: 4 / 5) {
  .person-card__media {
    height: 280px;
  }
}

.person-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 0.25s ease;
  display: block;
}

.person-card:hover .person-card__img {
  transform: scale(1.06);
}

.person-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 28%,
    rgba(0, 0, 0, 0.74) 100%
  );
  opacity: 0;
  transition: opacity 0.22s ease;
}

.person-card:hover .person-card__overlay,
.person-card--disabled:hover .person-card__overlay {
  opacity: 1;
}

.person-card__overlay-inner {
  width: 100%;
  color: #fff;
}

.person-card__name {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}

.person-card__meta {
  font-size: 0.88rem;
  opacity: 0.95;
  line-height: 1.25;
}

.person-card__hint {
  font-size: 0.82rem;
  opacity: 0.95;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 8px;
}

.person-card__body {
  padding: 12px 14px 14px 14px;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.person-card:hover .person-card__body {
  opacity: 0.18;
  transform: translateY(6px);
}

.person-card__title {
  font-weight: 600;
  line-height: 1.25;
}

/* ===========================================================
   People Directory (Dosen/Tendik) - Detail Photo (Fixed Frame)
   - Uniform size across profiles
   - No distortion (object-fit)
   =========================================================== */

.person-detail-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: #f2f3f5;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  margin-left: auto;
  margin-right: auto;
}

@supports not (aspect-ratio: 4 / 5) {
  .person-detail-photo {
    height: 400px;
  }
}

.person-detail-photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===========================================================
   Global Breadcrumb (Frontend)
   - Consistent breadcrumb bar below navbar
   =========================================================== */

.site-breadcrumb .breadcrumb {
  font-size: 0.92rem;
}

.site-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  opacity: 0.65;
}

.site-breadcrumb a {
  text-decoration: none;
}

.site-breadcrumb a:hover {
  text-decoration: underline;
}
