/* ===================================================
   The Mind App Collective — Mobile Fixes
   MOBILE ONLY — zero desktop changes
   All rules scoped to max-width breakpoints only
   Enhanced spacing for better readability
   =================================================== */

/* ─────────────────────────────────────────────────
   1. GLOBAL — breathing room across all sections
───────────────────────────────────────────────── */
@media (max-width: 767px) {
    section {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }

    /* increase container side padding so content has breathing room */
    .container,
    .container-fluid {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }

    /* global heading sizes with proper spacing */
    h1, .h1 {
        font-size: 2.6rem !important;
        line-height: 2.9rem !important;
        margin-bottom: 24px !important;
    }
    h2 {
        font-size: 2.2rem !important;
        line-height: 2.5rem !important;
        margin-bottom: 20px !important;
    }
    h3 {
        font-size: 1.7rem !important;
        line-height: 2.1rem !important;
        margin-bottom: 16px !important;
    }

    /* paragraph spacing */
    p {
        margin-bottom: 22px !important;
        line-height: 1.7 !important;
    }

    /* eyebrow labels — give them bottom breathing room */
    .text-decoration-line-bottom-medium {
        margin-bottom: 24px !important;
    }

    /* row spacing between elements */
    .row {
        margin-bottom: 30px;
    }
}

@media (max-width: 575px) {
    section {
        padding-top: 65px !important;
        padding-bottom: 65px !important;
    }

    .container,
    .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    h1, .h1 {
        font-size: 2.2rem !important;
        line-height: 2.5rem !important;
        margin-bottom: 20px !important;
    }
    h2 {
        font-size: 2rem !important;
        line-height: 2.3rem !important;
        margin-bottom: 18px !important;
    }
    
    p {
        margin-bottom: 20px !important;
    }
}


/* ─────────────────────────────────────────────────
   2. HERO SLIDER — text panel + buttons
───────────────────────────────────────────────── */
@media (max-width: 767px) {
    /* Prevent the white left-col panel from being too narrow */
    .left-col {
        width: 100% !important;
        padding-left: 25px !important;
        padding-right: 25px !important;
        padding-top: 40px !important;
        padding-bottom: 40px !important;
        text-align: center !important;
    }

    /* Slider buttons — stack vertically with space between */
    .left-col > div:last-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
        margin-top: 10px !important;
    }

    .left-col > div:last-child a {
        width: auto !important;
        min-width: 200px !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

@media (max-width: 575px) {
    .left-col {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 35px !important;
        padding-bottom: 35px !important;
    }
}


/* ─────────────────────────────────────────────────
   3. MARQUEE TICKER
───────────────────────────────────────────────── */
@media (max-width: 767px) {
    .swiper-width-auto .swiper-slide .fs-22 {
        font-size: 17px !important;
    }

    /* adjust section padding for the marquee strip */
    section.pt-45px.pb-40px {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    /* reduce dot spacers */
    .swiper-width-auto .ms-45px { margin-left: 25px !important; }
    .swiper-width-auto .me-45px { margin-right: 25px !important; }
}


/* ─────────────────────────────────────────────────
   4. ABOUT / VISION SECTION
───────────────────────────────────────────────── */
@media (max-width: 991px) {
    /* main image — constrain height so it doesn't dominate */
    #vision .col-lg-6.position-relative > img {
        height: 360px !important;
        width: 100% !important;
        max-width: 100% !important;
        object-fit: cover !important;
        margin-bottom: 30px;
    }

    /* floating bottom-right image — pull inside on tablet */
    #vision .position-absolute.right-minus-100px.bottom-0px {
        right: 0 !important;
        bottom: -20px !important;
    }
    #vision .position-absolute.right-minus-100px.bottom-0px img {
        width: 170px !important;
        height: 150px !important;
    }
}

