/* Global responsive helpers */
html, body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
img, svg, video, canvas, audio, iframe {
  max-width: 100%;
  height: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
.container-responsive {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 640px) { .container-responsive { max-width: 640px; } }
@media (min-width: 768px) { .container-responsive { max-width: 768px; } }
@media (min-width: 1024px){ .container-responsive { max-width: 1024px; } }
@media (min-width: 1280px){ .container-responsive { max-width: 1200px; } }

/* Header / navigation mobile behavior */
.modern-nav .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
}
.modern-nav .mobile-menu-btn {
  display: none;
  cursor: pointer;
  font-size: 22px;
}
.modern-nav .nav-links,
.modern-nav .nav-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}
@media (max-width: 992px){
  .modern-nav .mobile-menu-btn { 
    display: block !important; 
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
  }
  
  .modern-nav .nav-container {
    position: relative;
    flex-wrap: wrap;
  }
  
  .modern-nav .nav-links,
  .modern-nav .nav-buttons {
    display: none !important;
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    gap: 1rem;
  }
  
  .modern-nav .nav-links.show,
  .modern-nav .nav-buttons.show {
    display: flex !important; /* FORCE override mobile hidden */
  }
  
  .modern-nav .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .modern-nav .nav-links li a {
    display: block;
    padding: 1rem;
    font-size: 16px;
  }
  
  .modern-nav .nav-buttons .btn-outline,
  .modern-nav .nav-buttons .btn-primary {
    width: 100%;
    justify-content: center;
  }
  
  .modern-nav .logo img {
    max-height: 60px;
    height: auto;
  }
}

/* Ensure mobile menu displays on tablets too */
@media (max-width: 1200px) {
  .modern-nav .mobile-menu-btn,
  .mobile-menu-btn {
    display: block !important;
  }
}

/* Force hamburger button visibility at all mobile/tablet sizes */
@media (max-width: 768px) {
  .modern-nav .mobile-menu-btn,
  .mobile-menu-btn,
  nav .mobile-menu-btn,
  .nav-container .mobile-menu-btn {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1001 !important;
  }
  
  /* Ensure nav-container allows absolute positioning */
  .modern-nav .nav-container,
  .nav-container {
    position: relative !important;
  }
}

/* General form responsiveness */
input[type=\"text\"], input[type=\"email\"], input[type=\"number\"], select, textarea {
  max-width: 100%;
}

/* Utility classes */
.hide-mobile { display: block; }
.show-mobile { display: none; }
@media (max-width: 768px){
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
}

/* Sidebar stacking fallback */
@media (max-width: 992px){
  .sidebar-right { position: static !important; top: auto !important; }
}


