/* ===============================================
   MOBILE LAYOUT FIXES
   =============================================== */

/* Force full width and prevent horizontal scroll */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    * {
        box-sizing: border-box !important;
    }
    
    /* Container fixes */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin: 0 auto !important;
    }
    
    .container-fluid {
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Row fixes */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    /* Column fixes */
    [class*="col-"] {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Specific column overrides */
    .col-sm-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .col-sm-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Video background full width */
    #sector-tabContent {
        width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Images responsive */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Text elements */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    p, .lead {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Buttons */
    .btn {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    /* Forms */
    input, textarea, select {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Footer badges */
    .footer-badges {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .footer-badges img {
        max-width: 100px !important;
        height: auto !important;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .col-sm-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Force full width for specific sections */
@media (max-width: 768px) {
    .headerBg,
    .numbersBg,
    .pricingBg,
    .footerBg {
        width: 100% !important;
        margin: 0 !important;
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
}

/* Anadolu SMS Panel Raporlama Section Mobile Fixes */
@media (max-width: 768px) {
    /* Section container */
    .phones-right-section {
        padding: 20px 15px !important;
    }
    
    /* Heading fixes */
    .heading-tag {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Description text */
    .phones-detail {
        font-size: 16px !important;
        line-height: 1.5 !important;
        margin-bottom: 25px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Grid cards container */
    .phones-right-section .row {
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Individual cards */
    .fancybox-layout2 {
        margin-bottom: 20px !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    .fancybox-inner2 {
        flex-direction: row !important;
        padding: 20px 15px !important;
        border-radius: 15px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    }
    
    /* Icon container */
    .fancybox-icon2 {
        width: 40px !important;
        min-width: 40px !important;
        margin-right: 15px !important;
        flex-shrink: 0 !important;
    }
    
    .fancybox-icon2 i {
        font-size: 24px !important;
    }
    
    /* Content container */
    .fancybox-meta2 {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .fancybox-title {
        font-size: 18px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .fancybox-content {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    .fancybox-content p {
        margin: 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Column overrides for mobile */
    .phones-right-section .col-12,
    .phones-right-section .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .phones-right-section {
        padding: 15px 10px !important;
    }
    
    .heading-tag {
        font-size: 20px !important;
        line-height: 1.2 !important;
    }
    
    .phones-detail {
        font-size: 14px !important;
        line-height: 3.4 !important;
    }
    
    .fancybox-inner2 {
        padding: 29px 12px !important;
        border-radius: 12px !important;
    }
    
    .fancybox-icon2 {
        width: 35px !important;
        min-width: 35px !important;
        margin-right: 12px !important;
    }
    
    .fancybox-icon2 i {
        font-size: 20px !important;
    }
    
    .fancybox-title {
        font-size: 16px !important;
        line-height: 1.2 !important;
    }
    
    .fancybox-content {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
}

/* İletişim Bölümü Mobil Düzeltmeleri */
@media (max-width: 768px) {
    /* Ana container */
    .aboutUsFormBg {
        margin-top: -50px !important;
        padding: 20px 15px !important;
    }
    
    .aboutUsForm {
        padding: 30px 20px !important;
        border-radius: 15px !important;
        margin: 0 15px !important;
    }
    
    /* Başlık ve buton düzeni */
    .aboutUsForm .row {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .aboutUsForm .col-lg-9,
    .aboutUsForm .col-lg-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    .formTitle {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Buton düzeni */
    .input-filled {
        text-align: center !important;
        margin-top: 10px !important;
    }
    
    .wpcf7-submit {
        width: 100% !important;
        max-width: 300px !important;
        padding: 15px 30px !important;
        font-size: 16px !important;
        border-radius: 25px !important;
        display: inline-block !important;
    }
    
    /* İletişim bilgileri */
    .contact-info {
        margin-top: 30px !important;
        padding: 20px 15px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 15px !important;
    }
    
    .contact-info .row {
        margin: 0 !important;
    }
    
    .contact-info .col-md-4,
    .contact-info .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
        padding: 0 10px !important;
    }
    
    .contact-item {
        text-align: center !important;
        padding: 20px 15px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        margin-bottom: 15px !important;
        transition: all 0.3s ease !important;
    }
    
    .contact-item:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: translateY(-2px) !important;
    }
    
    .contact-item i {
        font-size: 24px !important;
        color: #fff !important;
        margin-bottom: 10px !important;
        display: block !important;
    }
    
    .contact-item h4 {
        font-size: 18px !important;
        color: #fff !important;
        margin-bottom: 8px !important;
        font-weight: 600 !important;
    }
    
    .contact-item p {
        font-size: 14px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        margin: 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .aboutUsFormBg {
        margin-top: -30px !important;
        padding: 15px 10px !important;
    }
    
    .aboutUsForm {
        padding: 25px 15px !important;
        margin: 0 10px !important;
    }
    
    .formTitle {
        font-size: 20px !important;
        line-height: 1.2 !important;
    }
    
    .wpcf7-submit {
        padding: 12px 25px !important;
        font-size: 14px !important;
    }
    
    .contact-info {
        padding: 15px 10px !important;
    }
    
    .contact-item {
        padding: 15px 10px !important;
    }
    
    .contact-item i {
        font-size: 20px !important;
    }
    
    .contact-item h4 {
        font-size: 16px !important;
    }
    
    .contact-item p {
        font-size: 13px !important;
    }
}
