@import url("https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap");

:root {
  --primary-color: #144375;
  --secondary-color: #c5a059;
  --text-color: #333333;
  --text-muted: #666666;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --accent-color: #e9ecef;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Crimson Text", serif;
  color: var(--primary-color);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1000;
}

.navbar-nav .nav-link {
  color: #333;
  font-weight: 500;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--secondary-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 50px;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  /* Open to the left of the parent by default to match previous behavior */
  left: auto;
  right: 100%;
  margin-top: -0.25rem;
  min-width: 240px;
  z-index: 99999; /* ensure on top */
  max-height: none;
  overflow-y: visible;
}

.dropdown:hover > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu.show > .dropdown-menu {
  display: block;
}

.dropdown-menu .dropdown-item {
  color: #333;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background-color: rgba(197, 160, 89, 0.1);
}

/* Remove Bootstrap blue focus/active highlight on dropdown items */
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:focus-visible {
  background-color: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  outline: none !important;
}

.dropdown-menu .dropdown-item.dropdown-toggle::after {
  float: right;
  margin-left: 0.5rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Sections */
section {
  padding: 8rem 0;
  scroll-margin-top: 120px;
}

.hero + section {
  margin-top: 4rem;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  height: 250px;
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: 2rem;
  text-align: center;
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.card p {
  color: var(--text-muted);
}

/* Footer */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  /* open to the left by default */
  left: auto;
  right: 100%;
  margin-top: -0.5rem;
  min-width: 220px;
  max-height: none;
  overflow-y: visible;
  z-index: 99999;
}

.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu.show > .dropdown-menu {
  display: block;
}

.dropdown-menu .dropdown-item.dropdown-toggle::after {
  float: right;
  margin-left: 0.5rem;
}

footer {
  background: var(--bg-light);
  padding: 4rem 0;
  text-align: center;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 2rem;
}

.footer-info {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  .section-title h2 {
    font-size: 2.2rem;
  }
}

@media (min-width: 992px) {
  .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem;
  }

  .navbar-nav .nav-item {
    display: flex;
    align-items: center;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
  }

  .navbar-nav .dropdown-menu {
    position: absolute;
    z-index: 100001;
  }

  .dropdown-submenu > .dropdown-menu {
    display: none;
  }

  .dropdown-submenu:hover > .dropdown-menu,
  .dropdown-submenu.show > .dropdown-menu {
    display: block;
  }
}

/* Utility */
.text-center {
  text-align: center;
}
.mt-4 {
  margin-top: 2rem;
}

/* #app-content {
  padding-top: 120px;
} */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 2rem;
  transition: var(--transition-smooth);
}

.btn:hover {
  background: var(--secondary-color);
  transform: scale(1.05);
}

/* DPU Table Statuses */
.status-pindah {
  background-color: #ff0000 !important;
  color: white !important;
}
.status-no-pay {
  background-color: #ff9999 !important;
}
.status-lunas {
  background-color: #00b0f0 !important;
  color: white !important;
}
.status-gap {
  background-color: #efefef !important;
}

/* .fab-language-btn {
  /* Locks the element strictly to the screen viewport boundaries /
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;

  /* Forces the button onto the highest visual layer above all scrolling layers /
  z-index: 2147483647 !important;

  /* Pinpoints the exact physical size so the browser engine doesn't collapse it /
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  box-sizing: border-box !important;

  /* Aesthetic styles /
  border-radius: 50%;
  background-color: #222222;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-family: sans-serif;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon text sizing /
.fab-icon {
  font-size: 28px;
  line-height: 1;
}

/* Hover and active micro-interactions /
.fab-button:hover {
  background-color: #0056b3;
  transform: scale(1.05); /* Slight grow effect *
}

.fab-button:active {
  transform: scale(0.95); /* Slight press effect /
} */

button.fab-language-btn {
  /* 1. Bulletproof Viewport Pinning */
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 2147483647 !important; /* Top layer above Bootstrap Modals */

  /* 2. Overriding Bootstrap's hidden states */
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;

  /* 3. Strict Geometry */
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  box-sizing: border-box !important;

  /* 4. Visual Styles */
  border-radius: 50% !important;
  background-color: #222222 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Mobile fine-tuning (avoids overlapping system touch bars) */
@media screen and (max-width: 576px) {
  button.fab-language-btn {
    bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    right: calc(16px + env(safe-area-inset-right)) !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
  }
}
