/* ============================================================================
   PPID KABUPATEN KLATEN - MODERN GOVERNMENT PORTAL 2026
   Clean, Professional, Mobile-First Design
   Inspired by: gov.uk, Indonesia.go.id, Jakarta Smart City
   ============================================================================ */

/* === CSS VARIABLES === */
:root {
  /* Government Color Palette */
  --color-primary: #1e40af;        /* Navy Blue - Trust & Authority */
  --color-primary-dark: #1e3a8a;   /* Darker Navy */
  --color-primary-light: #3b82f6;  /* Light Blue */
  --color-accent: #059669;         /* Green - Success & Growth */
  --color-accent-gold: #d97706;    /* Gold - Excellence */
  
  /* Neutral Colors */
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  
  /* Spacing Scale */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  
  /* Border Radius */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 0.75rem;  /* 12px */
  --radius-xl: 1rem;     /* 16px */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gray-800);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-gray-900);
  margin-bottom: var(--space-4);
}

h1 { font-size: 2.5rem; }   /* 40px */
h2 { font-size: 2rem; }     /* 32px */
h3 { font-size: 1.5rem; }   /* 24px */
h4 { font-size: 1.25rem; }  /* 20px */
h5 { font-size: 1.125rem; } /* 18px */
h6 { font-size: 1rem; }     /* 16px */

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-gray-600);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .container { padding: 0 var(--space-6); }
}

@media (min-width: 1024px) {
  .container { padding: 0 var(--space-8); }
}

.section {
  padding: var(--space-12) 0;
}

@media (min-width: 768px) {
  .section { padding: var(--space-16) 0; }
}

/* === NAVBAR === */
.navbar-modern {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar-modern .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.navbar-brand-modern {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-gray-900);
}

.navbar-brand-modern:hover {
  text-decoration: none;
}

.navbar-logo {
  height: 48px;
  width: auto;
}

.navbar-menu {
  display: none;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .navbar-menu { display: flex; }
}

.navbar-link {
  font-weight: 500;
  color: var(--color-gray-600);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.navbar-link:hover {
  color: var(--color-primary);
  background-color: var(--color-gray-50);
  text-decoration: none;
}

.navbar-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* Mobile Menu Toggle */
.navbar-toggle {
  display: block;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
}

@media (min-width: 768px) {
  .navbar-toggle { display: none; }
}

/* === HERO SECTION === */
.hero-modern {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: var(--space-16) 0;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-modern { padding: var(--space-20) 0; }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--space-6);
  color: var(--color-white);
}

@media (min-width: 768px) {
  .hero-title { font-size: 3.5rem; }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
  }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--color-gray-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  background-color: #047857;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
}

/* === CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.card-grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-primary-light);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-3);
}

.card-text {
  color: var(--color-gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === STATS === */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  background-color: var(--color-gray-50);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
}

@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

.stat-card {
  text-align: center;
  padding: var(--space-6);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: 1rem;
  color: var(--color-gray-600);
  font-weight: 500;
}

/* === SECTION HEADER === */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  max-width: 700px;
  margin: 0 auto;
}

/* === FOOTER === */
.footer-modern {
  background-color: var(--color-gray-900);
  color: var(--color-gray-300);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-title {
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.footer-link {
  color: var(--color-gray-400);
  display: block;
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-white);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--color-gray-800);
  padding-top: var(--space-6);
  text-align: center;
  color: var(--color-gray-500);
  font-size: 0.875rem;
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.bg-gray-50 { background-color: var(--color-gray-50); }
.bg-white { background-color: var(--color-white); }

/* === ACCESSIBILITY === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* === LOADING SKELETON === */
.skeleton {
  background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-100) 50%, var(--color-gray-200) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === RESPONSIVE IMAGES === */
img {
  max-width: 100%;
  height: auto;
}

/* ============================================================================
   MODAL KEBERATAN - MODERN REDESIGN
   Premium SaaS Style 2026
   ============================================================================ */

/* === MODAL OVERLAY === */
.modal-backdrop {
  background-color: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
}

/* === MODAL DIALOG === */
.modal-keberatan-modern {
  max-width: 720px !important;
  margin: 2rem auto;
}

@media (min-width: 768px) {
  .modal-keberatan-modern {
    max-width: 900px !important;
    margin: 3rem auto;
  }
}

/* === MODAL CONTENT === */
.modal-keberatan-modern .modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* === MODAL HEADER - COMPACT & MODERN === */
.modal-keberatan-modern .modal-header {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: white;
  padding: 1.5rem 2rem;
  border: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-keberatan-modern .modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-keberatan-modern .modal-title i {
  font-size: 1.5rem;
  opacity: 0.9;
}

.modal-keberatan-modern .modal-header .close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 1;
  padding: 0;
  margin: 0;
  transition: all 0.2s ease;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-keberatan-modern .modal-header .close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* === MODAL BODY - CLEAN & SPACIOUS === */
.modal-keberatan-modern .modal-body {
  padding: 2.5rem 2rem;
  max-height: 70vh;
  overflow-y: auto;
  background: #ffffff;
}

@media (max-width: 768px) {
  .modal-keberatan-modern .modal-body {
    padding: 1.5rem 1rem;
  }
}

/* === CUSTOM SCROLLBAR === */
.modal-keberatan-modern .modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-keberatan-modern .modal-body::-webkit-scrollbar-track {
  background: var(--color-gray-100);
  border-radius: 10px;
}

.modal-keberatan-modern .modal-body::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: 10px;
}

.modal-keberatan-modern .modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-400);
}

