:root {
  --primary-color: #004aad;
  --secondary-color: #ffd700;
  --accent-color: #f9fafc;
  --text-dark: #333;
  --text-light: #fff;
  --success-color: #28a745;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.35s ease;
  --container-max: 1200px;
  --gap-dropdown: 15px; /* Prioritas CSS 1 */

  /* Aksesibilitas Variables */
  --font-size-multiplier: 1;
  --contrast-mode: normal;
  --high-contrast-bg: #000000;
  --high-contrast-text: #ffffff;
  --high-contrast-link: #ffff00;
  --grayscale-mode: 0;
  --link-underline: none;
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--accent-color);
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  font-size: calc(1rem * var(--font-size-multiplier));
}

/* ===== ACCESSIBILITY MODES ===== */
/* High Contrast Mode */
body.contrast-high {
  background-color: var(--high-contrast-bg) !important;
  color: var(--high-contrast-text) !important;
}

body.contrast-high a {
  color: var(--high-contrast-link) !important;
  text-decoration: underline !important;
}

body.contrast-high .navbar,
body.contrast-high .footer,
body.contrast-high .vision-mission {
  background: var(--high-contrast-bg) !important;
  color: var(--high-contrast-text) !important;
  border: 2px solid var(--high-contrast-text) !important;
}

body.contrast-high .card,
body.contrast-high .dropdown-menu {
  background: var(--high-contrast-bg) !important;
  color: var(--high-contrast-text) !important;
  border: 2px solid var(--high-contrast-text) !important;
}

/* Grayscale Mode */
body.grayscale {
  filter: grayscale(100%);
}

/* Kecualikan elemen penting dari efek grayscale */
body.grayscale .accessibility-panel,
body.grayscale .accessibility-menu,
body.grayscale .accessibility-main-btn,
body.grayscale .navbar,
body.grayscale .dropdown-menu {
  filter: none !important;
}

/* Link Underline */
a.link-underline {
  text-decoration: underline !important;
  text-underline-offset: 0.2em;
}

/* ===== ACCESSIBILITY FEATURES ===== */
/* Focus Styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 2px !important;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  top: 0;
}

/* ===== ACCESSIBILITY PANEL - FIXED VERSION ===== */
.accessibility-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1199;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  padding: 15px;
  transition: all 0.3s ease;
}

.accessibility-main-btn {
  width: 50px;
  height: 50px;
  border-radius: 10%;
  background: var(--primary-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 74, 173, 0.3);
}

.accessibility-main-btn:hover {
  transform: scale(1.1);
  background: #003a8c;
}

.accessibility-menu {
  position: absolute;
  right: 90px;
  bottom: 0px;
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  min-width: 380px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.accessibility-menu.show {
  opacity: 1;
  visibility: visible;
}

.accessibility-option {
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.accessibility-option:last-child {
  border-bottom: none;
}

.accessibility-option:hover {
  background: #f8f9fa;
}

.accessibility-option input[type="range"] {
  flex: 1;
}

.accessibility-option .icon {
  width: 24px;
  text-align: center;
  color: var(--primary-color);
}

.font-size-display {
  min-width: 40px;
  text-align: center;
  font-weight: bold;
  color: var(--primary-color);
}

.reset-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 10px;
  width: 100%;
  transition: all 0.3s ease;
}

.reset-btn:hover {
  background: #c82333;
}

.reset-btn:active {
  transform: scale(0.95);
  background: #b02a37 !important;
}

.reset-btn.reset-success {
  background: #28a745 !important;
  animation: resetPulse 0.5s ease;
}

@keyframes resetPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== NAVBAR STYLES ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  z-index: 1200;
}

.navbar .container {
  max-width: var(--container-max);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar.scrolled {
  background: var(--primary-color);
  padding: 0.7rem 1rem;
  margin: 0 20px;
  width: calc(100% - 40px);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  top: 15px;
}

.navbar.scrolled .navbar-brand {
  color: var(--text-light);
}

.navbar.scrolled .nav-link {
  color: var(--text-light);
}

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

.navbar .nav-link:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}

.navbar a:focus-visible,
.navbar .nav-link:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.navbar .navbar-nav .nav-item .nav-link:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.navbar .dropdown .nav-link {
  color: var(--text-dark) !important;
}

.navbar.scrolled .dropdown .nav-link {
  color: var(--text-light) !important;
}

/* Hanya ubah warna saat link sendiri dihover, bukan parent dropdown */
.navbar .nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar.scrolled .nav-link:hover {
  color: var(--secondary-color) !important;
}

