/* ==========================================================================
   PART 1: GLOBAL SETUP & ARCHITECTURAL VARIABLES
   ========================================================================== */
:root {
  --brand-maroon: #800000;
  --brand-dark: #500000;
  --brand-deep-nested: #380000;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --text-dark: #333333;
  --border-color: #cbd5e1;
  --transition-speed: 0.25s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--light-gray);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Alert Boxes & Notifications Utilities */
.alert-box {
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
}

.alert-success {
  background-color: #def7ec;
  color: #03543f;
  border: 1px solid #bcf0da;
}

.alert-danger {
  background-color: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #f8b4b4;
}

.alert-box.alert-success,
.alert-box.alert-danger {
  margin-top: 15px;
}
/* ==========================================================================
   PART 2: MASTER HEAD MAIN NAVIGATION (MOBILE-FIRST STANDARD)
   ========================================================================== */
.system-header {
  background-color: var(--brand-maroon);
  color: var(--white);
  padding: 0.8rem 1.2rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 9999;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 80%;
}

.header-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.system-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* Smartphone Menu Trigger Hamburger Button */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle .bar {
  width: 24px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all var(--transition-speed) ease-in-out;
}

/* Mobile Off-screen Drawer Menu Tray Stacked Panel */
.main-navigation {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--brand-dark);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.main-navigation.is-active {
  display: block;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-item, .dropdown-trigger {
  display: block;
  width: 100%;
  padding: 14px 20px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  text-align: left;
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.nav-item:hover, .dropdown-trigger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Nested Submenu Dropdowns (Mobile Stacked Layout Accordion) */
.dropdown-menu {
  display: none;
  list-style: none;
  padding: 0;
  background-color: var(--brand-deep-nested);
}

.dropdown-menu li {
  border-bottom: none;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 35px;
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.85rem;
}

.dropdown-menu li a:hover {
  background-color: var(--brand-maroon);
  color: var(--white);
}

.nav-dropdown.is-open .dropdown-menu {
  display: block;
}

.arrow {
  font-size: 0.65rem;
  float: right;
  margin-top: 3px;
  transition: transform var(--transition-speed);
}

.nav-dropdown.is-open .arrow {
  transform: rotate(180deg);
}

/* --- Desktop Layout Advancement Breakpoints (Screens >= 992px wide) --- */
@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .main-navigation { display: block; position: static; width: auto; background: none; box-shadow: none; }
  .nav-links { display: flex; align-items: center; gap: 4px; }
  .nav-links li { position: relative; border-bottom: none; }
  .nav-item, .dropdown-trigger { padding: 10px 16px; border-radius: 4px; }
  .nav-item:hover, .dropdown-trigger:hover { background-color: rgba(255, 255, 255, 0.15); }
  .dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background-color: var(--brand-dark); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); border-radius: 4px; padding: 6px 0; margin-top: 4px; }
  .dropdown-menu li a { padding: 10px 20px; }
  .nav-dropdown:hover .dropdown-menu { display: block; }
  .nav-dropdown:hover .arrow { transform: rotate(180deg); }
}
/* ==========================================================================
   PART 3: SECONDARY SUB-MENU FILTERS & MODERN FORM ELEMENTS
   ========================================================================== */
.filter-navigation-wrapper {
  background-color: #f0f2f5;
  border-bottom: 2px solid #dddddd;
  padding: 5px 0;
}

.filter-mobile-toggle {
  display: block;
  width: 100%;
  padding: 12px 15px;
  background-color: #6c757d;
  color: var(--white);
  border: none;
  font-weight: bold;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
}

.filter-mobile-toggle .filter-arrow {
  float: right;
  transition: transform 0.2s;
}

.filter-mobile-toggle.active .filter-arrow {
  transform: rotate(180deg);
}

.filter-nav-bar {
  display: none;
  padding: 15px;
  background-color: var(--white);
}

.filter-nav-bar.is-visible {
  display: block;
}

.filter-group {
  margin-bottom: 15px;
}

.group-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #777777;
  font-weight: bold;
  margin-bottom: 5px;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 2px;
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-item {
  display: block;
  padding: 8px 12px;
  background-color: #f8f9fa;
  color: #333333;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  border-left: 3px solid var(--brand-maroon);
}

.filter-item:hover {
  background-color: var(--brand-maroon);
  color: var(--white);
}

/* Unified Form Layout Containers & Inputs */
.form-container-wrapper {
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-card {
  width: 100%;
  max-width: 850px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.form-card-header {
  background-color: #fafbfc;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.modern-form {
  padding: 24px;
}

.form-section {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 25px;
  background-color: #ffffff;
}

.form-control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-bottom: 15px;
}

.form-control-group label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #334155;
}

