@media (max-width:991px) {

    /* ── Evrensel overflow önlemi ─────────────────────────── */
    /* NOT: Owl Carousel iç elemanlarını hariç tutuyoruz,
       çünkü .owl-stage viewport'tan geniş olmalı.          */
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    img,
    video,
    iframe,
    embed,
    object {
        max-width: 100% !important;
        height: auto;
    }

    /* Yatay taşmaya en sık sebep olan genişlikleri sıfırla */
    .container-fluid,
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* ── Owl Carousel: taşmayı wrapper seviyesinde kontrol et ── */
    .owl-carousel {
        overflow: hidden !important;
        width: 100% !important;
    }

    .owl-carousel .owl-stage-outer {
        overflow: hidden !important;
        width: 100% !important;
    }

    /* owl-stage ve owl-item'a max-width koymuyoruz, carousel bozulur */
    .owl-carousel .owl-stage {
        display: flex !important;
        max-width: none !important;
    }

    .owl-carousel .owl-item {
        max-width: none !important;
        flex-shrink: 0 !important;
    }

    .owl-carousel .owl-item img {
        display: block !important;
        width: 100% !important;
        height: auto;
    }

    /* ── Üst boşluklar: header 60px, oranlı boşluk yeterli ─── */
    .space-top-xl {
        margin-top: 70px !important;
    }

    .padding-top {
        padding-top: 80px !important;
    }

    .padding-xxl {
        padding: 80px 0 40px 0 !important;
    }

    .padding-xl {
        padding: 60px 0 30px 0 !important;
    }

    .padding-l {
        padding: 30px 0 !important;
    }

    /* ── Page Banner ─────────────────────────────────────── */
    .page-banner {
        margin-top: 60px !important;
        height: auto !important;
        padding: 24px 0 !important;
    }

    .banner-card {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px 20px !important;
        text-align: center;
    }

    .banner-title {
        font-size: 1.2rem !important;
        letter-spacing: 0.5px !important;
    }

    .banner-logo img {
        height: 40px !important;
    }

    /* ── Slider ──────────────────────────────────────────── */
    .second {
        overflow: hidden !important;
        width: 100% !important;
        position: relative;
    }

    .owl-carouselslide {
        margin-top: 60px !important;
        display: block !important;
        visibility: visible !important;
        overflow: hidden !important;
        width: 100% !important;
    }

    .owl-carouselslide .owl-stage-outer {
        overflow: hidden !important;
        width: 100% !important;
    }

    .owl-carouselslide .owl-stage {
        display: flex !important;
        max-width: none !important;
    }

    .owl-carouselslide .owl-item {
        display: block !important;
        visibility: visible !important;
        max-width: none !important;
        flex-shrink: 0 !important;
    }

    .owl-carouselslide .item {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        visibility: visible !important;
    }

    .owl-carouselslide img {
        display: block !important;
        width: 100% !important;
        height: 350px !important;
        object-fit: cover !important;
    }

    .owl-carouselslide .slide-detail {
        position: absolute !important;
        bottom: 15px !important;
        left: 15px !important;
        right: 15px !important;
        top: auto !important;
        transform: none !important;
        width: auto !important;
        padding: 1.2rem !important;
        background: rgba(255, 255, 255, 0.92) !important;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        margin: 0 !important;
        display: block !important;
        visibility: visible !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
        z-index: 10;
    }

    .slide-detail h2 {
        font-size: 1.15rem !important;
        color: #1651a0 !important;
        margin-bottom: 0.4rem !important;
        font-weight: 700 !important;
    }

    .slide-detail p {
        font-size: 0.88rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.6rem !important;
        color: #333 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .slide-detail button {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.8rem !important;
        border-radius: 8px !important;
        display: inline-block !important;
    }

    .slide-detail div {
        display: block !important;
        margin-top: 0.4rem;
    }

    /* ── Galeri Carousel ─────────────────────────────────── */
    .owl-carouselproduct {
        overflow: hidden !important;
        width: 100% !important;
    }

    .owl-carouselproduct .owl-stage-outer {
        overflow: hidden !important;
        width: 100% !important;
    }

    .owl-carouselproduct .owl-stage {
        display: flex !important;
        max-width: none !important;
    }

    .owl-carouselproduct .owl-item {
        max-width: none !important;
        flex-shrink: 0 !important;
    }

    .gallery-img {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }

    /* ── Service/Product Banner (inline margin-top: 150px) ── */
    #work_single_banner {
        margin-top: 60px !important;
    }

    #work_single_banner .banner-content {
        margin-top: 0 !important;
        padding: 30px 0 !important;
    }

    /* ── Sixth bölümü: dev border-radius'u kırp ─────────── */
    .sixth {
        border-radius: 0 !important;
    }

    /* ── Form alanları ───────────────────────────────────── */
    .form-control,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        width: 100% !important;
    }

    /* ── Flex satırları: mobilde dikey diz ──────────────── */
    .btns.d-flex-center,
    .btns {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .btns a,
    .btns .btn {
        width: 100% !important;
        text-align: center !important;
    }

    /* ── Footer ──────────────────────────────────────────── */
    .footer-menu {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 0 !important;
    }

    /* ── Genel görsel ────────────────────────────────────── */
    .firstservicedetail img,
    .fifth img {
        height: 220px !important;
    }

    .galleryarea img,
    .fourth .owl-carouselproduct img {
        height: 200px !important;
    }

    .third .owl-carouselfirst img {
        height: 500px !important;
    }

    /* ── Hizmet Kategorileri Carousel ─────────────────────── */
    .owl-carouselfirst {
        overflow: hidden !important;
        width: 100% !important;
    }

    .owl-carouselfirst .owl-stage-outer {
        overflow: hidden !important;
        width: 100% !important;
    }

    .owl-carouselfirst .owl-stage {
        display: flex !important;
        max-width: none !important;
    }

    .owl-carouselfirst .owl-item {
        max-width: none !important;
        flex-shrink: 0 !important;
    }

    .top-social-menu {
        padding: 0.5rem 0 0 0 !important;
    }

    .header .top-menu {
        padding-right: 0px !important;
    }

    /* header {
        padding: 10px;
    }
    header label {
        display: initial;
    }
     header .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid rgba(0, 0, 0, .1);
        display: none;
    } 
    /* header .navbar ul li {
        width: 100%;
    }
    header .navbar ul li ul {
        position: relative;
        width: 100%;
    }
    header .navbar ul li ul li {
        background: #fff;
    }
    header .navbar ul li ul li ul {
        width: 100%;
        left: 0;
    } */
    /* #menu-bar:checked~.navbar {
        display: initial;
    } */
    /* header label i {
        color: white;
        font-size: 25px;
    } */
    .detailpage {
        padding: 1.5rem !important;
    }

    .btndetail {
        padding: 1rem;
    }

    /* .top .top-text {
        color: white;
        float: left;
        margin-left: 0rem;
    } */
    /* .first {
        margin-top: 0px;
    } */

    /* ── Mobil Alt Menü (Accordion) ───────────────────────── */
    .header .navbar-nav li.mob-open>.navbar-nav {
        display: flex !important;
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 15px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        background-color: transparent !important;
    }

    .header .navbar-nav li.mob-open>a>i.fa-angle-down,
    .header .navbar-nav li.mob-open>a>i.fa-angle-right {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }
}

