/* Responsive: yatay taşmayı önle, touch için minimum font */
html {
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* Shared hosting font fallback: enforce readable font stacks */
:root {
    --sv-font-heading: "Dosis", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --sv-font-body: "PT Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body,
input,
textarea,
select,
button {
    font-family: var(--sv-font-body);
}

.home-slideshow .slide-heading,
.home-slideshow .slide-text,
.section-featured-pro__title,
.section-featured-pro__head h2,
.full-banner-blocks .section-header h2 {
    font-family: var(--sv-font-heading) !important;
}

.footer-model-6 .footer_newsletter input,
.footer-model-6 .footer_newsletter input::placeholder {
    font-family: var(--sv-font-body) !important;
}

/* .masthead:after ve section:after pseudo-elementlerini kaldır (döndürülmüş elmas çıkıntı) */
.masthead::after,
.masthead:after,
section::after,
section:after {
    display: none !important;
    content: none !important;
}

/* Slider metin/buton sağa yaslı (admin’den “Sağa yaslı” seçildiğinde) */
.home-slideshow .slider-content--right .container {
    display: flex;
    justify-content: flex-end;
}
.home-slideshow .slider-content--right .slide_right {
    text-align: right;
    margin-left: auto;
}
.slick-active .slider-content .slide_right > .slide-heading,
.slick-active .slider-content .slide_right > .slide-text,
.slick-active .slider-content .slide_right > .slide-button {
    animation: fadeInRight 1.2s ease-in-out;
}
@media screen and (max-width: 767px) {
    .home-slideshow .slider-content--right .container {
        justify-content: center;
    }
    .home-slideshow .slider-content--right .slide_right {
        text-align: center;
        margin-left: 0;
    }
}

/* Mobil slider: tek görsel (mobil görseli), yükseklik yüklenen görsele göre */
@media screen and (max-width: 767px) {
    .home-slideshow {
        height: auto !important;
        min-height: 0 !important;
    }
    .home-slideshow .slick-slider,
    .home-slideshow .slick-list,
    .home-slideshow .slick-track {
        height: auto !important;
    }
    .home-slideshow .slick-track {
        align-items: flex-start !important;
    }
    .home-slideshow .slick-slide {
        height: auto !important;
        display: block !important;
    }
    .home-slideshow .slick-slide > div {
        height: auto !important;
    }
    /* Mobilde sadece mobil görseli göster; masaüstü görseli gizle (alt alta 2 görsel olmasın) */
    .home-slideshow .slick-slide img.medium-down--hide {
        display: none !important;
    }
    .home-slideshow .slick-slide img.wide--hide {
        display: block !important;
    }
    .home-slideshow .slick-slide img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        vertical-align: top;
    }
    .home-slideshow .slider-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        z-index: 10;
    }
}

/* Mobil: kategori ikonları 2’şer adet (satırda 2 sütun) */
@media screen and (max-width: 767px) {
    .full-banner-blocks.block5 .full-banner-content .grid__item > .grid__item {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
        box-sizing: border-box;
    }
    .full-banner-blocks.block5 .full-banner-content .grid__item {
        display: flex !important;
        flex-wrap: wrap !important;
    }
}

/* Mobil: referanslar alanı kompakt – az padding, 6 sütun, en fazla 2 satır göster */
@media screen and (max-width: 767px) {
    .section-references-modern {
        padding: 25px 12px 18px !important;
        margin-top: 1rem !important;
    }
    .section-references-inner {
        gap: 12px !important;
    }
    .section-references-content {
        flex: none !important;
        min-width: 0 !important;
        margin-bottom: 0 !important;
    }
    .section-references-title {
        font-size: 1.15rem !important;
        margin-bottom: 0.35rem !important;
        line-height: 1.3 !important;
    }
    .section-references-desc {
        margin-bottom: 0.5rem !important;
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .section-references-cta {
        padding: 8px 18px !important;
        font-size: 0.875rem !important;
    }
    .section-references-grid {
        width: 100% !important;
        grid-template-columns: repeat(6, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        gap: 6px !important;
        max-height: calc(22vw + 6px) !important;
        overflow: hidden !important;
    }
    .section-references-cell {
        min-height: 0 !important;
        aspect-ratio: unset !important;
        height: 100% !important;
        border-radius: 6px !important;
    }
    .section-references-cell img {
        object-fit: contain !important;
    }
}

/* Footer mobil: menü sütunları col-6 (2x2) – footer kısa kalsın */
@media screen and (max-width: 767px) {
    .footer-model-6 .site-footer .grid-uniform .grid__item.wide--one-quarter {
        width: 50% !important;
        float: left !important;
        box-sizing: border-box !important;
    }
}

/* Anasayfa bölümleri: admin’den “Mobilde göster” kapatıldığında mobilde gizle */
@media screen and (max-width: 767px) {
    .sv-hide-on-mobile {
        display: none !important;
    }
}
