/* Modern PPDB Design System */
/* Reset & Base */
* { box-sizing: border-box; outline: none; }
html, body { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  background: #f1f5f9;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
img { max-width: 100%; display: block; }

/* Theme Variables */
:root {
  /* Brand Colors - ORANGE THEME */
  --primary: #f97316; /* Orange 500 */
  --primary-dark: #ea580c; /* Orange 600 */
  --primary-light: #fb923c; /* Orange 400 */
  --secondary: #f59e0b; /* Amber 500 */
  --accent: #14b8a6; /* Teal 500 */
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
  --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --gradient-hero: linear-gradient(135deg, #ea580c 0%, #d97706 100%);
  
  /* Surfaces */
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  
  /* Text */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Status */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  
  /* Effects */
  --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);
  
  /* Layout */
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --container: 1200px;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
}

/* Layout System */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.section { padding: var(--space-12) 0; }
.main-content { min-height: calc(100vh - 300px); display: flex; flex-direction: column; }

/* Extended Utilities for Compatibility */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }

.m-0 { margin: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }

.w-full { width: 100%; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-64 { width: 16rem; }

.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-96 { height: 24rem; }
.h-screen { height: 100vh; }

.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-h-90vh { max-height: 90vh; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.bg-white { background-color: white; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-red-50 { background-color: #fef2f2; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }

.text-white { color: white; }
.text-dark { color: var(--text-main); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-red-500 { color: #ef4444; }

.border { border-width: 1px; border-style: solid; border-color: var(--border); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-color: var(--border); }
.border-t { border-top-width: 1px; border-top-style: solid; border-color: var(--border); }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

.cursor-pointer { cursor: pointer; }
.cursor-zoom-in { cursor: zoom-in; }

/* Opacity & Blur Helpers */
.bg-black-70 { background-color: rgba(0, 0, 0, 0.7); }
.bg-white-95 { background-color: rgba(255, 255, 255, 0.95); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.bg-overlay-gradient { background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%); }
.blur-3xl { filter: blur(64px); }
.opacity-10 { opacity: 0.1; }

/* Transform Helpers */
.translate-x-half { transform: translateX(50%); }
.translate-y-half-neg { transform: translateY(-50%); }
.translate-center-x { transform: translateX(-50%); }
.translate-center-y { transform: translateY(50%); }

/* Group Hover Helpers */
.group:hover .group-hover\:text-white { color: white; }
.group:hover .group-hover\:bg-primary { background-color: var(--primary); }
.group:hover .group-hover\:border-primary { border-color: var(--primary); }


/* Grid System */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--space-8); }
.grid-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--space-4); }

/* Responsive Grid */
@media (max-width: 992px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: var(--space-6);
  }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-full { grid-column: 1 / -1; }

/* Typography */
h1, h2, h3, h4, h5 { color: var(--text-main); font-weight: 700; line-height: 1.2; margin-top: 0; }
h1 { font-size: 3rem; letter-spacing: -0.02em; margin-bottom: var(--space-6); }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; margin-bottom: var(--space-4); }
h3 { font-size: 1.5rem; margin-bottom: var(--space-3); }
h4 { font-size: 1.25rem; margin-bottom: var(--space-2); }
h5 { font-size: 1rem; font-weight: 600; margin-bottom: var(--space-2); }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 2rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-white { color: white; }

/* Components: Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--space-4) 0;
  transition: all 0.3s ease;
}
.navbar-container { display: flex; justify-content: space-between; align-items: center; }
.navbar-brand { 
  display: flex; align-items: center; gap: var(--space-2); 
  font-weight: 800; font-size: 1.25rem; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.navbar-nav { 
  list-style: none; padding: 0; margin: 0; display: flex; gap: var(--space-6); align-items: center; 
}
.nav-link { 
  font-weight: 600; font-size: 0.95rem; color: var(--text-muted);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }

.navbar-toggle { display: none; background: none; border: none; cursor: pointer; }
.hamburger { width: 24px; height: 2px; background: var(--text-main); position: relative; display: block; }
.hamburger::before, .hamburger::after {
  content: ''; position: absolute; width: 100%; height: 2px; background: var(--text-main); left: 0;
}
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* Components: Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.75rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--gradient-primary); color: white;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; border: 2px solid var(--border); color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--primary); color: var(--primary); background: var(--surface-alt);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-full { width: 100%; }

/* Components: Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: var(--space-4); }
.card-img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.rounded-lg { border-radius: var(--radius-lg); }

/* Components: Forms */
.form-group { margin-bottom: var(--space-4); text-align: left; }
.form-label { display: block; margin-bottom: var(--space-2); font-weight: 600; font-size: 0.9rem; color: var(--text-main); }
.form-control {
  width: 100%; padding: 0.75rem 1rem;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; background: var(--surface-alt);
  transition: all 0.2s ease;
}
.form-control:focus {
  border-color: var(--primary); background: var(--surface);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Components: Alerts */
.alert {
  padding: var(--space-4); border-radius: var(--radius-sm); margin-bottom: var(--space-4);
  font-weight: 500; display: flex; align-items: center; gap: var(--space-2);
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Components: Footer */
footer {
  background: white; border-top: 1px solid var(--border);
  padding: var(--space-12) 0 var(--space-8); margin-top: auto;
}
.stack { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.stack a:hover { color: var(--primary); padding-left: var(--space-1); }

/* Pages: Login & Auth */
.auth-wrapper {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
}
.auth-card {
  width: 100%; max-width: 450px;
  background: var(--surface); padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}
.auth-header { text-align: center; margin-bottom: var(--space-6); }
.auth-title { font-size: 1.75rem; margin-bottom: var(--space-1); }

/* Landing Page Specifics */
.hero {
  background: var(--gradient-hero);
  color: white;
  padding: var(--space-16) 0;
  text-align: center;
  border-radius: 0 0 var(--space-12) var(--space-12);
  margin-bottom: var(--space-8);
}
.hero h1 { color: white; margin-bottom: var(--space-4); }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.25rem; max-width: 700px; margin: 0 auto var(--space-8); }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
  padding: 0.5rem 1.5rem; border-radius: 50px; font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: var(--space-6); border: 1px solid rgba(255,255,255,0.2);
}
.hero-actions { display: flex; gap: var(--space-4); justify-content: center; }
.hero .btn-outline { color: white; border-color: rgba(255,255,255,0.3); }
.hero .btn-outline:hover { background: white; color: var(--primary); border-color: white; }

.stat-card {
  background: white; padding: var(--space-6); border-radius: var(--radius);
  border: 1px solid var(--border); text-align: center;
}
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: var(--space-2); }
.stat-label { font-weight: 600; color: var(--text-muted); }

.icon-circle {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-4);
}
.bg-blue-light { background: #e0e7ff; color: var(--primary); }
.bg-green-light { background: #dcfce7; color: var(--success); }

/* Spacing Utilities */
.leading-relaxed { line-height: 1.625; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.p-4 { padding: var(--space-4); }
.p-8 { padding: var(--space-8); }

/* Decorative Elements */
.bg-gradient { background: var(--gradient-primary); color: white; }
.badge {
  display: inline-block; padding: 0.25rem 0.75rem;
  border-radius: 99px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
}
.badge-primary { background: #e0e7ff; color: var(--primary); }
.badge-success { background: #dcfce7; color: var(--success); }
.badge-warning { background: #fef3c7; color: var(--warning); }
.badge-danger { background: #fee2e2; color: var(--danger); }
.badge-info { background: #dbeafe; color: var(--info); }

/* Table */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: var(--space-4); text-align: left; border-bottom: 1px solid var(--border); }
.table th { background: var(--surface-alt); font-weight: 600; color: var(--text-muted); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; }
.table tr:last-child td { border-bottom: none; }

/* Utilities Extra */
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-2xl { box-shadow: var(--shadow-xl); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.h-64 { height: 16rem; }
.h-96 { height: 24rem; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }

.opacity-0 { opacity: 0; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.opacity-100 { opacity: 1; }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.transform { transform: var(--tw-transform); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }

/* Line Clamp */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Accordion / Details */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] .group-open\:rotate-180 { transform: rotate(180deg); }
details[open].open\:shadow-md { box-shadow: var(--shadow-md); }

/* Extra Teal & Text Sizes */
.bg-teal-50 { background-color: #f0fdfa; }
.border-teal-100 { border-color: #ccfbf1; }
.text-teal-200 { color: #99f6e4; }
.text-9xl { font-size: 8rem; line-height: 1; }

.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-white:hover { background-color: white; }
.hover\:bg-white\/10:hover { background-color: rgba(255,255,255,0.1); }

.hover\:text-primary:hover { color: var(--primary); }
.hover\:underline:hover { text-decoration: underline; }

.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }

.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.border-gray-200 { border-color: #e5e7eb; }

.bg-orange-100 { background-color: #ffedd5; }
.text-orange-600 { color: #ea580c; }

.bg-teal-100 { background-color: #ccfbf1; }
.text-teal-600 { color: #0d9488; }

.bg-blue-100 { background-color: #dbeafe; }
.text-blue-600 { color: #2563eb; }

.text-purple-600 { color: #9333ea; }
.bg-purple-light { background-color: #f3e8ff; }

/* Modal */
.modal {
  display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
  overflow: auto; background-color: rgba(0,0,0,0.5); backdrop-filter: blur(5px);
  opacity: 0; transition: opacity 0.3s ease;
}
.modal.show { display: flex; align-items: center; justify-content: center; opacity: 1; }
.modal-content {
  background-color: #fff; margin: auto; padding: 0; border-radius: 1rem;
  width: 90%; max-width: 900px; position: relative;
  transform: scale(0.95); transition: transform 0.3s ease;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.modal.show .modal-content { transform: scale(1); }
.modal-close {
  position: absolute; right: 1rem; top: 1rem; font-size: 1.5rem; cursor: pointer;
  z-index: 10; color: #64748b; background: rgba(255,255,255,0.8); 
  border-radius: 50%; width: 40px; height: 40px; border: none;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: #ef4444; color: white; transform: rotate(90deg); }
.modal-body { padding: 0; }
.modal-img { width: 100%; height: auto; display: block; }

/* Custom Utilities for Map/FAQ Section */
.min-h-500 { min-height: 500px; }
.min-h-400 { min-height: 400px; }
.bg-white-95 { background-color: rgba(255, 255, 255, 0.95); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.border-white-50 { border-color: rgba(255, 255, 255, 0.5); }

.sticky { position: sticky; }
.top-0 { top: 0; }
.top-24 { top: 6rem; }
.bottom-0 { bottom: 0; }

.cursor-pointer { cursor: pointer; }
.cursor-zoom-in { cursor: zoom-in; }

.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:text-red-500:hover { color: #ef4444; }
.hover\:bg-red-50:hover { background-color: #fef2f2; }

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 8px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f1f5f9; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Prose for content */
.prose { max-width: none; }
.prose p { margin-bottom: 1em; }
.prose ul { list-style-type: disc; padding-left: 1.5em; margin-bottom: 1em; }
.prose ol { list-style-type: decimal; padding-left: 1.5em; margin-bottom: 1em; }
.prose a { color: var(--primary); text-decoration: underline; }

/* Gallery Image in Modal */
.modal-content .grid-gallery img { aspect-ratio: 4/3; object-fit: cover; }

/* =================================================
   NAVBAR ROBUST FIXES (FINAL)
================================================= */

/* 1. Desktop Guard (Min-Width 993px) */
/* Ensures desktop menu is ALWAYS visible and correctly styled, 
   regardless of what mobile styles do. */
@media (min-width: 993px) {
  .navbar-toggle {
    display: none !important;
  }
  .navbar-menu {
    display: block !important;
    position: static !important;
    box-shadow: none !important;
    background: transparent !important;
    width: auto !important;
    padding: 0 !important;
    border: none !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .navbar-nav {
    flex-direction: row !important;
    gap: var(--space-6) !important;
    align-items: center !important;
  }
  .navbar-nav li {
    width: auto !important;
    border: none !important;
    padding: 0 !important;
  }
  .nav-link, .btn {
    width: auto !important;
    justify-content: center !important;
  }
}

/* 2. Mobile Logic (Max-Width 992px) */
@media (max-width: 992px) {
  .navbar-toggle {
    display: block !important;
  }

  .navbar-menu {
    display: none !important; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0; /* Full width */
    background: #fff;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
  }

  .navbar-menu.active {
    display: block !important;
    animation: slideDown 0.3s ease-out forwards;
  }

  .navbar-nav {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: flex-start !important;
    width: 100%;
  }

  .navbar-nav li {
    width: 100%;
    border-bottom: 1px solid var(--border-gray-100);
    padding-bottom: 0.5rem;
  }
  
  .navbar-nav li:last-child {
    border-bottom: none;
  }

  .nav-link {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding: 0.5rem 0;
  }
  
  /* Buttons on mobile should stretch */
  .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
}

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