.form-control-group input,
.form-control-group select {
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--white);
  font-size: 0.95rem;
  color: #1e293b;
}

/* --- Desktop Layout Advancements Mode (Screens >= 992px wide) --- */
@media (min-width: 992px) {
  .filter-mobile-toggle { display: none; }
  .filter-nav-bar { display: flex; justify-content: flex-start; gap: 40px; padding: 14px 24px; }
  .filter-group { margin-bottom: 0; }
  .filter-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .filter-item { border-left: none; border-bottom: 2px solid transparent; background-color: transparent; padding: 5px 10px; }
  .filter-item:hover { background-color: transparent; color: var(--brand-maroon); border-bottom-color: var(--brand-maroon); border-radius: 0; }
}
/* ==========================================================================
   PART 4: HORIZONTAL SCROLL MATRIX, METRICS GRID & BADGES
   ========================================================================== */
.dashboard-body {
  padding: 20px;
  max-width: 100%;
}

.content-header {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.content-header h2 {
  margin: 0;
  color: #222222;
  font-size: 1.5rem;
}

.system-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 0.9rem;
  height: 46px;
}

/* --- SIDEWAYS HORIZONTAL SCROLL ENGINE --- */
.responsive-table-wrapper {
  width: 100%;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border-color);
  
  /* Enforces absolute horizontal scrolling on smaller screens */
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

.modern-responsive-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.modern-responsive-table th {
  background-color: var(--brand-maroon);
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  /* Prevent table headings from wrapping into stacked rows */
  white-space: nowrap !important;
}

.modern-responsive-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eeeeee;
  color: #444444;
  font-size: 0.88rem;
  /* Enforces clean grid alignment across a single sideways line */
  white-space: nowrap !important;
}

.modern-responsive-table tbody tr:hover {
  background-color: #fafdff;
}

.no-records-cell {
  text-align: center !important;
  padding: 40px !important;
  color: #888888;
  font-weight: bold;
}

/* Touch Action Rows: Aligning Buttons Next to Each Other Natively */
.mobile-action-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
  justify-content: flex-start !important;
  align-items: center;
  width: auto !important;
}

.action-edit-btn {
  display: inline-block;
  padding: 6px 12px;
  background-color: #212529;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.action-edit-btn:hover {
  background-color: #000000;
}