@media (max-width:768px) {
    .detailpage {
        padding: 1.5rem !important;
    }

    .btndetail {
        padding: 1rem;
    }
}

@media (max-width:600px) {
    .header .top-menu {
        padding-right: 0px !important;
    }

    .detailpage {
        padding: 1.5rem !important;
    }

    .btndetail {
        padding: 1rem;
    }

    .copytext {
        display: none;
    }

    .header .top-social-menu .social-icons {
        order: 2;
        padding: 0;
    }

    .phone span {
        display: none;
    }

    .phone::before {
        font-family: "Font Awesome 5 Free";
        content: '\f095';
        display: inline-block;
        font-weight: 900;
    }
}

@media (max-device-width:480px) {
    .contact-page {
        padding-top: 100px;
    }

    .header .top-menu {
        display: none;
    }

    .social-icons {
        padding-left: 0;
        margin-bottom: 0;
        list-style: none;
        display: flex;
    }

    .footer .social-icons a {
        padding: 8px 10px;
    }

    .third img {
        width: 100%;
        object-fit: cover;
    }

    .contact-photo img {
        display: none;
    }

    .title-lefts {
        font-weight: 500;
        text-align: left;
        font-size: 1.5rem;
        color: white;
        text-transform: capitalize;
        display: flex;
        padding-bottom: 0rem;
        align-items: center;
        justify-content: center;
        padding-top: 2rem;
    }

    .padding-xxl {
        padding: 100px 0 50px 0;
    }

    .p-mobile-top0 {
        padding-top: 0 !important;
    }

    .detailpage {
        padding: 1.5rem !important;
    }

    .btndetail {
        padding: 1rem;
    }

    .contact-page iframe {
        padding-top: 50px !important;
    }

    .conpif iframe {
        width: 100%;
        margin: auto;
    }

    .mobile-paddin {
        padding: 60px 0 50px 0;
    }

    .footer-menu {
        flex-direction: column;
    }

    .copy {
        padding: 0;
        font-size: 0.9rem;
    }

    .sixth {
        background-color: #ffffff;
        border-radius: 0px 1290px 0px 0px;
    }

    .gallery-album img {
        margin-bottom: 1rem;
    }

    .phone span {
        display: none;
    }

    .phone::before {
        font-family: "Font Awesome 5 Free";
        content: '\f095';
        display: inline-block;
        font-weight: 900;
    }

    .social-icons li {
        margin: auto;
    }

    .header .top-social-menu .phone {
        margin: auto 0;
    }
}