/* Reset semua state warna nav-link */
.navbar .nav-link {
  transition: color 0.35s ease !important;
}

/* STATE 1: Normal - tidak scrolled, tidak submenu aktif */
.navbar:not(.scrolled):not(.submenu-active) .nav-link {
  color: var(--text-dark) !important;
}

.navbar:not(.scrolled):not(.submenu-active) .nav-link:hover {
  color: var(--primary-color) !important;
}

/* STATE 2: Submenu aktif - tidak scrolled */
.navbar:not(.scrolled).submenu-active .nav-link {
  color: var(--text-light) !important;
}

.navbar:not(.scrolled).submenu-active .nav-link:hover {
  color: var(--secondary-color) !important;
}

/* STATE 3: Scrolled */
.navbar.scrolled .nav-link {
  color: var(--text-light) !important;
}

.navbar.scrolled .nav-link:hover {
  color: var(--secondary-color) !important;
}

.navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-right: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.navbar .navbar-brand img {
  margin-right: 10px;
}

.navbar .nav-link {
  font-weight: 500;
  position: relative;
  padding: 0.45rem 0.9rem !important;
  color: var(--text-dark);
  transition: var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--primary-color);
}

/* Header background hijau saat submenu aktif */
.navbar:not(.scrolled).submenu-active {
  background: var(--success-color);
}

.navbar:not(.scrolled).submenu-active .navbar-brand {
  color: var(--text-light);
}

.navbar:not(.scrolled).submenu-active .nav-link {
  color: var(--text-light);
}

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

/* Navbar Toggler Styles */
.navbar .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.35);
  order: 2;
}

.navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar:not(.scrolled).submenu-active .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.navbar:not(.scrolled).submenu-active .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== DROPDOWN / MEGAMENU STYLES ===== */
.navbar .dropdown {
  position: relative;
}

.navbar .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + var(--gap-dropdown));
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--container-max), calc(100% - 40px));
  max-width: calc(100% - 40px);
  border: none;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 18px;
  z-index: 1210;
}

.navbar .dropdown-menu.fullwidth-dropdown {
  max-width: none !important;
  margin: 0 !important;
}

/* Area transisi untuk mencegah submenu hilang saat berpindah */
.navbar .dropdown-menu::before {
  content: "";
  position: absolute;
  top: -25px;
  left: 0;
  width: 100%;
  height: 30px;
  background: transparent;
}

/* Perbaikan jarak untuk header tidak discroll */
.navbar:not(.scrolled) .dropdown-menu {
  top: calc(100% + 25px);
  margin: 0 10px;
}

.navbar:not(.scrolled) .dropdown-menu::before {
  top: -35px;
  height: 40px;
}

/* show dropdown (hover on desktop OR bootstrap .show) */
.navbar .dropdown:hover > .dropdown-menu,
.navbar .dropdown.show > .dropdown-menu {
  display: block;
}

/* Megamenu Grid */
.megamenu-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.megamenu-item h6 {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--primary-color);
  font-size: 0.98rem;
}

.megamenu-item a {
  display: block;
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.28rem 0;
  transition: var(--transition);
  font-size: 0.95rem;
}

.megamenu-item a:hover {
  color: var(--primary-color);
  padding-left: 6px;
}

/* Menu Card Styles */
.menu-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(247, 120, 10, 0.3);
}

.menu-card .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary-color);
  background: rgba(0, 74, 173, 0.06);
}

.menu-card h6 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-dark);
}

.menu-card p {
  margin: 6px 0 0;
  color: #555;
  font-size: 0.87rem;
}

/* Dropdown Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu.show {
  animation: fadeIn 0.22s ease;
}

/* ===== BACKDROP OVERLAY ===== */
.dropdown-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1155;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.dropdown-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Pastikan submenu di atas backdrop */
.navbar .dropdown-menu {
  z-index: 1165 !important;
}

/* ===== PERBAIKAN NAVBAR COLLAPSE ===== */
.navbar-collapse {
  flex-grow: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-item {
  position: relative;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(rgba(0, 74, 173, 0.85), rgba(0, 74, 173, 0.85)),
    url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80")
      center/cover no-repeat;
  color: var(--text-light);
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ===== COMPONENT STYLES ===== */
/* Card Service */
.card-service {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.card-service:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 74, 173, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
  color: var(--primary-color);
}

.section-title {
  position: relative;
  padding-bottom: 0.5rem;
  color: var(--primary-color);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
}

.vision-mission {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0066cc 100%);
  color: var(--text-light);
}

.footer {
  background: #1a1a1a;
  color: var(--text-light);
  padding: 3rem 0 1.5rem;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
}

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

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin-right: 0.5rem;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* ===== ACCESSIBILITY FEATURES ===== */
/* Video and Audio Accessibility */
.video-container {
  position: relative;
}

.video-caption-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 10;
}

