/* Mehmet Acar Mühendislik - mobil kart ve detay düzeni v3
   Sadece 767px ve daha küçük ekranlar. Masaüstü kurallarına dokunmaz.
   Önceki absolute başlık / 39px iç boşluk hatalarını giderir. */
@media screen and (max-width: 767.98px) {
  /* Eski Bootstrap satırına göre daha dengeli ve kesin sütun genişlikleri */
  .mobile-project-categories,
  .mobile-services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 9px;
    row-gap: 14px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .mobile-project-items,
  .mobile-project-related {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 11px;
    row-gap: 14px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .mobile-project-categories > [class*="col-"],
  .mobile-project-items > [class*="col-"],
  .mobile-project-related > [class*="col-"],
  .mobile-services-grid > [class*="col-"] {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Kartlar artık görsel -> başlık -> detay butonu sırasıyla düzenleniyor.
     Mutlak konumlandırılmış başlıkların buton üzerine binmesi önlenir. */
  .mobile-project-categories .services-two__single,
  .mobile-project-items .services-two__single,
  .mobile-project-related .services-two__single,
  .mobile-services-grid .services-two__single {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    height: 100%;
    min-width: 0;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,.07);
  }

  .mobile-project-categories .services-two__img,
  .mobile-project-items .services-two__img,
  .mobile-project-related .services-two__img,
  .mobile-services-grid .services-two__img {
    order: 1;
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    overflow: hidden;
    margin: 0 !important;
  }
  .mobile-project-categories .services-two__img a,
  .mobile-project-items .services-two__img a,
  .mobile-project-related .services-two__img a,
  .mobile-services-grid .services-two__img a { display: block; width: 100%; height: 100%; }

  .mobile-project-categories .services-two__img img,
  .mobile-project-items .services-two__img img,
  .mobile-project-related .services-two__img img,
  .mobile-services-grid .services-two__img img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    object-position: center;
    border-radius: 0 !important;
  }

  .mobile-project-categories .services-two__title-box,
  .mobile-project-items .services-two__title-box,
  .mobile-project-related .services-two__title-box,
  .mobile-services-grid .services-two__title-box,
  .mobile-project-categories .services-two__single:hover .services-two__title-box,
  .mobile-project-items .services-two__single:hover .services-two__title-box,
  .mobile-project-related .services-two__single:hover .services-two__title-box,
  .mobile-services-grid .services-two__single:hover .services-two__title-box {
    position: static !important;
    inset: auto !important;
    order: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 1 0 auto;
    width: 100% !important;
    min-height: 55px;
    margin: 0 !important;
    padding: 8px 4px !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: #ffffff;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: center;
    z-index: 2;
  }

  .mobile-project-categories .services-two__title,
  .mobile-project-items .services-two__title,
  .mobile-project-related .services-two__title,
  .mobile-services-grid .services-two__title {
    display: block;
    max-width: 100%;
    width: 100%;
    font-size: 11px !important;
    line-height: 1.32 !important;
    font-weight: 700 !important;
    overflow-wrap: anywhere;
    word-break: normal;
    margin: 0 !important;
    padding: 0 !important;
  }
  .mobile-project-items .services-two__title,
  .mobile-project-related .services-two__title { font-size: 13px !important; }

  .mobile-project-categories .services-two__title a,
  .mobile-project-items .services-two__title a,
  .mobile-project-related .services-two__title a,
  .mobile-services-grid .services-two__title a {
    display: block;
    color: #15116f;
    max-width: 100%;
    text-decoration: none;
    overflow-wrap: anywhere;
  }

  /* Detaylar artık karttan dışarı taşmıyor, başlığın altında ve ortada. */
  .mobile-project-categories .services-two__content,
  .mobile-project-items .services-two__content,
  .mobile-project-related .services-two__content,
  .mobile-services-grid .services-two__content {
    position: static !important;
    order: 3;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto;
    width: 100% !important;
    min-width: 0;
    min-height: 39px;
    margin: 0 !important;
    padding: 8px 3px !important;
    border-radius: 0 !important;
    text-align: center;
  }

  .mobile-project-categories .services-two__more-details,
  .mobile-project-items .services-two__more-details,
  .mobile-project-related .services-two__more-details,
  .mobile-services-grid .services-two__more-details {
    display: block;
    position: static !important;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  .mobile-project-categories .services-two__more-details a,
  .mobile-project-items .services-two__more-details a,
  .mobile-project-related .services-two__more-details a,
  .mobile-services-grid .services-two__more-details a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 2px;
    width: 100%;
    font-size: 10px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    text-align: center;
    color: #ffffff !important;
    overflow-wrap: anywhere;
    padding: 0 !important;
    margin: 0 !important;
  }
  .mobile-project-categories .services-two__more-details a i,
  .mobile-project-items .services-two__more-details a i,
  .mobile-project-related .services-two__more-details a i,
  .mobile-services-grid .services-two__more-details a i {
    flex: 0 0 auto;
    font-size: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Dokunmatik telefonda hover panelinin üstüne çıkmasını engeller. */
  .mobile-project-items .services-two__hover-content,
  .mobile-project-related .services-two__hover-content,
  .mobile-services-grid .services-two__hover-content {
    display: none !important;
    visibility: hidden !important;
  }

  /* Hizmet detay içeriğinde dar ekrana taşan görselleri ve metinleri düzelt. */
  .mobile-service-detail .services-single-content,
  .mobile-service-detail .services-sidebar {
    min-width: 0;
    max-width: 100%;
  }
  .mobile-service-detail .services-single-content .thumb,
  .mobile-service-detail .services-single-content .thumb img,
  .mobile-service-detail .services-single-content iframe,
  .mobile-service-detail .services-single-content table {
    max-width: 100% !important;
  }
  .mobile-service-detail .services-single-content .thumb img {
    display: block;
    height: auto !important;
    border-radius: 10px;
  }
  .mobile-service-detail .services-single-content h2 { overflow-wrap: anywhere; }
  .mobile-service-detail .post-pagi-area { display: flex; flex-wrap: wrap; gap: 10px; }
  .mobile-service-detail .post-pagi-area > a {
    flex: 1 1 44%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* Eski ShareThis eklentisinin istenmeyen sabit çubuğunu hiçbir cihazda gösterme. */
.st-sticky-share-buttons,
.st-sticky-share-buttons-holder,
.sharethis-sticky-share-buttons,
.sharethis-inline-share-buttons { display: none !important; }
