:root {
  --brand: #f10302;
  --secondary-brand: #d80303ff;
  --accent: #10b1eb;
  --secondary-accent: #fbad18;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --bg-soft: #f8fafc;
  --bg-secondary: #57256c;
  --radius: 1.5rem;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
body {
  color: var(--text-main);
  background: #362525ff;
}

.profile-illustration {
  width: 24rem;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: inline-block;
}

.profile-illustration-col {
  text-align: center;
}

@media (max-width: 768px) {
  .profile-illustration {
    width: 14rem;
  }
  .profile-illustration-col {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

.container {
  max-width: 1200px;
}

.bg-body {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.mt-10 {
  margin-top: 10rem;
}

.bg-accent {
  background-color: var(--accent);
}
a {
  color: var(--brand);
  text-decoration: none !important;
  font-weight: 400;
  transition: color 1s ease-in-out;
}

a:hover {
  color: var(--secondary-brand);
}

.text-primary {
  color: var(--brand) !important;
}
.text-accent {
  color: var(--accent) !important;
}

.text-center h2.fw-bold::after {
  content: '';
  display: block;

  width: 100px;
  height: 4px;
  background-color: var(--accent);

  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;

  border-radius: 2px;
}

.text-center h3.fw-bold::after {
  content: '';
  display: block;

  width: 100px;
  height: 4px;
  background-color: var(--bg-soft);

  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;

  border-radius: 2px;
}

h1.fw-bold::after {
  content: '';
  display: block;

  width: 100px;
  height: 4px;
  background-color: var(--secondary-accent);

  margin-top: 10px;
  margin-left: 0;
  margin-right: auto;

  border-radius: 2px;
}

.navbar-glass {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  /* border-bottom: 1px solid rgba(2, 6, 23, 0.06) !important; */
  box-shadow: 0 6px 24px rgba(2, 6, 23, 0.06);
  border-bottom: 0.2rem solid var(--accent);
}

/* Nav item */
.navbar .nav-link {
  font-weight: 600;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #000;
}
.navbar .nav-link .bi {
  opacity: 0.9;
}

.navbar .nav-link:hover {
  color: var(--secondary-accent);
}

/* Dropdown style */
.navbar .dropdown-menu {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
  padding: 0.5rem;
}
.navbar .dropdown-item {
  font-weight: 600;
  font-size: 1.3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar .dropdown-item:hover {
  background: rgba(13, 110, 253, 0.08);
}

.brand-logo {
  height: 86px;
  width: auto;
  display: block;
  object-fit: contain;
}

.section {
  padding: 80px 0;
}
.section-sm {
  padding: 56px 0;
}

.section,
.section-sm {
  position: relative;
}

/* Card Style */
.card-clean {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* animasi hover */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform, box-shadow;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
}
.card-hover:active {
  transform: translateY(-1px);
}

.card-hover:hover {
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.12), 0 0 0 3px rgba(13, 129, 253, 0.08) inset;
}

.card-hover .bi {
  transition: transform 0.25s ease;
}
.card-hover:hover .bi {
  transform: translateY(-2px) rotate(-3deg);
}

@media (prefers-reduced-motion: reduce) {
  .card-hover,
  .card-hover .bi {
    transition: none;
  }
}

.bg-soft {
  background: var(--bg-soft);
}
.bg-accent {
  background: var(--accent);
  color: var(--bg-soft);
}
.bg-accent p {
  color: var(--bg-soft);
}
.bg-primary {
  background: var(--brand) !important;
}
.bg-secondary {
  background: var(--bg-secondary) !important;
}

.lead-muted {
  color: var(--text-muted);
}
.rounded-2xl {
  border-radius: 1.25rem;
}
.btn-primary {
  background-color: var(--brand) !important;
  border-color: var(--secondary-brand) !important;
  font-weight: bold;
}

.btn-primary:hover {
  background-color: var(--secondary-brand) !important;
  border-color: var(--brand) !important;
}
.btn-shadow {
  box-shadow: 0 8px 16px rgba(255, 0, 0, 0.2);
}
.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  padding: 80px 0 0 0;
}

.hero-illustration {
  background: radial-gradient(60% 60% at 70% 20%, rgba(13, 110, 253, 0.12) 0%, rgba(13, 110, 253, 0) 60%),
    radial-gradient(60% 60% at 20% 70%, rgba(25, 135, 84, 0.1) 0%, rgba(25, 135, 84, 0) 60%);
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.auth-container {
  min-height: 70vh;
}

.object-cover {
  object-fit: cover;
}

#map {
  width: 100%;
  height: 100%;
}

/* ====== Hero Image Style ====== */
.img-hero {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(2, 6, 23, 0.06);
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
.img-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.1);
}

/* === STYLING LOGO  === */
.footer-logo-slot {
  width: 180px;
  display: inline-flex;
  align-items: center;
}
.footer-logo {
  height: 86px !important;
  width: auto;
  object-fit: contain;
  display: block;
}

.ornamen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -9999;
  /* opacity: 0.6; */
  pointer-events: none;
  animation: ornamenFloat 10s ease-in-out infinite;
}

@keyframes ornamenFloat {
  0% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.05) translateY(-5px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

.ornamen {
  animation: ornamenFloat 10s ease-in-out infinite;
}

.ornamen:hover {
  opacity: 1;
}

.pt-10 {
  padding-top: 10rem;
}

@media (max-width: 768px) {
  .mt-10 {
    margin-top: 1rem;
  }
  .pt-10 {
    padding-top: 5rem;
  }
  h1.fw-bold::after {
    margin-right: auto;
    margin-left: auto;
  }
}

/* Footer Style */

.bg-blue {
  background-color: #0067bd;

  color: rgba(255, 255, 255, 0.8);

  border-top: none !important;
}

.bg-blue .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

.bg-blue h6 {
  color: #ffffff;
}

.bg-blue a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bg-blue a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

.bg-blue .border-bottom {
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.footer-links {
  padding-left: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--secondary-brand);
}

/* Aksen Melayang */
.accent {
  position: absolute;
  z-index: 0;
  opacity: 0.7;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.06));
  animation: floatY 6s ease-in-out infinite;
}
.accent--slow {
  animation-duration: 9s;
}
.accent--fast {
  animation-duration: 4.5s;
}