.caption-display {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 0.9rem;
}

.audio-transcript {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.5;
}

.audio-transcript strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 8px;
}

/* High contrast support untuk transcript */
body.contrast-high .audio-transcript {
  background: var(--high-contrast-bg) !important;
  border: 2px solid var(--high-contrast-text) !important;
  color: var(--high-contrast-text) !important;
}

/* High contrast improvement untuk accessibility panel */
body.contrast-high .accessibility-panel {
  background: var(--high-contrast-bg) !important;
  border: 2px solid var(--high-contrast-text) !important;
}

body.contrast-high .accessibility-menu {
  background: var(--high-contrast-bg) !important;
  border: 2px solid var(--high-contrast-text) !important;
  color: var(--high-contrast-text) !important;
}

body.contrast-high .accessibility-menu a,
body.contrast-high .accessibility-option {
  color: var(--high-contrast-text) !important;
}

body.contrast-high .reset-btn {
  background: var(--high-contrast-link) !important;
  color: var(--high-contrast-bg) !important;
  border: 1px solid var(--high-contrast-text) !important;
}

/* ===== ANIMATIONS ===== */
/* Placeholder Animation */
.placeholder-anim {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #777;
  pointer-events: none;
  animation: placeholderCycle 6s infinite;
  font-family: sans-serif;
}

@keyframes placeholderCycle {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  5% {
    opacity: 1;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
  }
  35% {
    opacity: 0;
    transform: translateY(-20px);
  }
  40% {
    opacity: 0;
    transform: translateY(20px);
  }
  45% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 1;
  }
  75% {
    opacity: 0;
    transform: translateY(-20px);
  }
  80% {
    opacity: 0;
    transform: translateY(20px);
  }
  85% {
    opacity: 1;
    transform: translateY(0);
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* ===== INTERACTIVE ELEMENTS ===== */
div a:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.25);
}

/* Layanan Aplikasi Online Styles */
.service-app-card {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 74, 173, 0.1);
}

.service-app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 74, 173, 0.15);
}

.shadow-hover {
  transition: all 0.3s ease;
}

.app-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-color), #0066cc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 25px rgba(0, 74, 173, 0.3);
}

.service-app-card .btn-primary {
  background: var(--primary-color);
  border: none;
  border-radius: 25px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.service-app-card .btn-primary:hover {
  background: #003a8c;
  transform: scale(1.05);
}

/* Development Animation Styles */
.development-animation {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pulse-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #0066cc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 rgba(0, 74, 173, 0.4);
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 74, 173, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 20px rgba(0, 74, 173, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 74, 173, 0);
  }
}

.progress-bar-animated {
  animation: progress-animation 1.5s ease-in-out infinite;
}

@keyframes progress-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Modern Minimalist Card Styles */
.app-modern-card {
  border: none;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  position: relative;
}

.app-modern-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), #0066cc);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.app-modern-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 74, 173, 0.12);
}

.app-modern-card:hover::before {
  transform: scaleX(1);
}

.modern-icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.modern-icon-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), #0066cc);
  transition: left 0.4s ease;
  z-index: 1;
}

.modern-icon-wrapper i {
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
}

.app-modern-card:hover .modern-icon-wrapper {
  transform: scale(1.1);
}

.app-modern-card:hover .modern-icon-wrapper::before {
  left: 0;
}

.app-modern-card:hover .modern-icon-wrapper i {
  color: white;
}

.modern-btn {
  border: 1.5px solid grey;
  border-radius: 25px;
  padding: 8px 24px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: transparent;
  color: var(--primary-color);
}

.modern-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fcae1cff, #fcae1cff);
  transition: left 0.3s ease;
  z-index: -1;
}

.modern-btn:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(83, 180, 70, 0.3);
}

.modern-btn:hover::before {
  left: 0;
}

/* Text improvements for minimalism */
.app-modern-card .card-body h5 {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.1rem;
}

.app-modern-card .card-body p {
  line-height: 1.5;
  color: #6c757d;
}

/* Public Service Card Styles - More Formal */
.public-service-card {
  border: 1px solid #e3e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.public-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #28a745);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.public-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 74, 173, 0.15);
  border-color: var(--primary-color);
}

.public-service-card:hover::before {
  transform: scaleX(1);
}

