:root {
  --touch-highlight-color: rgba(66, 139, 202, 0.2);
  --touch-active-color: rgba(66, 139, 202, 0.3);
}

* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

input, textarea, select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button, a, [role="button"] {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.touch-target {
  min-height: 44px;
  min-width: 44px;
}

.select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.select-wrapper select {
  width: 100%;
  padding-right: 40px;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
  font-size: 14px;
}

.select-wrapper.has-value select {
  color: #333;
}

.apply-file-wrapper {
  position: relative;
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.apply-file-wrapper:hover {
  border-color: var(--primary-color);
  background-color: rgba(66, 139, 202, 0.05);
}

.apply-file-wrapper.has-file {
  border-style: solid;
  border-color: var(--primary-color);
  background-color: rgba(66, 139, 202, 0.05);
}

.apply-file-wrapper input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  top: 0;
  left: 0;
}

.modal-backdrop {
  touch-action: none;
}

@media (max-width: 1024px) {
  .navbar {
    padding: 10px 15px;
  }
  
  .navbar-nav {
    flex-direction: column;
  }
  
  .navbar-collapse {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  
  .navbar-nav .nav-item {
    margin: 0;
  }
  
  .navbar-nav .nav-link {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
  }
  
  .navbar-brand img {
    height: 35px;
  }
}

@media (max-width: 768px) {
  .btn, button, [role="button"] {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 8px;
  }

  .nav-menu a, .mobile-nav a {
    min-height: 36px;
    line-height: 36px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  textarea {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 8px;
    border: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
  }

  select {
    min-height: 44px;
    padding: 12px 36px 12px 16px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
  }

  .form-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
  }

  .job-card {
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  }

  .job-card-header {
    margin-bottom: 12px;
  }

  .job-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
  }

  .job-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .meta-item {
    font-size: 13px;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 4px;
  }

  .apply-modal {
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .apply-form .form-group {
    margin-bottom: 16px;
  }

  .apply-file-wrapper {
    min-height: 80px;
    padding: 16px;
  }

  .captcha-modal {
    padding: 20px;
  }

  .captcha-container {
    width: 140px;
    height: 45px;
  }

  .drawer {
    width: 100%;
    max-width: 100%;
    right: -100%;
  }

  .drawer.open {
    right: 0;
  }

  .drawer-content {
    padding: 20px;
  }

  .filter-row {
    flex-direction: column;
    gap: 12px;
  }

  .filter-item {
    width: 100%;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .page-header {
    padding: 20px 0;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .page-header p {
    font-size: 14px;
  }

  .jobs-container {
    padding: 40px 15px;
  }

  .pagination-controls {
    flex-wrap: wrap;
    gap: 8px;
  }

  .pagination-btn, .pagination-num {
    min-height: 40px;
    min-width: 40px;
    font-size: 14px;
    border-radius: 8px;
  }

  .empty-state {
    padding: 40px 20px;
  }

  .empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
  }

  .empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .empty-state p {
    font-size: 14px;
  }

  .loading-state {
    padding: 40px 20px;
  }

  .mobile-nav {
    width: 280px;
  }

  .mobile-nav a {
    font-size: 15px;
    padding: 10px 20px;
  }

  .mobile-nav-toggle {
    top: 15px;
    right: 15px;
    font-size: 28px;
  }

  #hero h2 {
    font-size: 24px;
  }

  #hero p {
    font-size: 14px;
    line-height: 1.6;
  }

  section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .contact .info-box {
    padding: 15px 0 20px 0;
  }

  .about .about-content {
    padding: 20px;
  }

  .about .icon-box .title {
    margin-left: 75px;
    font-size: 16px;
  }

  .about .icon-box .description {
    margin-left: 75px;
    font-size: 13px;
  }

  .about .icon-box .icon {
    width: 56px;
    height: 56px;
  }

  .about .icon-box .icon i {
    font-size: 24px;
  }

  footer {
    padding: 30px 15px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .footer-links li {
    margin-bottom: 5px;
  }

  .footer-links a {
    font-size: 14px;
    padding: 8px 0;
    display: block;
    min-height: 36px;
  }

  .footer-bottom {
    padding-top: 15px;
    font-size: 12px;
    text-align: center;
  }

  .footer-logo img {
    height: 40px;
    margin-bottom: 10px;
  }

  .footer-info {
    font-size: 13px;
    line-height: 1.6;
  }

  .footer-contact {
    font-size: 13px;
  }

  .footer-social {
    gap: 10px;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 16px;
  }

  .header-nav {
    flex-direction: column;
    gap: 10px;
  }

  .header-nav li {
    margin-bottom: 5px;
  }

  .header-nav a {
    font-size: 14px;
    padding: 8px 12px;
    display: block;
    min-height: 36px;
    line-height: 36px;
  }

  .header-logo img {
    height: 40px;
  }

  .header-language {
    font-size: 13px;
    padding: 6px 12px;
  }

  .modal-dialog {
    margin: 10px;
    max-width: none;
    width: calc(100% - 20px);
  }

  .modal-content {
    border-radius: 12px;
    overflow: hidden;
  }

  .modal-header {
    padding: 16px 20px;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-footer {
    padding: 16px 20px;
    flex-direction: column;
    gap: 10px;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .nav-menu {
    flex-direction: column;
    gap: 5px;
  }

  .nav-menu li {
    margin-bottom: 5px;
  }

  .nav-menu a {
    font-size: 15px;
    padding: 12px 16px;
    display: block;
    border-radius: 8px;
  }

  .nav-menu a:hover {
    background: rgba(0,0,0,0.05);
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  iframe {
    max-width: 100%;
  }

  .form-control {
    min-height: 44px;
    font-size: 16px;
  }

  .form-select {
    min-height: 44px;
    font-size: 16px;
  }

  .form-check-input {
    width: 20px;
    height: 20px;
  }

  .form-check-label {
    font-size: 14px;
    padding-left: 8px;
  }

  .alert {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 8px;
  }

  .badge {
    font-size: 12px;
    padding: 4px 10px;
  }

  .card {
    border-radius: 12px;
    overflow: hidden;
  }

  .card-body {
    padding: 16px;
  }

  .card-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .card-text {
    font-size: 14px;
    line-height: 1.6;
  }

  .btn-group {
    flex-direction: column;
    gap: 8px;
  }

  .btn-group .btn {
    width: 100%;
  }

  .list-group-item {
    padding: 12px 16px;
    font-size: 14px;
  }

  .table {
    font-size: 13px;
  }

  .table th, .table td {
    padding: 10px 8px;
  }

  .progress {
    height: 8px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 4px;
  }

  .page-link {
    min-width: 36px;
    min-height: 36px;
    font-size: 14px;
    text-align: center;
    line-height: 36px;
    padding: 0;
    border-radius: 8px;
  }

  .breadcrumb {
    font-size: 13px;
    padding: 8px 0;
  }

  .breadcrumb-item + .breadcrumb-item::before {
    padding: 0 8px;
  }

  .accordion-item {
    border-radius: 8px;
    margin-bottom: 8px;
  }

  .accordion-header button {
    font-size: 15px;
    padding: 14px 16px;
  }

  .accordion-body {
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .btn, button, [role="button"] {
    min-height: 48px;
    min-width: 48px;
    padding: 14px 24px;
    font-size: 16px;
  }

  .job-card {
    padding: 16px;
  }

  .job-card h3 {
    font-size: 16px;
  }

  .jobs-container {
    padding: 30px 10px;
  }

  .apply-modal {
    padding: 15px;
  }

  .mobile-nav {
    width: 260px;
  }

  #hero h2 {
    font-size: 20px;
  }

  #hero p {
    font-size: 13px;
  }

  .section-title h2 {
    font-size: 20px;
  }

  .page-header h1 {
    font-size: 20px;
  }

  .page-header p {
    font-size: 13px;
  }

  .footer-links a {
    font-size: 13px;
  }

  .footer-info {
    font-size: 12px;
  }

  .footer-contact {
    font-size: 12px;
  }

  .header-nav a {
    font-size: 13px;
  }
}

.active-touch {
  transform: scale(0.98);
  opacity: 0.9;
}

button:active,
a:active,
[role="button"]:active,
.btn:active,
.job-card:active,
.job-card:hover {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(66, 139, 202, 0.1);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px white inset;
  transition: background-color 5000s ease-in-out 0s;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}

@media (hover: none) {
  button:hover,
  a:hover,
  [role="button"]:hover,
  .btn:hover,
  .job-card:hover {
    transform: none;
  }
  
  button:active,
  a:active,
  [role="button"]:active,
  .btn:active,
  .job-card:active {
    transform: scale(0.98);
  }
}