@media (max-width: 767px) {
    #vision .col-lg-6.position-relative {
        padding-bottom: 70px !important; /* room for floating image */
        margin-bottom: 40px !important;
    }

    /* main image */
    #vision .col-lg-6.position-relative > img {
        height: 300px !important;
        margin-bottom: 0 !important;
    }

    /* hide top-left floating image — too cramped */
    #vision .position-absolute.left-20px.top-0px {
        display: none !important;
    }

    /* floating bottom-right image — anchor it properly */
    #vision .position-absolute.right-minus-100px.bottom-0px {
        right: 15px !important;
        bottom: 5px !important;
    }
    #vision .position-absolute.right-minus-100px.bottom-0px img {
        width: 140px !important;
        height: 125px !important;
    }

    /* vision block — reduce left padding & border on mobile */
    .vision-block {
        padding-left: 20px !important;
        margin-top: 15px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    /* divider spacing */
    #vision .h-1px {
        margin-top: 40px !important;
        margin-bottom: 35px !important;
    }

    /* text column top margin reset */
    #vision .col-lg-5 {
        margin-top: 30px !important;
    }

    /* paragraph width — let it go full width */
    #vision p.w-85 {
        width: 100% !important;
    }
    .vision-block p.w-90 {
        width: 100% !important;
    }
    
    /* button spacing */
    #vision .btn {
        margin-bottom: 10px !important;
    }
}

@media (max-width: 575px) {
    #vision .col-lg-6.position-relative > img {
        height: 260px !important;
    }

    #vision .position-absolute.right-minus-100px.bottom-0px img {
        width: 120px !important;
        height: 105px !important;
    }
    
    #vision .col-lg-6.position-relative {
        padding-bottom: 60px !important;
        margin-bottom: 35px !important;
    }
}


/* ─────────────────────────────────────────────────
   5. SERVICES SECTION
───────────────────────────────────────────────── */
@media (max-width: 767px) {
    /* heading section spacing */
    #services .mb-7 {
        margin-bottom: 40px !important;
    }

    /* reduce inner padding of each service row */
    #services .col-8.ps-40px {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }

    /* icon-box circle — appropriate size */
    .icon-box {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 0 !important;
    }
    .icon-box i {
        font-size: 26px !important;
    }

    /* service title size with spacing */
    #services .fs-24 {
        font-size: 19px !important;
        margin-bottom: 10px !important;
    }

    /* services header image row — stack cleanly */
    #services .left-minus-20px {
        left: 0 !important;
        margin-top: 20px !important;
        flex-wrap: wrap;
        gap: 12px;
    }

    /* counter row — better spacing */
    #services .counter-style-07 .col {
        margin-bottom: 35px !important;
    }
    #services .counter-style-07 h1 {
        font-size: 3.2rem !important;
        line-height: 3.2rem !important;
        margin-bottom: 12px !important;
    }
    #services .counter-style-07 span {
        margin-top: 8px !important;
    }
}

@media (max-width: 575px) {
    #services .col-8.ps-40px,
    #services .col-8.xs-p-25px {
        padding-left: 18px !important;
        padding-right: 18px !important;
        padding-top: 22px !important;
        padding-bottom: 22px !important;
    }
}


/* ─────────────────────────────────────────────────
   6. METHODOLOGY TABS
───────────────────────────────────────────────── */
@media (max-width: 767px) {
    /* tab nav — allow wrapping and reduce font size */
    #methodology .nav-tabs {
        flex-wrap: wrap !important;
        justify-content: center !important;
        padding: 15px 0 !important;
    }
    #methodology .nav-tabs .nav-item {
        flex: 1 1 auto !important;
        text-align: center !important;
        min-width: 0 !important;
        margin-bottom: 8px;
    }
    #methodology .nav-tabs .nav-link {
        font-size: 15px !important;
        padding: 16px 12px !important;
        white-space: normal !important;
        line-height: 1.4 !important;
    }

    /* methodology text section */
    #methodology .col-xl-4,
    #methodology .col-lg-5 {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
        padding-left: 25px !important;
        padding-right: 25px !important;
    }

    /* paragraph width */
    #methodology p.w-90 {
        width: 100% !important;
    }
    
    /* button spacing */
    #methodology .btn {
        margin-top: 10px !important;
    }
}

@media (max-width: 575px) {
    #methodology .nav-tabs .nav-link {
        font-size: 14px !important;
        padding: 14px 10px !important;
    }
    
    #methodology .col-xl-4,
    #methodology .col-lg-5 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}