/* Operational Badges Chips & Visual Status Indication Blocks */
.status-pill {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-boarder {
  background-color: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #bbdefb;
}

.badge-day {
  background-color: #f5f5f5;
  color: #424242;
  border: 1px solid #e0e0e0;
}

.badge-position {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 4px;
}

/* --- Mobile Viewport Rule Constraints Override Rules (< 991px wide) --- */
@media (max-width: 991px) {
  .content-header {
    flex-direction: column;
  }

  /* Force headers and fields to lock into table rows instead of stacking blocks */
  .modern-responsive-table thead {
    display: table-header-group !important; 
  }

  .modern-responsive-table, 
  .modern-responsive-table tbody, 
  .modern-responsive-table tr, 
  .modern-responsive-table td {
    display: table-cell; 
  }

  .modern-responsive-table tr {
    display: table-row !important;
    background-color: var(--white);
  }

  /* Wipe out old mobile card pseudo-elements data labels */
  .modern-responsive-table td::before {
    display: none !important;
    content: "" !important;
  }
}

/* --- Desktop Layout Breakpoint Adjustments (>= 992px wide) --- */
@media (min-width: 992px) {
  .content-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .system-search-input {
    width: 280px;
  }
  .mobile-action-row {
    justify-content: flex-end !important;
  }
}

/* App Master Structural Footers */
.system-footer {
  background-color: #1a1a1a;
  color: #c5c5c5;
  padding: 30px 20px;
  margin-top: 50px;
  font-size: 0.85rem;
  border-top: 3px solid var(--brand-maroon);
}
/* ==========================================================================
   FIXED PREG-SUBMENU TOOLBAR INTERFACE ADJUSTMENTS
   ========================================================================== */
.preg-sub-menu-bar { 
    background-color: var(--brand-dark, #500000); 
    padding: 12px 16px; 
    border-radius: 6px; 
    margin: 15px 0 25px 0; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    justify-content: center; 
    align-items: center; 
    width: 100%;
}

/* Ensure individual category filtering links are distinct tap targets */
.preg-sub-link { 
    color: #ffffff !important; 
    text-decoration: none; 
    padding: 8px 14px; 
    font-size: 0.8rem; 
    font-weight: bold; 
    text-transform: uppercase;
    border-radius: 4px; 
    background-color: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.15); 
    transition: background-color 0.2s, transform 0.1s;
    display: inline-block;
    white-space: nowrap;
}

.preg-sub-link:hover, 
.preg-sub-link.active-sub { 
    background-color: var(--brand-maroon, #800000); 
    border-color: #ffffff; 
    transform: translateY(-1px);
}

/* Mobile responsive optimization: columns auto-stack elegantly on smartphones */
@media (max-width: 768px) {
    .preg-sub-menu-bar {
        gap: 6px;
        padding: 10px;
    }
    .preg-sub-link {
        font-size: 0.75rem;
        padding: 6px 10px;
        flex: 1 1 auto;
        text-align: center;
    }
}
/* ==========================================================================
   CUSTOM INSTITUTIONAL FOOTER - RESPONSIVE STYLING SHIELD
   ========================================================================== */
.system-footer {
  background-color: #0f172a; /* Deep slate background matches branding highlights */
  color: #94a3b8; /* Highly readable contrast text colors */
  padding: 40px 24px;
  margin-top: 60px;
  border-top: 4px solid #800000; /* Institutional maroon top border accent */
  width: 100%;
  box-sizing: border-box;
}

.system-footer .footer-grid {
  display: grid;
  /* Stack vertically as single panels on phone viewports */
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.system-footer h3 {
  color: #ffffff; /* Brighter accent tones for internal title headings */
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.system-footer p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 3px 0;
}

/* --- Tablet & Desktop Multi-Column Expansion Modes (>= 768px wide) --- */
@media (min-width: 768px) {
  .system-footer .footer-grid {
    /* Expands into a professional 3-column inline row layout on larger monitors */
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}
/* ==========================================================================
   FIXED RESPONSIVE SCROLL WINDOW MATRIX ENGINE
   ========================================================================== */
.responsive-table-wrapper {
  width: 100% !important;
  background: var(--white, #ffffff);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color, #cbd5e1);
  
  /* Strictly enforces sideways touch gestures across all component views */
  overflow-x: auto !important;
  display: block !important; 
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

.modern-responsive-table {
  width: 100% !important;
  border-collapse: collapse !important;
  display: table !important; /* Forces the browser to keep layout structures intact */
}

/* --- Mobile Viewport Absolute Consistency Rule (< 991px wide) --- */
@media (max-width: 991px) {
  /* Prevent browser view engines from changing structural tables into broken flex blocks */
  .modern-responsive-table thead {
    display: table-header-group !important;
  }

  .modern-responsive-table tbody {
    display: table-row-group !important;
  }

  .modern-responsive-table tr {
    display: table-row !important;
    background-color: var(--white, #ffffff);
  }

  .modern-responsive-table th,
  .modern-responsive-table td {
    display: table-cell !important; /* Locks vertical cell borders in perfect alignment */
    white-space: nowrap !important; /* Completely blocks text from word wrapping downwards */
    padding: 12px 16px !important;
    font-size: 0.88rem !important;
    text-align: left !important;
    vertical-align: middle !important;
  }

  /* Clear out any remaining overlapping card label content strings completely */
  .modern-responsive-table td::before {
    display: none !important;
    content: "" !important;
  }
}
/* ==========================================================================
   UPDATED MASTER NAVBAR DROPDOWN REFACTORING — PART 1
   ========================================================================== */
.system-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--brand-dark, #500000);
  padding: 14px 24px;
  position: relative;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Base navigation list layout */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 4px;
}

/* Master Dropdown Parent Wrapper Element Container Hook */
.nav-dropdown {
  position: relative;
  /* CRITICAL: Enforces a solid background bridge area across desktop breakpoints */
  padding-bottom: 12px !important; 
  margin-bottom: -12px !important;
}

/* Navigation Touch Action Trigger Buttons Adjustments */
.dropdown-trigger, .nav-item {
  background: transparent;
  color: #ffffff !important;
  border: none;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-radius: 4px;
}

.dropdown-trigger:hover, .nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
/* ==========================================================================
   UPDATED MASTER NAVBAR DROPDOWN REFACTORING — PART 2
   ========================================================================== */

/* The Core Sub-Menu Pop-Over Shell */
.dropdown-menu {
  position: absolute;
  /* Snaps tightly beneath the main navigation bar link rows */
  top: 100%; 
  left: 0;
  background-color: #ffffff;
  min-width: 260px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border: 1px solid #e2e8f0;
  
  /* HIDE CONTROLS BY DEFAULT USING SMOOTH FADE TRANSITIONS */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  
  /* CRITICAL SMART HOVER HOOK FOR DESKTOP */
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  /* Creates a subtle memory delay buffer when your cursor slips away */
  transition-delay: 0.15s; 
  z-index: 1010;
}

/* Individual list item spacing configurations */
.dropdown-menu li {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Sub-Menu text layout link strings styling rules */
.dropdown-menu a {
  display: block;
  padding: 11px 20px;
  color: #1e293b !important;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-align: left;
  white-space: nowrap;
}

/* Clear, high-contrast block row accent response when cursor rests on options */
.dropdown-menu a:hover {
  background-color: #f1f5f9;
  color: #800000 !important; /* Maroon highlight focus anchor */
}

/* --- DESKTOP INTERFACE HOVER ACTIVATION DRIVER ENGINE (>= 992px wide) --- */
@media (min-width: 992px) {
  /* Dynamic visibility response triggers smoothly without immediate cutoff structural failures */
  .nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* Removes the exit delay buffer instantly when the cursor enters the link area */
    transition-delay: 0s; 
  }
}

/* --- MOBILE & TABLET DEVICE FALLBACK COMPATIBILITY CONTROLS (< 991px wide) --- */
@media (max-width: 991px) {
  .nav-dropdown {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    width: 100%;
  }
  
  .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background-color: rgba(0, 0, 0, 0.05);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transform: none !important;
    transition: max-height 0.3s ease-out;
  }
  
  /* Overwrite dynamic script toggles cleanly on touch smartphone views */
  .nav-dropdown.is-open .dropdown-menu {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    padding: 6px 0;
  }
}
/* ==========================================================================
   MOBILE DROPDOWN VISIBILITY & CONTRAST PATCH MATRIX (< 991px wide)
   ========================================================================== */
@media (max-width: 991px) {
  /* Enforces a clean, high-contrast white panel for the active mobile dropdown tray */
  .nav-dropdown.is-open .dropdown-menu {
    background-color: #ffffff !important;
    border-radius: 6px !important;
    margin: 8px 12px !important;
    padding: 8px 0 !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    max-height: 600px !important; /* Expands deep enough to show all menu layers smoothly */
    overflow-y: visible !important;
    display: block !important;
  }

  /* Completely resets the blue text constraint into high-contrast charcoal labels */
  .nav-dropdown.is-open .dropdown-menu li a {
    color: #334155 !important; /* Premium dark slate slate text */
    padding: 12px 20px !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    border-left: 3px solid transparent !important;
    text-transform: none !important; /* Preserves first-letter capitalization */
    display: block !important;
    transition: background-color 0.2s ease !important;
  }

  /* Subtle left accent highlight responses when a link row cell is tapped on screen */
  .nav-dropdown.is-open .dropdown-menu li a:active,
  .nav-dropdown.is-open .dropdown-menu li a:hover {
    background-color: #f8fafc !important;
    color: #800000 !important; /* Crisp maroon typography response accent color focus */
    border-left-color: #800000 !important;
  }
}
/* ==========================================================================
   MOBILE VERTICAL MAIN DRAWER SCROLL OVERFLOW PATCH MATRIX (< 991px wide)
   ========================================================================== */
@media (max-width: 991px) {
  /* 1. Allows the master absolute drawer list layout box to handle scrolling safely */
  .main-navigation {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    background-color: var(--brand-dark, #500000) !important;
    
    /* Calculate precise dynamic view heights so long items do not push past the glass viewport bottom */
    max-height: calc(100vh - 80px) !important; 
    
    /* ENFORCES SCROLL LAYER IN REAL-TIME FOR LOWER NAVIGATION ENTRIES */
    overflow-y: auto !important; 
    -webkit-overflow-scrolling: touch; /* Butter-smooth kinetic sliding actions on iOS touch devices */
    z-index: 9999 !important;
  }

  /* 2. Clear block structure alignments to prevent inline flex element collapses */
  .nav-links {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0 !important;
    padding: 10px 0 !important;
  }

  .nav-links > li {
    width: 100% !important;
    display: block !important;
  }
}
/* ==========================================================================
   DESKTOP NAVBAR TYPOGRAPHY HOVER VISIBILITY FIX (>= 992px wide)
   ========================================================================== */
@media (min-width: 992px) {
  /* 1. Force main top-level menu triggers to remain brilliant white on hover */
  .nav-links > li > a.nav-item:hover,
  .nav-links > li.nav-dropdown:hover .dropdown-trigger,
  .dropdown-trigger:hover {
    color: #ffffff !important; /* Locks text color as solid bright white */
    background-color: rgba(255, 255, 255, 0.15) !important; /* Safe, transparent background pill shield */
    border-radius: 4px !important;
  }

  /* 2. Clear contrast validation mapping for the opened sub-menu dropdown rows */
  .dropdown-menu a {
    color: #334155 !important; /* Highly scannable dark slate text by default */
    text-transform: none !important; /* Keeps first-letter capitalization clean */
  }

  /* 3. Explicitly crisp contrast color combination when pointing at sub-menu links */
  .dropdown-menu a:hover {
    background-color: #f1f5f9 !important; /* Premium light slate row highlight */
    color: #800000 !important; /* Snaps text color to sharp, readable deep maroon */
  }
}
