/* USTKONDER V18 - mobil dokunma, tasma ve form kullanilabilirligi */
html,
body{
  max-width:100%;
}

@media (max-width:991.98px){
  html,
  body{
    overflow-x:clip!important;
  }

  /* Dekoratif katmanlar mobilde baglantilarin dokunma alanini kapatmasin. */
  .hero::before,
  .hero::after,
  .hero-grid,
  .donation-hero::before,
  .inner-hero::before,
  .knowledge-hero::before,
  .knowledge-hero::after,
  .guide-hero::before,
  .guide-hero::after,
  .seo-hero::before,
  .seo-hero::after,
  .corp-hero::before,
  .corp-hero::after,
  .events-hero::before,
  .events-hero::after,
  .news-page-hero::before,
  .news-page-hero::after,
  .news-detail-hero::before,
  .news-detail-hero::after,
  .publications-hero::before,
  .publications-hero::after,
  .publication-home-section::before,
  .vision-card::before,
  .cta-card::before,
  .ecosystem-section::before{
    pointer-events:none!important;
  }

  .hero{
    isolation:isolate;
  }

  .hero::after,
  .hero-grid{
    z-index:0!important;
  }

  .hero > .container,
  .donation-hero > .container,
  .inner-hero > .container,
  .knowledge-hero > .container,
  .guide-hero > .container,
  .seo-hero > .container,
  .corp-hero > .container,
  .events-hero > .container,
  .news-page-hero > .container,
  .news-detail-hero > .container,
  .publications-hero > .container{
    position:relative!important;
    z-index:2!important;
  }

  .hero-actions{
    position:relative!important;
    z-index:5!important;
  }

  .hero-actions > a,
  .hero-actions > button{
    position:relative!important;
    z-index:6!important;
    pointer-events:auto!important;
    touch-action:manipulation;
  }

  .site-navbar .navbar-collapse{
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }

  .site-navbar .navbar-toggler,
  .site-navbar .nav-link,
  .site-navbar .dropdown-item,
  .site-navbar .member-login-nav-btn,
  .site-navbar .membership-nav-btn,
  .language-switcher--mobile > summary{
    min-height:44px!important;
    touch-action:manipulation;
  }

  .row > *,
  .container,
  .container-fluid,
  .knowledge-content,
  .donation-layout,
  .contact-grid{
    min-width:0;
  }
}

@media (max-width:767.98px){
  .hero-actions{
    gap:12px!important;
    width:100%!important;
  }

  .hero-actions .btn{
    min-height:52px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    white-space:normal;
    text-align:center;
  }

  a.btn,
  button.btn,
  input[type="submit"],
  input[type="button"]{
    min-height:44px;
    touch-action:manipulation;
  }

  .form-control:not(textarea),
  .form-select{
    min-height:48px!important;
    font-size:16px!important;
  }

  textarea.form-control{
    min-height:120px;
    font-size:16px!important;
  }

  .form-check-input{
    width:1.2rem;
    height:1.2rem;
  }

  .knowledge-toc a,
  .faq-row summary,
  details > summary{
    min-height:44px;
    touch-action:manipulation;
  }

  .guide-table,
  .table-responsive{
    max-width:100%;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
  }

  .section-title,
  .knowledge-hero h1,
  .guide-hero h1,
  .news-page-hero h1,
  .news-detail-hero h1,
  .events-hero h1,
  .corp-hero h1{
    overflow-wrap:break-word;
  }

  pre,
  code{
    max-width:100%;
    overflow-wrap:anywhere;
    white-space:pre-wrap;
  }

  .whatsapp{
    right:max(16px,env(safe-area-inset-right))!important;
    bottom:max(16px,env(safe-area-inset-bottom))!important;
  }

  .scroll-top{
    right:max(16px,env(safe-area-inset-right))!important;
    bottom:calc(max(16px,env(safe-area-inset-bottom)) + 62px)!important;
  }
}

@media (hover:none) and (pointer:coarse){
  .btn:hover,
  .service-card:hover,
  .related-card:hover,
  .publication-home-cover:hover{
    transform:none!important;
  }
}