/* ─────────────────────────────────────────────────
   7. PHILOSOPHY SECTION
   Key issue: figcaption left-minus-120px bleeds off screen
───────────────────────────────────────────────── */
@media (max-width: 991px) {
    /* Bring figure back to full width so it doesn't crowd */
    #philosophy figure.w-80 {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* figcaption — stop it bleeding left off screen */
    #philosophy figcaption {
        left: 15px !important;
        bottom: -50px !important;
        width: 160px !important;
    }
}

@media (max-width: 767px) {
    /* extra bottom margin so figcaption doesn't overlap next section */
    #philosophy .col-lg-6.md-mb-50px {
        margin-bottom: 90px !important;
    }

    #philosophy figcaption {
        left: 15px !important;
        bottom: -50px !important;
        width: 150px !important;
    }

    /* video inside figcaption — keep its aspect ratio */
    #philosophy figcaption .position-relative[style*="aspect-ratio"] {
        height: 85px !important;
    }

    /* accordion padding */
    #philosophy .accordion-style-06 .accordion-item {
        padding: 16px 25px 16px 25px !important;
        margin-bottom: 12px !important;
    }
    
    #philosophy .accordion-style-06 .accordion-item.active-accordion {
        padding: 20px 25px !important;
    }

    /* accordion title spacing */
    #philosophy .accordion-title {
        margin-bottom: 0 !important;
    }
    
    #philosophy .accordion-body {
        padding-top: 15px !important;
    }

    /* text column center alignment */
    #philosophy .col-xl-5 {
        text-align: left !important;
        margin-top: 70px !important;
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
}

@media (max-width: 575px) {
    #philosophy .col-lg-6.md-mb-50px {
        margin-bottom: 100px !important;
    }

    #philosophy figcaption {
        left: 10px !important;
        width: 140px !important;
        bottom: -55px !important;
    }
    
    #philosophy .accordion-style-06 .accordion-item {
        padding: 14px 20px !important;
    }
}


/* ─────────────────────────────────────────────────
   8. WHY CHOOSE US — PROCESS STEPS
───────────────────────────────────────────────── */
@media (max-width: 991px) {
    /* reduce large ps-5 (3rem) to something sensible */
    .process-step-style-10.ps-5 {
        padding-left: 75px !important;
    }
}

@media (max-width: 767px) {
    .process-step-style-10.ps-5 {
        padding-left: 70px !important;
        padding-top: 40px !important;
        margin-bottom: 30px !important;
    }

    .process-step-icon-box .number {
        font-size: 60px !important;
        line-height: 60px !important;
    }

    /* heading — full width */
    section .col-xl-3:first-child h3 {
        font-size: 1.7rem !important;
        line-height: 2.1rem !important;
        margin-bottom: 20px !important;
    }
    
    section .col-xl-3:first-child {
        margin-bottom: 35px !important;
    }
    
    /* step title spacing */
    .process-step-style-10 span.fs-24 {
        margin-bottom: 10px !important;
        display: block;
    }
}

@media (max-width: 575px) {
    .process-step-style-10.ps-5 {
        padding-left: 65px !important;
        padding-top: 35px !important;
    }

    .process-step-icon-box .number {
        font-size: 50px !important;
        line-height: 50px !important;
    }
}


/* ─────────────────────────────────────────────────
   9. CLIENTS + TESTIMONIALS
───────────────────────────────────────────────── */
@media (max-width: 767px) {
    /* section spacing */
    #clients {
        padding-top: 70px !important;
        padding-bottom: 70px !important;
    }

    /* client cards — comfortable padding */
    #clients .bg-white.p-40px {
        padding: 32px 24px !important;
        margin-bottom: 25px !important;
    }

    /* logo container — appropriate height on mobile */
    .client-logo-container {
        height: 70px !important;
        margin-bottom: 18px !important;
    }
    .client-logo {
        max-height: 70px !important;
    }

    /* client name spacing */
    #clients .fs-18 {
        margin-bottom: 12px !important;
    }

    /* testimonial card padding */
    #clients .bg-white.p-45px {
        padding: 32px 24px !important;
    }

    /* testimonial review star + quote spacing */
    #clients .review-star-icon {
        margin-bottom: 14px !important;
    }
    #clients .swiper-slide p {
        margin-bottom: 18px !important;
        line-height: 1.65 !important;
    }

    /* testimonial section heading */
    #clients .col-lg-7 {
        margin-bottom: 45px !important;
    }
    
    /* navigation arrows spacing */
    #clients .mt-25px {
        margin-top: 20px !important;
    }
}

