/* ==============================================
   KOL Telecom - Mobile Responsive Fixes
   Applies to all pages at breakpoints <= 767px
   ============================================== */

@media (max-width: 767px) {

    /* ---- Footer: Remove scale transform that causes overlap ---- */
    footer .col-lg-6 img,
    footer img[style*="scale"] {
        transform: none !important;
        max-width: 120px !important;
    }

    /* ---- Footer: Stack columns cleanly with spacing ---- */
    footer.half-footer .row.align-items-center > [class*="col-"] {
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    footer.half-footer .row.align-items-center > [class*="col-"]:last-child {
        margin-bottom: 0 !important;
    }

    /* ---- Footer: Location & contact text center on mobile ---- */
    footer .text-sm-start,
    footer .text-sm-end {
        text-align: center !important;
    }

    /* ---- Footer: Padding bottom to avoid overlap with fixed buttons ---- */
    footer.half-footer {
        padding-bottom: 100px !important;
    }

    /* ---- Prevent horizontal overflow on all pages ---- */
    body {
        overflow-x: hidden !important;
    }

    .box-layout,
    .container,
    .container-fluid {
        overflow-x: hidden;
    }

    /* ---- Section spacing on mobile ---- */
    section {
        overflow-x: hidden;
    }

    /* ---- Hero / banner headings: prevent overflow ---- */
    .banner-style-01 h1,
    .banner-style-01 h2,
    .page-title-extra-small h1,
    .page-title-medium h1,
    .page-title-large h1 {
        word-break: break-word;
    }

    /* ---- Product/feature cards: full width on mobile ---- */
    .feature-box,
    .services-box-style-01 {
        margin-bottom: 20px;
    }

    /* ---- Buttons: prevent overflow ---- */
    .btn {
        max-width: 100%;
        white-space: normal;
        word-break: break-word;
    }

    /* ---- Tables: horizontal scroll ---- */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* ---- Images: never overflow container ---- */
    img {
        max-width: 100%;
        height: auto;
    }

    /* ---- Remove parallax on mobile (prevents layout issues) ---- */
    [data-parallax] {
        background-attachment: scroll !important;
    }

    /* ---- Chatbot + WhatsApp button stacking on mobile ---- */
    #chatbot-button {
        bottom: 80px !important;
        right: 16px !important;
    }
}

@media (max-width: 575px) {

    /* ---- Footer: even smaller screens ---- */
    footer.half-footer {
        padding-top: 40px !important;
        padding-bottom: 110px !important;
    }

    footer .col-lg-6 img,
    footer img[style*="scale"] {
        max-width: 100px !important;
    }

    /* ---- Tighten section padding ---- */
    .pt-150px { padding-top: 60px !important; }
    .pb-150px { padding-bottom: 60px !important; }
    .pt-100px { padding-top: 50px !important; }
    .pb-100px { padding-bottom: 50px !important; }
    .mt-50px  { margin-top: 30px !important; }
    .mb-50px  { margin-bottom: 30px !important; }
}
