@media (max-width: 991px) {
    .nav-logo {
        max-width: 90px;
    }

    .cycle-wrap {
        margin: 40px auto;
    }

    .navbar {
        position: relative;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(19deg, #042048 0%, #27055b 100%);
        z-index: 1000;
        padding: 0 15px 20px 15px;
    }

    .ps-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .problem-solution {
        padding: 50px 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hiw-container {
        grid-template-columns: 1fr;
    }

    /* Beyond Section Mobile Fix */
    .beyond-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .beyond-text {
        padding: 0 25px;
        text-align: center;
    }

    .beyond-text h2 {
        font-size: 27px;
        margin-bottom: 15px;
    }

    .beyond-text .sub {
        font-size: 16px;
        margin: 0 auto 35px;
        display: block;
        width: 100%;
    }

    .points li {
        justify-content: flex-start;
        text-align: left;
    }

    .beyond-visual {
        margin: 0 auto;
        width: 100%;
        padding: 0 15px;
    }

    .faq-cta a {
        font-size: 22px;
    }

    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .contact-left h2 {
        font-size: 32px;
    }

    .cta-box h2 {
        font-size: 30px;
    }

    /* Remove bootstrap gutter padding from hero image col to make it full width */
    .hero-image-col {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 779px) {
    .babberpart {
        height: auto;
        /* Increased size */
        /* Crop left side by aligning right */
        background: linear-gradient(105deg, #240554 0%, #660ef0 100%);
        padding: 60px 15px 0px 15px;
        /* Reduced bottom padding */
    }

    .body_wrap {
        padding-left: 15px;
        padding-right: 15px;
    }

    .babberpart h1 {
        font-size: 2.2rem;
        text-align: center;
    }

    .babberpart p {
        font-size: 1rem;
        text-align: center;
        margin: 0 auto 20px;
    }

    .hero-content {
        text-align: center;
    }

    .babberpart ul {
        display: inline-block;
        text-align: left;
        margin: 10px auto 2vw;
        /* Shift buttons down */
    }

    .babberpart .btn {
        width: fit-content;
        display: block;
        margin: 2px 0 2px 0;
        margin-left: -140px;
        margin-right: auto;
        /* Align left */
        position: relative;
        z-index: 2;
        top: 0;
        transform: scale(0.8);
        transform-origin: left;
        /* Ensure scaling doesn't shift it weirdly */
    }

    .hero-image-col {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hero-img-main {
        margin-top: 15px;
        max-width: 100%;
        transform: translateY(-1px);
    }

    /* Stats container mobile - 2 per row */
    .stats-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 0 10px;
    }

    /* Make the last odd item span 2 columns if needed, or keep as is */
    /* If we have 3 items, the last one will be on the left.
       To center the last item if grid is 2 cols:
       .stat-card:last-child:nth-child(odd) { grid-column: span 2; } 
       User said 'four cards two in each row', but clearly only 3 exist.
       I will set to 2 columns and let them flow naturally. 
    */

    .stat-card {
        padding: 20px 10px !important;
        /* Smaller padding */
        min-height: auto;
    }

    .stat-card h3 {
        font-size: 24px !important;
        /* Smaller text */
    }

    .stat-card p {
        font-size: 13px !important;
    }

    /* Scholar cards stacking on small screens */
    /* Scholar cards scrolling on small screens */
    /* Scholar cards fit side-by-side on small screens */
    .scholar-cards {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: hidden;
        justify-content: space-between;
        gap: 5px;
        padding-bottom: 0;
    }

    .s-card {
        font-size: 11px;
        white-space: normal;
        flex: 1;
        /* Force equal width */
        width: auto;
        padding: 12px 2px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.3;
        min-height: 60px;
        /* Uniform height */
    }

    /* Snapshot Section Mobile adjustments */
    .stat-card {
        padding: 15px 10px;
        /* Reduce padding to reduce overall box area */
    }

    .stat-card h3 {
        font-size: 37px;
        /* Increase numbers text */
    }

    .stat-card p {
        font-size: 16px;
        /* Increase sub heading text */
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
        font-size: 20px;
    }

    .logo-row {
        justify-content: center;
        flex-wrap: wrap;
        /* Prevent logo overflow */
    }

    .beyond-section {
        padding: 60px 15px;
        /* Add side padding to container */
        overflow: hidden;
        /* Cut off potential scroll leaks */
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
        border-radius: 0;
    }

    .final-cta {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
        border-radius: 0;
    }

    .beyond-visual {
        padding: 0;
        /* Reset internal padding as section has it */
        width: 100%;
        overflow: hidden;
        /* Ensure marquees don't break layout */
    }

    .marquee-track img {
        height: 40px;
        /* Reduce from 60px */
        padding: 0 10px;
        /* Reduce padding */
    }

    .marquee-track2 img {
        height: 50px;
        /* Reduce from 80px */
    }

    /* Edge-to-edge solution card on mobile */


    /* Fix horizontal scroll and footer overflow */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    footer .list-unstyled li a {
        white-space: normal;
        word-break: break-word;
        max-width: 100%;
        font-size: 16px;
    }

    /* How it works mobile adjustments - Timeline Layout */
    .hiw-step {
        margin-bottom: 0;
        /* Remove margin, handle spacing via padding */
        padding-bottom: 40px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
        position: relative;
    }

    /* Remove CSS-only lines */
    .hiw-step::before,
    .hiw-step::after {
        display: none !important;
    }

    /* Mobile Connector (Vertical Dot-Line-Dot) */
    .step-connector {
        position: absolute;
        top: 60px;
        /* Below 60px icon */
        left: 45px;
        /* Center of icon (30px) + Padding (15px) */
        width: auto;
        height: calc(100% - 60px);
        /* Fill space to bottom exactly */
        transform: translateX(-50%);
        flex-direction: column;
        justify-content: space-between;
        padding: 8px 0;
        /* Space for dots */
        display: flex;
        z-index: 1;
    }

    /* Mobile Line */
    .step-connector .c-line {
        width: 2px;
        height: auto;
        flex-grow: 1;
        border-top: none;
        border-left: 2px dashed #d1d5db;
        margin: 5px 0;
        opacity: 0.6;
    }

    /* Mobile Dots - Ensure visibility */
    .step-connector .c-dot {
        width: 10px;
        height: 10px;
        flex-shrink: 0;
    }

    .icon-container {
        margin-bottom: 0;
        flex-shrink: 0;
        width: 60px;
    }

    .icon-box {
        width: 60px;
        height: 60px;
        font-size: 24px;
        border-radius: 16px;
        border-width: 3px;
        margin-bottom: 0;
        z-index: 2;
        /* Above line */
        position: relative;
    }

    .hiw-step h4 {
        font-size: 20px;
        margin-top: 5px;
        margin-bottom: 10px;
    }

    .hiw-step p {
        font-size: 15px;
        margin: 0;
        max-width: 100%;
    }

    .process-line-container {
        display: none;
    }


    /* ------------------------------------------------ */
    /* NEW "SNAKE ZIGZAG" MOBILE DESIGN */
    /* ------------------------------------------------ */

    /* Snake/Zigzag Layout for Mobile Problem Section */
    .problem-list {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 30px 10px;
        margin-top: 0;
    }

    .problem-item {
        width: 80%;
        background: #fff !important;
        border-radius: 50px;
        padding: 15px 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
        display: flex;
        align-items: center;
        gap: 15px;
        position: relative;
        margin-bottom: 0;
        min-height: auto;
        /* Reset min-height if strictly following snippet, or keep if needed? User snippet didn't have it. I'll remove it to match snippet exactly. */
    }

    /* ODD ITEMS (1, 3): Left Aligned, Icon Left, Connector exits Right */
    .problem-item:nth-child(odd) {
        align-self: flex-start;
        flex-direction: row;
        text-align: left;
        margin-right: 20px;
        /* User requested */
        border: 2px solid #FEC64F;
        border-right-width: 5px;
        /* User requested */
    }

    /* EVEN ITEMS (2): Right Aligned, Icon Right, Connector exits Left */
    .problem-item:nth-child(even) {
        align-self: flex-end;
        flex-direction: row-reverse;
        text-align: right;
        margin-left: 20px;
        /* Mirrored */
        border: 2px solid #27055b;
        border-left-width: 5px;
        /* Mirrored */
    }

    /* ICONS */
    .p-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin: 10px !important;
        position: static !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* Icon Colors */
    .problem-item:nth-child(odd) .p-icon {
        background: #FFF9E6 !important;
        color: #FEC64F !important;
    }

    .problem-item:nth-child(even) .p-icon {
        background: #F3EFFF !important;
        color: #27055b !important;
    }

    /* TEXT */
    .p-text {
        width: 100%;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .p-text::before,
    .p-text::after {
        display: none !important;
    }

    .p-text h4 {
        font-size: 18px;
        /* Increased by 2px */
        margin-bottom: 2 px;
        /* Added more space */
        font-weight: 700;
        color: #042048;
    }

    .p-text p {
        font-size: 15px;
        /* Increased by 2px */
        margin: 0;
        line-height: 1.5;
        /* Slightly increased line height for better spacing */
        color: #64748b;
    }

    /* CONNECTORS */

    /* Connector 1: Card 1 (Left) Mid-Right -> Card 2 (Right) Top */
    .problem-item:nth-child(1)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -30px;
        width: 60px;
        /* Extend further right */
        height: calc(50% + 70px);
        /* Down to top of next card */
        border-top: 2px solid #d1d5db;
        /* Thicker Solid Line */
        border-right: 2px solid #d1d5db;
        /* Thicker Solid Line */
        border-radius: 0 20px 0 0;
        z-index: -1;
    }

    /* Connector 2: Card 2 (Right) Mid-Left -> Card 3 (Left) Top */
    .problem-item:nth-child(2)::after {
        content: '';
        position: absolute;
        top: 50%;
        left: -30px;
        width: 60px;
        /* Extend further left */
        height: calc(50% + 70px);
        border-top: 2px solid #d1d5db;
        /* Thicker Solid Line */
        border-left: 2px solid #d1d5db;
        /* Thicker Solid Line */
        border-radius: 20px 0 0 0;
        z-index: -1;
    }

    /* Hide any other connectors */
    .problem-item:last-child::after {
        display: none;
    }

    /* Clean up old pseudo-elements if any remained */
    .problem-list::before {
        display: none;
    }


    /* ------------------------------------------------ */
    /* FEATURE CARD REDESIGN FROM REFERENCE */
    /* ------------------------------------------------ */
    .feature-card {
        background: #fff;
        border-radius: 25px;
        /* Smoother Rounding */
        padding: 25px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
        /* Soft Shadow */
        border: 1px solid #edf2f7;
    }

    /* Icon Box */
    .feature-card .f-icon {
        background: #fff9e6;
        /* Gold tint bg */
        color: #b7791f;
        /* Darker Gold Text */
        width: 60px;
        height: 60px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        margin-bottom: 20px;
    }

    /* Headings */
    .feature-card h3 {
        font-size: 24px;
        text-transform: uppercase;
        font-weight: 800;
        color: #042048;
        margin-bottom: 5px;
        letter-spacing: -0.5px;
    }

    .feature-card .sub {
        font-size: 18px;
        font-weight: 500;
        text-transform: capitalize;
        color: #27055b;
        line-height: 1.5;
        margin-bottom: 10px;
        display: block;
    }

    /* Body Text */
    .feature-card p:not(.sub) {
        font-size: 16px;
        color: #64748b;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    /* Checklist */
    .feature-card ul {
        padding: 0;
        margin-bottom: 25px;
    }

    .feature-card li {
        background: #fff;
        padding: 12px 20px;
        border-radius: 12px;
        margin-bottom: 12px;
        box-shadow: 0 5px 0 #FFF3E0;
        /* Solid 3D Shadow/Border Effect */
        font-size: 13px;
        font-weight: 700;
        color: #042048;
        display: flex;
        align-items: center;
        gap: 10px;
        width: fit-content;
        max-width: 90%;
        border: 1px solid #FFF3E0;
    }

    /* Checkmark Icon Refinement */
    .feature-card li i {
        color: #27055b;
        /* Brand Purple */
        font-size: 14px;
        background: none;
        border-radius: 0;
        padding: 0;
        display: flex;
        align-items: center;
    }

    /* Hide Buttons */
    .feature-card .btn {
        display: none !important;
    }

    /* Hide Icons */
    .feature-card .f-icon {
        display: none !important;
    }

    /* Styled Buttons Mobile - Moved above UL */
    .feature-card .btn {
        display: inline-block !important;
        width: fit-content !important;
        background-color: #ffc107 !important;
        border: none !important;
        color: #000000 !important;
        font-weight: 600 !important;
        font-size: 14px;
        padding: 10px 20px;
        border-radius: 12px !important;
        box-shadow: 0 4px 0 #e6ac00 !important;
        order: 1;
        margin-bottom: 20px;
        text-transform: none;
    }

    /* Force UL to be after button */
    .feature-card ul {
        order: 2;
        margin-bottom: 0;
    }

    /* ------------------------------------------------ */
    /* SPECIAL FEATURE CARD (Mobile Reference Look) */
    /* ------------------------------------------------ */
    .special-feature-card {
        padding-bottom: 25px !important;
        overflow: hidden;
        position: relative;
    }

    .visual-container {
        position: relative;
        margin-top: 15px;
        height: 260px;
        /* Fixed height for the visual area */
        width: 100%;
    }

    /* The Image positioned bottom-right */
    .visual-container .feature-img {
        position: absolute;
        bottom: 0;
        right: -25px;
        /* Align to right edge */
        width: 75% !important;
        /* override default */
        height: auto;
        border-radius: 20px 0 25px 0;
        z-index: 1;
        object-fit: cover;
        margin: 0 !important;
        /* override generic img margins */
    }

    /* The List - Overlaying on Left */
    .visual-container ul {
        position: relative;
        z-index: 2;
        /* On top of image */
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    /* "Get expert guidance on" Black Label -> Now Yellow Button Style */
    .guidance-label {
        background: #ffc107;
        color: #000000;
        font-family: 'Outfit', sans-serif;
        font-size: 14px;
        font-weight: 600;
        padding: 10px 20px;
        border-radius: 12px;
        /* Standard rounding */
        display: inline-block;
        margin-bottom: 15px;
        box-shadow: 0 4px 0 #e6ac00;
        /* Gold bottom shadow/border */
        text-decoration: none;
    }

    /* White Pill List Items */
    .visual-container ul li {
        background: #fff;
        padding: 12px 20px;
        border-radius: 12px;
        margin-bottom: 12px;
        box-shadow: 0 5px 0 #FFF3E0;
        /* Solid 3D Shadow/Border Effect */
        font-size: 13px;
        font-weight: 700;
        color: #042048;
        display: flex;
        align-items: center;
        gap: 10px;
        width: fit-content;
        max-width: 90%;
        border: 1px solid #FFF3E0;
    }

    /* Icons in pills */
    .visual-container ul li i {
        color: #27055b;
        /* Brand Purple */
        font-size: 14px;
        display: flex;
        align-items: center;
        background: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }



    /* Reviews Section Mobile */
    .reviews-section {
        padding: 40px 0;
    }

    .reviews-heading {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .bg-watermark {
        font-size: 50px;
        /* Smaller watermark on mobile */
        letter-spacing: 2px;
    }

    .marquee-content {
        gap: 5px;
        /* 5 points gap requested */
    }

    .marquee-content img {
        width: 300px;
        /* Restored size close to desktop but manageable */
        padding: 0;
    }
}