.card-header-icon {
  width: 70px;
  height: 70px;
  margin: -25px auto 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-color), #0066cc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 74, 173, 0.3);
  position: relative;
  z-index: 2;
}

.service-badge {
  display: inline-block;
  background: #e8f4ff;
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 15px;
  border: 1px solid #d1e7ff;
}

.public-service-btn {
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 74, 173, 0.2);
}

.public-service-btn:hover {
  background: #003a8c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 74, 173, 0.3);
}

/* Text improvements for public service cards */
.public-service-card .card-body h5 {
  font-weight: 600;
  color: #2d3748;
  font-size: 1rem;
  line-height: 1.4;
}

.public-service-card .card-body p {
  line-height: 1.5;
  color: #718096;
  font-size: 0.85rem;
}

/* Background color untuk section */
.bg-light {
  background-color: #f8fafc !important;
}

/* Public Service Card Styles - Fixed */
.public-service-card {
  border: 1px solid #e3e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: block;
  color: inherit;
}

.public-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), #28a745);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.public-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 74, 173, 0.15);
  border-color: var(--primary-color);
  text-decoration: none;
  color: inherit;
}

.public-service-card:hover::before {
  transform: scaleX(1);
}

/* Service Icon Wrapper - Fixed Position */
.service-icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-color), #0066cc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 74, 173, 0.3);
  transition: all 0.3s ease;
}

.public-service-card:hover .service-icon-wrapper {
  transform: scale(1.1);
  box-shadow: 0 12px 25px rgba(0, 74, 173, 0.4);
}

.service-badge {
  display: inline-block;
  background: #e8f4ff;
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 15px;
  border: 1px solid #d1e7ff;
}

/* Text improvements for public service cards */
.public-service-card .card-body h5 {
  font-weight: 600;
  color: #2d3748;
  font-size: 1rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.public-service-card:hover .card-body h5 {
  color: var(--primary-color);
}

.public-service-card .card-body p {
  line-height: 1.5;
  color: #718096;
  font-size: 0.85rem;
}

/* Cursor pointer untuk card yang clickable */
.public-service-card {
  cursor: pointer;
}

/* Additional icons for public services */
.bi-building-check::before {
  content: "\f5fd";
}

.bi-arrow-repeat::before {
  content: "\f116";
}

.bi-file-earmark-medical::before {
  content: "\f6b9";
}

.bi-wallet2::before {
  content: "\f6dd";
}

.bi-file-text::before {
  content: "\f35b";
}

.bi-person-add::before {
  content: "\f4d2";
}

.bi-person-badge::before {
  content: "\f4d5";
}

/* Modern Card Styles for Clickable Cards */
.app-modern-card {
  border: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
  color: inherit;
}

.app-modern-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), #0066cc);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.app-modern-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 74, 173, 0.15);
  text-decoration: none;
  color: inherit;
}

.app-modern-card:hover::before {
  transform: scaleX(1);
}

.modern-icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.modern-icon-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), #0066cc);
  transition: left 0.4s ease;
  z-index: 1;
}

.modern-icon-wrapper i {
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
}

.app-modern-card:hover .modern-icon-wrapper {
  transform: scale(1.1);
}

.app-modern-card:hover .modern-icon-wrapper::before {
  left: 0;
}

.app-modern-card:hover .modern-icon-wrapper i {
  color: white;
}

/* Text improvements */
.app-modern-card .card-body h5 {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.app-modern-card:hover .card-body h5 {
  color: var(--primary-color);
}

.app-modern-card .card-body p {
  line-height: 1.5;
  color: #6c757d;
}

/* Featured News Card Styles */
.featured-news-card {
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.featured-news-card:hover {
  transform: translateY(-5px);
}

.medium-news-card {
  border-radius: 12px;
  transition: all 0.3s ease;
}

.medium-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.news-list-container {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
}

.news-list-item {
  transition: all 0.2s ease;
}

.news-list-item:hover {
  transform: translateX(5px);
}

.news-list-item h6 {
  color: #2c3e50;
  transition: color 0.2s ease;
}

.news-list-item:hover h6 {
  color: var(--primary-color);
}

/* Button Styles */
.btn-outline-primary {
  border: 2px solid var(--primary-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 74, 173, 0.3);
}

/* Badge Styles */
.badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 8px;
}

/* SPAN LAPOR Section Styles */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0066cc 100%);
}

.text-white-80 {
  color: rgba(255, 255, 255, 0.9) !important;
}

