/* Shared responsive fixes across all static pages */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

.grid > *,
[class*="grid-cols-"] > * {
  min-width: 0;
}

[class*="max-w-"] {
  min-width: 0;
}

.js-mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  color: #001261;
  background: #ffffff;
  transition: background-color 0.2s ease;
}

.js-mobile-menu-toggle:hover {
  background-color: #f8fafc;
}

.js-mobile-menu-panel {
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.14);
}

@media (max-width: 1023px) {
  nav {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 767px) {
  .px-8,
  .px-10,
  .px-12,
  main[class*="px-8"],
  main[class*="px-10"],
  section[class*="px-8"],
  section[class*="px-10"],
  header[class*="px-8"],
  header[class*="px-10"],
  div[class*="max-w-screen-2xl"][class*="px-8"],
  div[class*="max-w-screen-2xl"][class*="px-10"],
  div[class*="max-w-screen-xl"][class*="px-8"],
  div[class*="max-w-screen-xl"][class*="px-10"] {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .p-10,
  .p-12 {
    padding: 1.5rem !important;
  }

  .gap-12 {
    gap: 1.5rem !important;
  }

  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  [class*="-mt-24"] {
    margin-top: -2.25rem !important;
  }

  #hakkimizda {
    min-height: 88svh !important;
  }

  #hakkimizda h1 {
    font-size: clamp(2rem, 11vw, 2.6rem) !important;
    line-height: 1.12 !important;
  }

  #hakkimizda p {
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }

  #hakkimizda .flex.flex-col.sm\:flex-row {
    gap: 0.75rem !important;
  }

  #hakkimizda .flex.flex-col.sm\:flex-row > a,
  #hakkimizda .flex.flex-col.sm\:flex-row > button {
    width: 100%;
    max-width: 100%;
  }

  #kargo-takip .max-w-4xl {
    padding: 1.25rem !important;
    border-radius: 1.25rem !important;
  }

  #kargo-takip input {
    font-size: 1rem !important;
  }

  #kargo-takip input::placeholder {
    font-size: 0.95rem;
  }

  #kargo-takip .mt-6.grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  #kargo-takip button {
    width: 100% !important;
  }
}
