/* Mobile layout: keep Bootstrap gutters inside the viewport. */
html { width: 100%; overflow-x: clip; }
body { width: 100%; margin: 0; overflow-x: clip; }
main, .navbar, .site-footer { min-width: 0; }
img, iframe, video { max-width: 100%; }
input, select, textarea, .input-group { min-width: 0; }
.red-slider { width: 100%; }
@media (max-width: 991.98px) {
  .navbar > .container { gap: 12px; }
  .navbar-brand { min-width: 0; margin-right: 0; }
  .navbar-toggler { flex-shrink: 0; }
  .navbar-collapse { flex-basis: 100%; }
  .navbar-nav { align-items: stretch !important; }
  .hero-section { padding: 55px 0 90px; }
  .hero-section-text.mt-5 { margin-top: 0 !important; }
  .site-header { padding: 65px 0 100px; }
  .hero-title, .site-header h1 { font-size: clamp(32px, 5.5vw, 48px); line-height: 1.12; }
  .hero-form { padding: 28px; }
  .job-body, .contact-info > div { min-width: 0; }
  .job-thumb-detail-box { padding: 28px; }
}
@media (max-width: 767.98px) {
  .container, .container-fluid { --bs-gutter-x: 2rem; }
  .row { --bs-gutter-x: 1.5rem; }
  .navbar { padding: 12px 0; }
  .navbar .logo-image { width: 48px; height: 48px; margin-right: 10px; flex-shrink: 0; }
  .navbar .logo-text { font-size: clamp(22px, 6vw, 28px); line-height: 1.1; }
  .navbar .logo-slogan { font-size: 10px; }
  .hero-form { padding: 22px; }
  .hero-form h3 { font-size: 26px; }
  .hero-section h6 { font-size: 18px; line-height: 1.4; }
  h2 { font-size: clamp(27px, 7vw, 36px); line-height: 1.15; }
  p, li { overflow-wrap: break-word; }
  .custom-text-block { padding: 28px 22px; }
  .job-thumb, .job-body > .d-flex, .job-detail-share, .custom-border-btn-wrap, .site-footer-bottom .d-flex { flex-wrap: wrap; gap: 12px; }
  .job-thumb-box { max-width: 100%; }
  .job-thumb-detail-box { padding: 22px; }
  .job-location, .job-date, .job-price { min-width: 0; margin-left: 0; margin-right: 12px; }
  .job-image-box-wrap-info { margin: 14px; }
  .custom-btn { white-space: normal; max-width: 100%; }
  .contact-info { align-items: flex-start !important; }
  .contact-info a, .site-footer a { overflow-wrap: anywhere; }
  .google-map { width: 100%; height: 300px; }
  .red-slider-controls { bottom: 18px; gap: 8px; max-width: calc(100% - 32px); }
  .red-slider-controls button { min-height: 44px; }
  .red-slider-dots { gap: 8px; }
  .red-slider-dots button { min-height: 12px; }
  .site-footer .logo-text { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .red-slide { transition: none; } }