.text-white-60 {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Feature List Styles */
.feature-icon-wrapper {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Mockup Device Styles */
.mockup-device {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}

.device-screen {
  background: #1a1a1a;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.screen-content {
  background: white;
  border-radius: 12px;
  padding: 20px;
  min-height: 300px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.app-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-color), #0066cc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  margin-right: 10px;
}

.app-title {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* Status Items */
.status-item {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.status-item.completed {
  background: #e8f5e8;
  color: #28a745;
}

.status-item.active {
  background: #e3f2fd;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.status-item:not(.completed):not(.active) {
  background: #f8f9fa;
  color: #6c757d;
}

.status-item i {
  margin-right: 10px;
  font-size: 1.1rem;
}

/* Stats Container */
.stats-container {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Button Styles for this section */
.btn-light {
  background: white;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.btn-outline-light {
  border: 2px solid white;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
/* Desktop Behavior */
@media (min-width: 992px) {
  .navbar-nav {
    gap: 10px;
  }
  .nav-link {
    font-size: 0.95rem;
  }
  .dropdown-menu {
    min-width: 800px;
  }
}

/* Mobile Behavior */
@media (max-width: 991.98px) {
  .navbar {
    padding: 0.7rem 0;
  }

  .navbar .dropdown-menu {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    width: 100%;
    margin-top: 8px;
    max-width: 100%;
    box-shadow: none;
    border-radius: 8px;
    padding: 12px;
  }

  .navbar .dropdown-menu::before {
    display: none;
  }

  /* Enable hover on mobile for testing */
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
  }

  .navbar .dropdown-menu:hover {
    display: block;
  }

  #dropdown-backdrop {
    display: none !important;
  }

  .menu-card {
    border: none;
    box-shadow: none;
  }

  .megamenu-grid {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .accessibility-panel {
    right: 10px;
    bottom: 20px;
  }

  .accessibility-menu {
    right: 80px;
    bottom: 0;
  }

  .navbar-collapse {
    margin-top: 1rem;
  }
}

/* Small responsive adjustments */
@media (max-width: 768px) {
  .navbar.scrolled {
    margin: 10px 10px 0;
    width: calc(100% - 20px);
    top: 10px;
  }

  .hero {
    padding: 150px 0 80px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .accessibility-panel {
    bottom: 10px;
    right: 10px;
  }
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  .span-lapor-visual {
    margin-top: 40px;
  }
  .display-6 {
    font-size: 2.5rem;
  }
}

/* UserWay Accessibility Button - FIXED POSITION */
#userway-accessibility {
  position: fixed !important;
  bottom: 25px !important;
  right: 25px !important;
  z-index: 1002 !important;
  margin: 0 !important;
}

/* UserWay Dialog Full Screen */
#userway-widget,
#userway-iframe,
.userway-iframe-container,
.userway-iframe-wrapper {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  z-index: 10000 !important;
}

/* UserWay Icon Styling */
#userwayAccessibilityIcon {
  bottom: 25px !important;
  right: 25px !important;
  width: 60px !important;
  height: 60px !important;
  background: var(--primary-color) !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 20px rgba(0, 74, 173, 0.4) !important;
  transition: var(--transition) !important;
  margin: 0 !important;
}

#userwayAccessibilityIcon:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 25px rgba(0, 74, 173, 0.6) !important;
}

/* ===== USERWAY ACCESSIBILITY BUTTON STYLING ===== */
#userwayAccessibilityIcon,
.userway_widget,
.userway-widget-button,
.userway-p1,
.uwy,
.uwy.userway_p1 {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 10% !important;
  background: var(--primary-color) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 74, 173, 0.3) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-size: 1.5rem !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#userwayAccessibilityIcon:hover,
.userway_widget:hover,
.userway-widget-button:hover {
  transform: scale(1.1) !important;
  background: #003a8c !important;
  box-shadow: 0 6px 20px rgba(0, 74, 173, 0.4) !important;
}

/* Style untuk konten ikon di dalam tombol */
#userwayAccessibilityIcon img,
.userway_widget img,
.userway-widget-button img,
#userwayAccessibilityIcon svg,
.userway_widget svg,
.userway-widget-button svg {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
}

/* Pastikan tidak ada bentuk lingkaran */
#userwayAccessibilityIcon::before,
.userway_widget::before,
.userway-widget-button::before {
  border-radius: 10% !important;
}

/* UserWay widget container */
#userway-accessibility,
.userway-iframe-container,
.userway-iframe-wrapper {
  position: fixed !important;
  z-index: 10001 !important;
}

/* UserWay iframe */
#userway-iframe {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  border: none !important;
  z-index: 10002 !important;
}