/* bentuk: bintang (diamond), titik, ring */
.accent-star {
  width: 20px;
  height: 20px;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 4px;
  animation-name: floatY, spin;
}
.accent-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}
.accent-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 3px solid var(--accent);
}

.accent-star2 {
  width: 20px;
  height: 20px;
  background: var(--secondary-accent);
  transform: rotate(45deg);
  border-radius: 4px;
  animation-name: floatY, spin;
}
.accent-dot2 {
  width: 10px;
  height: 10px;
  background: var(--secondary-accent);
  border-radius: 50%;
}
.accent-ring2 {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 3px solid var(--secondary-accent);
}

/* animasi */
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.ornament-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 0;
  pointer-events: none;
}

.ornament-bottom {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: auto;
  z-index: 0;
  pointer-events: none;
}

.section .container,
.section .content-on-top {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .accent {
    animation: none;
  }
}

/* Section Statistik */
.chart-shadow {
  box-shadow: var(--shadow);
  border: 1px solid rgba(2, 6, 23, 0.06);
}
.object-fit-cover {
  object-fit: cover;
}

/* Section Peta */
.map-full {
  width: 100%;
  height: auto;
  display: block;
}

/* Halaman Profile */
/* Section  Tugas Fungsi */
#tugas-fungsi .card-clean ul {
  margin-left: 1rem;
}

/* Section Struktur Organisasi */
#struktur-organisasi .card-clean {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Section Struktur Organisasi */
#struktur-organisasi .card-clean:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
}

/* Mulai Dinamis Media */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
  }
  .img-hero {
    transform: perspective(1200px) rotateY(-4deg) rotateX(1.5deg);
    transform-origin: center right;
  }
  .img-hero:hover {
    transform: perspective(1200px) rotateY(-1deg) rotateX(0) translateY(-2px);
  }
}
.img-hero--cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.hide {
  display: none !important;
}