/* === SECTION DIVIDER === */
.form-section {
  margin-bottom: 2rem;
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section-title i {
  color: var(--color-primary);
  font-size: 1rem;
}

/* === FORM GROUP - 2 COLUMN LAYOUT === */
.form-row-modern {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .form-row-modern {
    grid-template-columns: 1fr 1fr;
  }
  
  .form-row-modern.full-width {
    grid-template-columns: 1fr;
  }
}

.form-group-modern {
  margin-bottom: 0;
}

.form-group-modern:last-child {
  margin-bottom: 0;
}

/* === FORM LABELS - CLEAN & COMPACT === */
.form-label-modern {
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 0.5rem;
  display: block;
}

.form-label-modern .required {
  color: #dc2626;
  margin-left: 2px;
}

.form-label-modern .helper-text {
  font-weight: 400;
  color: var(--color-gray-500);
  font-size: 0.75rem;
  display: block;
  margin-top: 2px;
}

/* === FORM INPUTS - MODERN & PROPORTIONAL === */
.form-control-modern {
  width: 100%;
  height: 44px;
  padding: 0.625rem 1rem;
  font-family: var(--font-secondary);
  font-size: 0.9375rem;
  color: var(--color-gray-900);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-gray-300);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.form-control-modern::placeholder {
  color: var(--color-gray-400);
  font-weight: 400;
}

.form-control-modern:hover {
  border-color: var(--color-gray-400);
}

.form-control-modern:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* === TEXTAREA - LARGER FIELDS === */
textarea.form-control-modern {
  height: auto;
  min-height: 100px;
  resize: vertical;
  padding: 0.75rem 1rem;
  line-height: 1.6;
}

/* === SELECT DROPDOWN === */
select.form-control-modern {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

/* === VALIDATION STATES === */
.form-control-modern.is-valid {
  border-color: #059669;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23059669'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.form-control-modern.is-invalid {
  border-color: #dc2626;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23dc2626'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.invalid-feedback,
.valid-feedback {
  font-size: 0.75rem;
  margin-top: 0.375rem;
  display: block;
}

.invalid-feedback {
  color: #dc2626;
}

.valid-feedback {
  color: #059669;
}

/* === MODAL FOOTER - STICKY & MODERN === */
.modal-keberatan-modern .modal-footer {
  background: var(--color-gray-50);
  border-top: 1px solid var(--color-gray-200);
  padding: 1.25rem 2rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 768px) {
  .modal-keberatan-modern .modal-footer {
    padding: 1rem;
    flex-direction: column-reverse;
  }
  
  .modal-keberatan-modern .modal-footer .btn {
    width: 100%;
  }
}

/* === BUTTONS - MODERN STYLE === */
.btn-modern {
  font-family: var(--font-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.625rem 1.75rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-modern-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.btn-modern-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.3);
  transform: translateY(-1px);
}

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

.btn-modern-secondary {
  background: white;
  color: var(--color-gray-700);
  border: 1.5px solid var(--color-gray-300);
}

.btn-modern-secondary:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-400);
}

/* === LOADING STATE === */
.btn-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* === INFO ALERT === */
.alert-info-modern {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: start;
}

.alert-info-modern i {
  color: #3b82f6;
  font-size: 1.25rem;
  margin-top: 2px;
}

.alert-info-modern .alert-content {
  flex: 1;
}

.alert-info-modern .alert-title {
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.alert-info-modern .alert-text {
  color: #1e3a8a;
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* === CHARACTER COUNTER === */
.char-counter {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  text-align: right;
  margin-top: 0.375rem;
}

.char-counter.warning {
  color: #d97706;
}

.char-counter.danger {
  color: #dc2626;
}

/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 768px) {
  .modal-keberatan-modern {
    margin: 0;
    max-width: 100% !important;
  }
  
  .modal-keberatan-modern .modal-content {
    border-radius: 0;
    min-height: 100vh;
  }
  
  .modal-keberatan-modern .modal-header {
    padding: 1rem 1.25rem;
  }
  
  .modal-keberatan-modern .modal-title {
    font-size: 1.125rem;
  }
}

/* ============================================================================
   PAGE COMPONENTS - Breadcrumb, Headers, Tables, Empty States
   ============================================================================ */

/* === BREADCRUMB === */
.breadcrumb-modern {
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.breadcrumb-modern .container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumb-modern a {
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s ease;
}

.breadcrumb-modern a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.breadcrumb-modern i {
  font-size: 0.75rem;
  color: var(--color-gray-400);
}

.breadcrumb-modern span {
  color: var(--color-gray-700);
  font-weight: 500;
}

/* === PAGE HEADER === */
.page-header-modern {
  margin-bottom: 2.5rem;
  text-align: center;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.page-title i {
  color: var(--color-primary);
  font-size: 1.75rem;
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
}

/* === MODERN TABLE === */
.table-responsive-modern {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 2rem;
}

.table-modern {
  width: 100%;
  border-collapse: collapse;
}

.table-modern thead {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
}

.table-modern th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-modern th.text-center {
  text-align: center;
}

.table-modern tbody tr {
  border-bottom: 1px solid var(--color-gray-200);
  transition: background-color 0.2s ease;
}

.table-modern tbody tr:last-child {
  border-bottom: none;
}

.table-modern tbody tr:hover {
  background-color: var(--color-gray-50);
}

.table-modern td {
  padding: 1rem 1.25rem;
  color: var(--color-gray-700);
  font-size: 0.9375rem;
  vertical-align: middle;
}

.table-modern td.text-center {
  text-align: center;
}

.table-modern .text-muted {
  color: var(--color-gray-500);
  font-size: 0.8125rem;
}

@media (max-width: 768px) {
  .table-responsive-modern {
    overflow-x: auto;
  }
  
  .table-modern th,
  .table-modern td {
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
  }
}

/* === EMPTY STATE === */
.empty-state-modern {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.empty-state-modern i {
  font-size: 4rem;
  color: var(--color-gray-300);
  margin-bottom: 1.5rem;
  display: block;
}

.empty-state-modern h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-700);
  margin-bottom: 0.75rem;
}

.empty-state-modern p {
  font-size: 1rem;
  color: var(--color-gray-600);
  margin-bottom: 2rem;
}

/* === DROPDOWN FIX - BETTER HOVER AREA === */
.navbar-modern .dropdown-modern {
  position: relative;
}

.navbar-modern .dropdown-modern > a {
  padding: 0.75rem 1rem;
}

/* Add pseudo-element to bridge gap */
.navbar-modern .dropdown-modern::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
  display: block;
}

.navbar-modern .dropdown-content {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 240px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 1px solid var(--color-gray-200);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.navbar-modern .dropdown-modern:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-modern .dropdown-content a {
  display: block;
  padding: 0.875rem 1.25rem;
  color: var(--color-gray-700);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.navbar-modern .dropdown-content a:hover {
  background: #eff6ff;
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  padding-left: 1.5rem;
}


/* ============================================================================
   TOAST NOTIFICATION SYSTEM
   Modern notification alerts
   ============================================================================ */

.toast-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 9999;
  max-width: 400px;
}

@media (max-width: 768px) {
  .toast-container {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

.toast {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: start;
  gap: 1rem;
  border-left: 4px solid;
  animation: slideInRight 0.3s ease;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.toast.hiding {
  opacity: 0;
}

.toast-success {
  border-left-color: #059669;
}

.toast-error {
  border-left-color: #dc2626;
}

.toast-warning {
  border-left-color: #d97706;
}

.toast-info {
  border-left-color: #3b82f6;
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.toast-success .toast-icon {
  background: #d1fae5;
  color: #059669;
}

.toast-error .toast-icon {
  background: #fee2e2;
  color: #dc2626;
}

.toast-warning .toast-icon {
  background: #fed7aa;
  color: #d97706;
}

.toast-info .toast-icon {
  background: #dbeafe;
  color: #3b82f6;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.toast-message {
  color: var(--color-gray-600);
  font-size: 0.875rem;
  line-height: 1.5;
}

.toast-close {
  background: none;
  border: none;
  color: var(--color-gray-400);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toast-close:hover {
  background: var(--color-gray-100);
  color: var(--color-gray-700);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
}

.loading-overlay.show {
  display: flex;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* ================================================================
   PHASE 2 ENHANCEMENTS - DROPDOWN FIX + SEARCH + ACCESSIBILITY
   Added: 2026-05-25
   ================================================================ */

/* ----------------------------------------------------------------
   1. DROPDOWN MENU FIX - STABLE HOVER
   ---------------------------------------------------------------- */

/* Remove any existing dropdown fixes and add comprehensive solution */
.nav-item.dropdown {
    position: relative;
}

/* Dropdown bridge - prevents menu disappearing */
.nav-item.dropdown::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
    z-index: 999;
    pointer-events: auto;
}

/* Dropdown menu positioning */
.nav-item.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    min-width: 240px;
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 0.75rem 0;
}

/* Show dropdown on hover - desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu,
    .nav-item.dropdown .dropdown-menu:hover {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Dropdown items */
.dropdown-menu .dropdown-item {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    color: #374151;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu .dropdown-item:hover {
    background: linear-gradient(90deg, #f0f9ff 0%, transparent 100%);
    border-left-color: #1e40af;
    color: #1e40af;
    transform: translateX(4px);
}

.dropdown-menu .dropdown-item:active {
    background: #e0f2fe;
    color: #1e3a8a;
}

/* Mobile dropdown toggle */
@media (max-width: 991px) {
    .nav-item.dropdown::before {
        display: none;
    }
    
    .nav-item.dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding-left: 1rem;
        background: transparent;
        transform: none;
    }
    
    .nav-item.dropdown .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
    }
    
    .dropdown-menu .dropdown-item {
        padding: 0.625rem 1rem;
        border-left: 2px solid #e5e7eb;
    }
}

/* ----------------------------------------------------------------
   2. SEARCH DOKUMEN COMPONENT - MODERN DESIGN
   ---------------------------------------------------------------- */

.search-dokumen-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 3rem 0;
    border: 1px solid #bfdbfe;
}

.search-dokumen-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.search-dokumen-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.search-dokumen-header p {
    font-size: 1.125rem;
    color: #64748b;
}

.search-dokumen-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-bar-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.search-bar-wrapper .search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.25rem;
    pointer-events: none;
}

.search-bar-wrapper input.search-input {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 4rem;
    font-size: 1.0625rem;
    border: 2px solid #cbd5e1;
    border-radius: 16px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.search-bar-wrapper input.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.search-bar-wrapper input.search-input::placeholder {
    color: #94a3b8;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-filters select {
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9375rem;
    background: white;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-filters select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-results {
    margin-top: 2rem;
}

.search-result-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-result-item:hover {
    border-color: #3b82f6;
    box-shadow: 
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.search-result-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
    min-width: 200px;
}

.search-result-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-berkala {
    background: #dbeafe;
    color: #1e40af;
}

.badge-serta-merta {
    background: #d1fae5;
    color: #065f46;
}

.badge-setiap-saat {
    background: #fef3c7;
    color: #92400e;
}

.badge-dikecualikan {
    background: #fee2e2;
    color: #991b1b;
}

.search-result-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.search-result-meta i {
    margin-right: 0.375rem;
}

.search-result-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.search-result-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-view {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.btn-view:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.btn-download {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border: none;
}

.btn-download:hover {
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    transform: translateY(-1px);
}

.search-empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.search-empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.search-empty-state h3 {
    font-size: 1.5rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.search-empty-state p {
    font-size: 1.0625rem;
    color: #94a3b8;
}

/* Search loading state */
.search-loading {
    text-align: center;
    padding: 3rem 2rem;
}

.search-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Search pagination */
.search-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.search-pagination a,
.search-pagination span {
    padding: 0.625rem 1rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-pagination a {
    background: white;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.search-pagination a:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.search-pagination span.active {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border: none;
}

/* Responsive search */
@media (max-width: 768px) {
    .search-dokumen-section {
        padding: 2rem 1.5rem;
    }
    
    .search-dokumen-header h2 {
        font-size: 1.5rem;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
    }
    
    .search-result-header {
        flex-direction: column;
    }
    
    .search-result-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ----------------------------------------------------------------
   3. USERWAY ACCESSIBILITY WIDGET INTEGRATION
   ---------------------------------------------------------------- */

/* UserWay widget positioning fix */
#userway-widget {
    z-index: 9999 !important;
}

/* Prevent UserWay from conflicting with navbar */
.userway-s3 {
    bottom: 20px !important;
    right: 20px !important;
}

/* Mobile positioning */
@media (max-width: 768px) {
    .userway-s3 {
        bottom: 80px !important;
        right: 15px !important;
    }
}

/* Ensure accessibility button doesn't cover important elements */
.userway-s3-button {
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.1) !important;
}

/* Smooth accessibility panel */
.userway-s2 {
    border-radius: 16px !important;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* ----------------------------------------------------------------
   4. ENHANCED MOBILE MENU
   ---------------------------------------------------------------- */

@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        border-radius: 16px;
        padding: 1.5rem;
        margin-top: 1rem;
        box-shadow: 
            0 10px 25px -5px rgba(0, 0, 0, 0.1),
            0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }
    
    .nav-link {
        padding: 0.875rem 1rem;
        border-radius: 10px;
        margin-bottom: 0.25rem;
    }
    
    .nav-link:hover {
        background: #f1f5f9;
    }
}

/* ----------------------------------------------------------------
   5. UTILITY CLASSES
   ---------------------------------------------------------------- */

.highlight {
    background: linear-gradient(transparent 60%, #fef08a 60%);
    padding: 0 0.25rem;
    border-radius: 3px;
}

.sticky-search {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

/* ================================================================
   END PHASE 2 ENHANCEMENTS
   ================================================================ */

/* ================================================================
   MODERN HERO SECTION - SEARCH-CENTRIC DESIGN
   Added: 2026-05-25
   ================================================================ */

/* Hero Section Container */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
    padding: 6rem 2rem 8rem;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero Content */
.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e40af;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-out 0.2s both;
}

.hero-badge i {
    font-size: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hero Title */
.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1e293b;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-title-accent {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Hero Search Container */
.hero-search-container {
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-search-form {
    position: relative;
}

.hero-search-wrapper {
    position: relative;
    display: flex;
    background: white;
    border-radius: 16px;
    box-shadow: 
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.hero-search-wrapper:focus-within {
    box-shadow: 
        0 20px 40px -10px rgba(30, 64, 175, 0.2),
        0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.hero-search-icon {
    position: absolute;
    left: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.375rem;
    pointer-events: none;
    transition: color 0.3s;
}

.hero-search-wrapper:focus-within .hero-search-icon {
    color: #3b82f6;
}

.hero-search-input {
    flex: 1;
    padding: 1.5rem 1.75rem 1.5rem 4.5rem;
    font-size: 1.125rem;
    border: none;
    border-radius: 16px;
    color: #1e293b;
    background: transparent;
    outline: none;
}

.hero-search-input::placeholder {
    color: #94a3b8;
}

.hero-search-button {
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    margin: 0.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.3s ease;
}

.hero-search-button:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.hero-search-button i {
    font-size: 1.125rem;
}

/* Search Filters */
.hero-search-filters {
    display: none;
    gap: 1rem;
    margin-top: 1rem;
    opacity: 0;
    animation: slideDown 0.3s ease forwards;
}

.hero-search-filters.show {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-filter-select {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9375rem;
    color: #475569;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.hero-filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Search Results Dropdown */
.hero-search-results {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-height: 500px;
    overflow-y: auto;
    z-index: 100;
    animation: slideDown 0.3s ease;
}

/* Loading */
.hero-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 2rem;
    color: #64748b;
}

.hero-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Result Item */
.hero-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    animation: fadeInItem 0.3s ease backwards;
}

@keyframes fadeInItem {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-result-item:last-child {
    border-bottom: none;
}

.hero-result-item:hover {
    background: linear-gradient(90deg, #f0f9ff 0%, transparent 100%);
    transform: translateX(4px);
}

.hero-result-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.125rem;
}

.hero-result-content {
    flex: 1;
}

.hero-result-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.375rem;
    font-size: 1rem;
}

.hero-result-title mark {
    background: linear-gradient(transparent 60%, #fef08a 60%);
    padding: 0 0.125rem;
}

.hero-result-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.hero-result-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-result-date i {
    margin-right: 0.25rem;
}

.hero-result-arrow {
    color: #cbd5e1;
    font-size: 1rem;
    transition: all 0.2s;
}

.hero-result-item:hover .hero-result-arrow {
    color: #3b82f6;
    transform: translateX(4px);
}

/* Empty State */
.hero-search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.hero-search-empty i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.hero-search-empty p {
    font-size: 1.125rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.hero-search-empty small {
    color: #94a3b8;
}

/* Search Footer */
.hero-search-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
}

.hero-search-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1e40af;
    text-decoration: none;
    transition: all 0.2s;
}

.hero-search-view-all:hover {
    color: #3b82f6;
    gap: 0.75rem;
}

/* Quick Access Buttons */
.hero-quick-access {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-quick-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 1rem;
}

.hero-quick-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.hero-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hero-quick-btn i {
    font-size: 1.5rem;
    color: #3b82f6;
    transition: all 0.3s;
}

.hero-quick-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: #1e40af;
}

.hero-quick-btn:hover i {
    transform: scale(1.1);
}

/* Trust Indicators */
.hero-trust {
    display: flex;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.hero-trust-item i {
    color: #10b981;
    font-size: 1.125rem;
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    animation: fadeInRight 1s ease-out 0.3s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

/* Floating animation for SVG elements */
.hero-float-1 {
    animation: float 3s ease-in-out infinite;
}

.hero-float-2 {
    animation: float 4s ease-in-out infinite 0.5s;
}

.hero-float-3 {
    animation: float 3.5s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-illustration {
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 1.5rem 6rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    .hero-search-input {
        padding: 1.25rem 1.5rem 1.25rem 4rem;
        font-size: 1rem;
    }

    .hero-search-button {
        padding: 1rem 1.5rem;
    }

    .hero-search-button span {
        display: none;
    }

    .hero-search-filters {
        flex-direction: column;
    }

    .hero-quick-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-trust {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-illustration {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-quick-buttons {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   END MODERN HERO SECTION
   ================================================================ */

/* ================================================================
   HERO SEARCH BOX ENHANCEMENT
   Added: 2026-05-25
   ================================================================ */

/* Enhanced Hero with Search */
.hero-with-search {
    padding: 4rem 2rem 3rem;
}

.hero-with-search .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-with-search .hero-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2.5rem;
}

/* Search Wrapper */
.hero-search-wrapper {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    position: relative;
}

.hero-search-form {
    position: relative;
}

/* Search Input Group */
.search-input-group {
    display: flex;
    background: white;
    border-radius: 16px;
    box-shadow: 
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.search-input-group:focus-within {
    box-shadow: 
        0 20px 40px -10px rgba(30, 64, 175, 0.2),
        0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.25rem;
    pointer-events: none;
    transition: color 0.3s;
}

.search-input-group:focus-within .search-icon {
    color: #3b82f6;
}

.search-input {
    flex: 1;
    padding: 1.25rem 1.5rem 1.25rem 4rem;
    font-size: 1.0625rem;
    border: none;
    border-radius: 16px;
    background: transparent;
    outline: none;
    color: #1e293b;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-button {
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    margin: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* Search Filters */
.search-filters {
    display: none;
    gap: 1rem;
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-select {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9375rem;
    color: #475569;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-height: 500px;
    overflow-y: auto;
    z-index: 100;
    animation: slideDown 0.3s ease;
}

/* Loading */
.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 2rem;
    color: #64748b;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Result Item */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: linear-gradient(90deg, #f0f9ff 0%, transparent 100%);
    transform: translateX(4px);
}

.result-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.125rem;
}

.result-content {
    flex: 1;
}

.result-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.375rem;
    font-size: 1rem;
}

.result-title mark {
    background: linear-gradient(transparent 60%, #fef08a 60%);
    padding: 0 0.125rem;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.result-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-berkala {
    background: #dbeafe;
    color: #1e40af;
}

.badge-serta-merta {
    background: #d1fae5;
    color: #065f46;
}

.badge-setiap-saat {
    background: #fef3c7;
    color: #92400e;
}

.badge-dikecualikan {
    background: #fee2e2;
    color: #991b1b;
}

.result-date i {
    margin-right: 0.25rem;
}

.result-arrow {
    color: #cbd5e1;
    font-size: 1rem;
    transition: all 0.2s;
}

.search-result-item:hover .result-arrow {
    color: #3b82f6;
    transform: translateX(4px);
}

/* Empty State */
.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    text-align: center;
}

.search-empty i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.search-empty p {
    font-size: 1.125rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.search-empty small {
    color: #94a3b8;
}

/* Search Footer */
.search-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
}

.view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1e40af;
    text-decoration: none;
    transition: all 0.2s;
}

.view-all-link:hover {
    color: #3b82f6;
    gap: 0.75rem;
}

/* Quick Access */
.hero-quick-access {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.quick-access-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 1rem;
    text-align: center;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.quick-btn i {
    font-size: 1.5rem;
    color: #3b82f6;
    transition: all 0.3s;
}

.quick-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: #1e40af;
}

.quick-btn:hover i {
    transform: scale(1.1);
}

/* Hero CTA (preserved spacing) */
.hero-cta {
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-with-search {
        padding: 3rem 1.5rem 2rem;
    }

    .hero-with-search .hero-title {
        font-size: 1.875rem;
    }

    .hero-with-search .hero-subtitle {
        font-size: 1rem;
    }

    .search-input {
        padding: 1rem 1.25rem 1rem 3.5rem;
        font-size: 1rem;
    }

    .search-button {
        padding: 0.875rem 1.25rem;
    }

    .search-button span {
        display: none;
    }

    .search-filters {
        flex-direction: column;
    }

    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   END HERO SEARCH BOX ENHANCEMENT
   ================================================================ */

/* ================================================================
   SEARCH BOX SECTION (COMPACT INSERT)
   Added: 2026-05-25
   ================================================================ */

.hero-search-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 3rem 2rem 2rem;
}

.search-box-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.search-form {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
}

.search-input-group:focus-within {
    box-shadow: 0 12px 30px rgba(30,64,175,0.15), 0 0 0 3px rgba(59,130,246,0.1);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.125rem;
}

.search-input {
    flex: 1;
    padding: 1.125rem 1.25rem 1.125rem 3.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 14px;
    outline: none;
    color: #1e293b;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-btn {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    border: none;
    border-radius: 10px;
    margin: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(30,64,175,0.3);
}

.search-filters {
    display: none;
    gap: 0.75rem;
    margin-top: 0.875rem;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.filter-select {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #475569;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.search-results {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 14px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    max-height: 450px;
    overflow-y: auto;
    z-index: 100;
}

.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    padding: 2.5rem;
    color: #64748b;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.result-item:hover {
    background: linear-gradient(90deg, #f0f9ff, transparent);
    transform: translateX(3px);
}

.result-item > i:first-child {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1rem;
}

.result-text {
    flex: 1;
}

.result-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.result-item small {
    color: #64748b;
    font-size: 0.8125rem;
}

.result-item > i:last-child {
    color: #cbd5e1;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.result-item:hover > i:last-child {
    color: #3b82f6;
    transform: translateX(3px);
}

.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem;
    text-align: center;
}

.search-empty i {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.search-empty p {
    font-weight: 600;
    color: #64748b;
    font-size: 1rem;
}

.search-footer {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    background: #f9fafb;
    border-radius: 0 0 14px 14px;
}

.search-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1e40af;
    text-decoration: none;
    transition: all 0.2s;
}

.search-footer a:hover {
    color: #3b82f6;
    gap: 0.625rem;
}

.quick-access {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.875rem;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.quick-btn i {
    font-size: 1.375rem;
    color: #3b82f6;
    transition: all 0.3s;
}

.quick-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    color: #1e40af;
}

.quick-btn:hover i {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .hero-search-section {
        padding: 2rem 1.25rem 1.5rem;
    }
    
    .search-input {
        padding: 1rem 1rem 1rem 3.25rem;
        font-size: 0.9375rem;
    }
    
    .search-btn {
        padding: 0.75rem 1.25rem;
    }
    
    .search-btn span {
        display: none;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .quick-access {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .quick-access {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   END SEARCH BOX SECTION
   ================================================================ */

/* ================================================================
   PREMIUM HERO SECTION - MODERN GOVERNMENT PORTAL 2026
   Design: Clean, Elegant, Professional
   Typography: Plus Jakarta Sans / Inter
   Colors: Navy Blue + Soft Blue Gradient
   Added: 2026-05-25
   ================================================================ */

/* Hero Section */
.hero-premium {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 50%, #e0f2fe 100%);
    padding: 5rem 2rem 4rem;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Hero Content */
.hero-content-wrapper {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.625rem 1.25rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e40af;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.12);
    margin-bottom: 1.75rem;
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.hero-badge i {
    font-size: 0.875rem;
}

/* Hero Heading */
.hero-heading {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

/* Hero Description */
.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
}

/* Search Bar Modern */
.hero-search-bar {
    margin-bottom: 2.5rem;
    position: relative;
}

.search-form-main {
    position: relative;
}

.search-input-wrapper {
    display: flex;
    background: white;
    border-radius: 16px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.search-input-wrapper:focus-within {
    box-shadow: 
        0 20px 40px rgba(30, 64, 175, 0.15),
        0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    border-color: #3b82f6;
}

.search-icon-main {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.25rem;
    pointer-events: none;
    transition: color 0.3s;
}

.search-input-wrapper:focus-within .search-icon-main {
    color: #3b82f6;
}

.search-input-main {
    flex: 1;
    padding: 1.25rem 1.5rem 1.25rem 4rem;
    font-size: 1.0625rem;
    border: none;
    border-radius: 16px;
    outline: none;
    color: #0f172a;
    background: transparent;
}

.search-input-main::placeholder {
    color: #94a3b8;
}

.btn-search-main {
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    margin: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-search-main:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
}

.btn-search-main i {
    font-size: 0.875rem;
    transition: transform 0.3s;
}

.btn-search-main:hover i {
    transform: translateX(3px);
}

/* Quick Filters */
.search-quick-filters {
    display: none;
    gap: 0.75rem;
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-filter {
    flex: 1;
    padding: 0.875rem 1.125rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9375rem;
    color: #475569;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-filter:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Search Preview */
.search-preview {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    max-height: 480px;
    overflow-y: auto;
    z-index: 100;
}

.preview-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    color: #64748b;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.375rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.preview-item:hover {
    background: linear-gradient(90deg, #f8fafc, transparent);
    transform: translateX(4px);
}

.preview-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.125rem;
}

.preview-text {
    flex: 1;
}

.preview-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.preview-meta {
    font-size: 0.8125rem;
    color: #64748b;
}

.preview-arrow {
    color: #cbd5e1;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.preview-item:hover .preview-arrow {
    color: #3b82f6;
    transform: translateX(4px);
}

.preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
    color: #64748b;
}

.preview-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: #cbd5e1;
}

.preview-footer {
    padding: 1rem 1.375rem;
    border-top: 1px solid #f1f5f9;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
}

.preview-footer a {
    display: block;
    text-align: center;
    font-weight: 600;
    color: #1e40af;
    text-decoration: none;
    transition: color 0.2s;
}

.preview-footer a:hover {
    color: #3b82f6;
}

/* CTA Buttons Modern */
.hero-cta-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.cta-btn i {
    font-size: 1rem;
    transition: transform 0.3s;
}

.cta-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.25);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.35);
}

.cta-primary:hover i {
    transform: scale(1.1);
}

.cta-secondary {
    background: white;
    color: #1e40af;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cta-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.cta-outline {
    background: transparent;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.cta-outline:hover {
    background: white;
    border-color: #94a3b8;
    color: #1e40af;
    transform: translateY(-2px);
}

/* Trust Badges */
.hero-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: #64748b;
    font-size: 0.875rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-item i {
    color: #10b981;
    font-size: 1.125rem;
}

/* Decorative Background */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    bottom: -10%;
    left: -5%;
    animation-delay: 5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: 40%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-premium {
        padding: 4rem 1.75rem 3rem;
        min-height: 550px;
    }

    .hero-heading {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .hero-premium {
        padding: 3.5rem 1.5rem 2.5rem;
        min-height: auto;
    }

    .hero-heading {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .search-input-main {
        padding: 1.125rem 1.25rem 1.125rem 3.5rem;
        font-size: 1rem;
    }

    .btn-search-main {
        padding: 0.875rem 1.25rem;
    }

    .btn-search-main span {
        display: none;
    }

    .search-quick-filters {
        flex-direction: column;
    }

    .hero-cta-modern {
        flex-direction: column;
        width: 100%;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    .hero-trust-badges {
        flex-direction: column;
        gap: 1rem;
    }

    .blob {
        filter: blur(40px);
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 1.875rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
}

/* ================================================================
   END PREMIUM HERO SECTION
   ================================================================ */

/* ================================================================
   SIMPLE SEARCH BOX (SAFE INSERT)
   Added: 2026-05-25
   ================================================================ */

.search-section-simple {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 2.5rem 2rem 2rem;
}

.search-wrapper-simple {
    max-width: 850px;
    margin: 0 auto;
}

.search-form-simple {
    margin-bottom: 1.25rem;
}

.search-input-container {
    display: flex;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.search-input-container:focus-within {
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
    transform: translateY(-2px);
}

.search-icon-left {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.125rem;
}

.search-input-simple {
    flex: 1;
    padding: 1.125rem 1.25rem 1.125rem 3.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 14px;
    outline: none;
    color: #1e293b;
}

.search-input-simple::placeholder {
    color: #94a3b8;
}

.btn-search-simple {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    border: none;
    border-radius: 10px;
    margin: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-search-simple:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.quick-links-simple {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.875rem;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.quick-link i {
    font-size: 1.375rem;
    color: #3b82f6;
    transition: all 0.3s;
}

.quick-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    color: #1e40af;
}

.quick-link:hover i {
    transform: scale(1.08);
}

/* ================================================================
   HERO TITLE COLOR UPDATE (HARMONIOUS WITH BACKGROUND)
   ================================================================ */

.hero-modern {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
}

.hero-title {
    color: #1e3a8a; /* Navy blue - harmonious with blue gradient background */
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.hero-subtitle {
    color: #1e40af; /* Slightly lighter navy for subtitle */
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
    .search-section-simple {
        padding: 2rem 1.25rem 1.5rem;
    }
    
    .search-input-simple {
        padding: 1rem 1rem 1rem 3.25rem;
        font-size: 0.9375rem;
    }
    
    .btn-search-simple {
        padding: 0.75rem 1.25rem;
    }
    
    .btn-search-simple span {
        display: none;
    }
    
    .quick-links-simple {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .quick-links-simple {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   END SIMPLE SEARCH BOX
   ================================================================ */
