/* ==========================================================================
   Responsive Fixes — applied after all other stylesheets
   ========================================================================== */

/* ── 1. GLOBAL: make all images responsive ─────────────────────────────── */
img {
    max-width: 100%;
    height: auto;
}

/* ── 2. SLIDER: prevent horizontal overflow ────────────────────────────── */
.tp-banner-container {
    overflow: hidden !important;
    width: 100% !important;
}
.tp-banner {
    overflow: hidden !important;
}

/* ── 3. BODY: prevent horizontal scroll on every page ─────────────────── */
body {
    overflow-x: hidden;
}

/* ── 4. CONTACT map image ──────────────────────────────────────────────── */
#map img,
.padd-vertical-45 img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── 5. PRODUCT images ─────────────────────────────────────────────────── */
.product-img img,
.item-img img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ── 6. CLIENTS & TESTIMONIALS: slick carousel overflow ───────────────── */
.clients,
.testimonials-2,
.testimonials-1 {
    overflow: hidden;
}

/* ── 7. TABLET breakpoint (≤ 992px) ───────────────────────────────────── */
@media (max-width: 992px) {

    /* Product grid: 2 per row on tablet */
    .product-item {
        width: 50% !important;
        float: left;
        clear: none;
    }

    /* About page plan blocks side-by-side → stack */
    .lft-plan,
    .rit-plan {
        width: 100%;
        float: none;
        clear: both;
        padding: 0 15px !important;
    }
    .plan-title {
        width: 100%;
        float: none;
        text-align: center;
        padding: 20px 0;
    }

    /* Team boxes: 2 per row */
    .team-box {
        margin-bottom: 20px;
    }

    /* Skill circles: center on tablet */
    .levels-2 {
        text-align: center;
    }

    /* Section padding reduction */
    .sectionWrapper {
        padding: 30px 0;
    }

    /* Footer columns: 2 per row */
    .footer-top .cell-3 {
        width: 50%;
        float: left;
        clear: none;
        margin-bottom: 25px;
    }
}

/* ── 8. MOBILE breakpoint (≤ 768px) ───────────────────────────────────── */
@media (max-width: 768px) {

    /* Space below header for the fixed hamburger button */
    .pageWrapper {
        padding-top: 0;
    }
    main {
        padding-top: 0;
    }

    /* Slider: reduce minimum height on mobile */
    .tp-banner-container {
        min-height: 180px;
    }

    /* Product grid: 2 per row still fine */
    .product-item {
        width: 50% !important;
        float: left;
        clear: none;
    }

    /* Page title section */
    .page-title {
        padding: 25px 0;
    }
    .page-title h1 {
        font-size: 26px;
        line-height: 1.3;
    }

    /* Footer: full-width columns */
    .footer-top .cell-3 {
        width: 100%;
        float: none;
        clear: both;
        margin-bottom: 20px;
    }

    /* Footer bottom: center everything */
    .footer-bottom .copyrights,
    .footer-bottom .social-list {
        text-align: center;
        float: none !important;
        display: block;
        width: 100%;
        margin: 5px 0;
    }
    .footer-bottom .row {
        text-align: center;
    }

    /* Newsletter form: full width */
    .NL .input-box,
    .NL .txt-box {
        width: 100%;
        margin-bottom: 8px;
    }
    .NL .NL-btn {
        clear: both;
        float: none;
        display: block;
        margin-top: 8px;
    }

    /* Contact page: stack form and details */
    .contact-form,
    .contact-detalis {
        width: 100%;
        float: none;
        clear: both;
    }
    .contact-detalis {
        margin-top: 30px;
    }

    /* Dark banner section */
    .dark-bg .cell-9,
    .dark-bg .cell-3 {
        width: 100%;
        float: none;
        clear: both;
        text-align: center;
    }
    .dark-bg h2 {
        font-size: 18px;
        line-height: 1.4;
    }

    /* Service boxes: full width on mobile */
    .service-box-1 {
        width: 100%;
        float: none;
        clear: both;
    }

    /* What we do / Our Vision section */
    .what-do,
    .levels {
        width: 100%;
        float: none;
        clear: both;
        margin-bottom: 20px;
    }

    /* About tabs full width */
    #tabs,
    #accordion2 {
        width: 100%;
        float: none;
        clear: both;
        margin-bottom: 20px;
    }

    /* Testimonials text size */
    .testimonials-2 p,
    .testimonials-1 p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Clients section: ensure proper wrapping */
    .clients > div {
        display: inline-block;
    }

    /* Hide left social share strip on narrow screens */
    .social-share {
        display: none !important;
    }

    /* Login box full width */
    .login-controls .input-box {
        width: 100%;
        clear: both;
        margin-bottom: 5px;
    }

    /* Product detail page */
    .product-specs .cell-4,
    .product-specs .cell-8 {
        width: 100%;
        float: none;
        clear: both;
    }

    /* Filter controls on products page */
    .filter-controls {
        padding: 10px 15px;
    }
    .filter-controls select {
        display: block;
        width: 100%;
        margin-top: 5px;
        padding: 8px;
        font-size: 14px;
    }

    /* Pagination */
    .pagination {
        text-align: center;
        padding: 15px;
    }

    /* Accordion on mobile */
    .accordion li > h3 a {
        width: 75%;
        font-size: 13px;
    }
}

/* ── 9. SMALL MOBILE (≤ 480px) ────────────────────────────────────────── */
@media (max-width: 480px) {

    /* Product grid: 1 per row on small phones */
    .product-item {
        width: 100% !important;
        float: none;
        clear: both;
    }

    /* Section titles */
    .block-head {
        font-size: 18px;
    }

    /* What we do / vision: full width */
    .cell-7,
    .cell-5 {
        width: 100%;
        float: none;
        clear: both;
    }

    /* Team boxes: 1 per row */
    .team-boxes .cell-3 {
        width: 100%;
        float: none;
        clear: both;
        margin-bottom: 20px;
    }

    /* Statistics boxes: 2 per row stays (cell-6 already 50%) */

    /* Plan section text */
    .plan-block .block {
        margin-bottom: 20px;
    }

    /* Slider: compact on very small screens */
    .tp-banner-container {
        min-height: 150px;
    }

    /* Skill circles: responsive */
    .levels-2 li {
        width: 50%;
        display: inline-block;
        float: none;
        margin-bottom: 20px;
    }

    /* Remove skew on very small screens to avoid overflow */
    .skew-25,
    .skew-15,
    .skew-10,
    .skew-5 {
        transform: none;
        -webkit-transform: none;
    }
    .skew25,
    .skew15,
    .skew10,
    .skew5 {
        transform: none;
        -webkit-transform: none;
    }

    /* Partner button */
    .btn.ExtraLargeBtn {
        width: 90%;
        display: block;
        margin: 15px auto 0;
    }

    /* Breadcrumbs */
    .breadcrumbs {
        font-size: 12px;
    }

    /* Form inputs */
    .form-input input,
    .form-input textarea,
    .form-input select {
        width: 100%;
        box-sizing: border-box;
    }

    /* Client logos: smaller */
    .clients > div a img {
        height: 80px !important;
        width: auto !important;
        max-width: 120px !important;
    }

    /* Footer copyright */
    .copyrights {
        font-size: 12px;
        padding: 5px 0;
    }
}

/* ── 10. VERY SMALL (≤ 360px) ─────────────────────────────────────────── */
@media (max-width: 360px) {

    .page-title h1 {
        font-size: 20px;
    }

    .btn.btn-large {
        padding: 8px 16px;
        font-size: 13px;
    }

    .top-search {
        display: none;
    }
}
