/* ==========================================================================
   1. TABLET VIEW (Up to 992px)
   ========================================================================== */
@media screen and (max-width: 992px) {
    /* Container fix */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Typography */
    h1 {
        font-size: 28px !important;
    }

    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    p {
        font-size: 15px !important;
    }

    /* Section spacing */
    section {
        padding: 40px 20px !important;
    }

    /* Images responsive */
    img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* Cards spacing */
    .card, .testimonial-card {
        padding: 20px !important;
        margin-bottom: 20px;
    }

    /* Fix overflow */
    body, html {
        overflow-x: hidden !important;
        width: 100%;
    }
}

/* ==========================================================================
   2. MOBILE VIEW (Up to 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* Force columns to stack */
    .col, [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
    }

    /* Section spacing */
    section {
        padding: 30px 15px !important;
    }

    /* Text handling */
    h1, h2, h3, p {
        word-break: break-word;
    }

    .text-center-mobile {
        text-align: center !important;
    }

    /* Buttons full width */
    .btn {
       /* width: 100% !important;*/
        display: block !important;
        text-align: center !important;
        margin-bottom: 10px;
    }

    /* Navbar spacing */
    .navbar {
        padding: 10px 15px !important;
    }

    /* Tables scroll */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Hide/Show Utilities */
    .hide-mobile {
        display: none !important;
    }
}

/* ==========================================================================
   3. SMALL MOBILE (Up to 480px)
   ========================================================================== */
@media screen and (max-width: 480px) {
    h1 {
        font-size: 22px !important;
    }

    h2 {
        font-size: 20px !important;
    }

    h3 {
        font-size: 18px !important;
    }

    p {
        font-size: 14px !important;
    }

    section {
        padding: 20px 10px !important;
    }

    .card, .testimonial-card {
        padding: 12px !important;
    }
}

/* ==========================================================================
   4. DESKTOP UTILITIES (Must be outside mobile queries)
   ========================================================================== */
@media screen and (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}