@media (max-width: 575px) {
    #clients .bg-white.p-40px {
        padding: 26px 20px !important;
    }
    #clients .bg-white.p-45px {
        padding: 26px 20px !important;
    }
    
    .client-logo-container {
        height: 65px !important;
    }
}


/* ─────────────────────────────────────────────────
   10. CONTACT SECTION
───────────────────────────────────────────────── */
@media (max-width: 767px) {
    /* section spacing */
    #contact {
        padding-top: 70px !important;
        padding-bottom: 70px !important;
    }

    /* heading section */
    #contact .mb-6 {
        margin-bottom: 40px !important;
    }

    /* contact card padding */
    #contact .bg-white.p-40px {
        padding: 32px 24px !important;
        margin-bottom: 25px !important;
    }

    /* icon spacing */
    #contact .icon-extra-medium {
        margin-bottom: 16px !important;
    }

    /* heading width */
    #contact p.w-80 {
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* stacking gap between cards */
    #contact .row-cols-md-3 > .col {
        margin-bottom: 25px !important;
    }
    
    #contact .col:last-child {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 575px) {
    #contact .bg-white.p-40px {
        padding: 28px 20px !important;
    }
}


/* ─────────────────────────────────────────────────
   11. FOOTER
───────────────────────────────────────────────── */
@media (max-width: 767px) {
    footer .col-lg-3,
    footer .col-md-4,
    footer .col-sm-6 {
        text-align: center !important;
        margin-bottom: 35px !important;
    }

    /* footer logo center */
    footer .footer-logo {
        display: block !important;
        text-align: center !important;
        margin-bottom: 12px !important;
    }

    /* mission list items */
    footer .col-lg-3:last-child {
        margin-bottom: 0 !important;
    }

    /* footer bottom nav links — wrap nicely */
    .footer-navbar {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px 18px !important;
        margin-top: 15px !important;
        padding: 0 !important;
    }

    .footer-navbar .nav-item {
        display: inline-block !important;
    }

    /* copyright — center */
    footer .footer-bottom .col-lg-6:first-child {
        margin-bottom: 12px !important;
    }

    /* footer padding */
    footer.half-footer {
        padding-top: 60px !important;
    }
    
    footer .mb-5 {
        margin-bottom: 40px !important;
    }

    /* link text in footer */
    footer p.w-90,
    footer p.xs-w-70 {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* footer column content spacing */
    footer .fs-16 {
        line-height: 1.8 !important;
    }
}

@media (max-width: 575px) {
    footer .col-lg-3 {
        margin-bottom: 30px !important;
    }
    
    footer.half-footer {
        padding-top: 50px !important;
    }
}


/* ─────────────────────────────────────────────────
   12. MISC — small utility fixes
───────────────────────────────────────────────── */
@media (max-width: 767px) {
    /* prevent any absolute-positioned large text from causing overflow */
    .fs-275,
    .lg-fs-180,
    .md-fs-160 {
        display: none !important;
    }

    /* "text-nowrap" on client names can overflow on tiny screens */
    .text-nowrap {
        white-space: normal !important;
    }

    /* overlap gap section — reduce top offset */
    .overlap-gap-section {
        margin-top: 50px !important;
    }
    .overlap-height {
        padding-top: 0 !important;
    }

    /* scroll progress — hide on small screens */
    .scroll-progress {
        display: none !important;
    }
    
    /* button spacing */
    .btn {
        margin-bottom: 10px !important;
    }
    
    /* image spacing */
    img {
        margin-bottom: 15px;
    }
    
    /* list spacing */
    ul, ol {
        padding-left: 25px !important;
    }
    
    li {
        margin-bottom: 10px !important;
    }
}

@media (max-width: 575px) {
    .overlap-gap-section {
        margin-top: 40px !important;
    }
}